On Sun, 2007-10-28 at 23:06 +0000, Matt Bucknall wrote:
> Hi,
> 
> Do Glib::OptionEntry objects that have been added to a Glib::OptionGroup 
> object get copied, or do they have to exist for as long as the 
> Glib::OptionGroup object exists (in much the same way Glib::OptionGroup 
> objects have to exist for the lifetime of a Glib::OptionContext object)?
> 
> Thanks,
> Matt.
> 

Well, this is how I do it, and it works fine, so I assume that the
entries just get copied:

    FooOptionGroup::FooOptionGroup(void) :
        Glib::OptionGroup ("name", "description",
                "help description")
    {
        Glib::OptionEntry entry1;
        entry1.set_long_name("debug");
        entry1.set_short_name('d');
        entry1.set_description("Enable Debugging output");
        add_entry(entry1, foo_debug);
    }


_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to