Re: Glib::OptionEntry lifespan
- From: Matt Bucknall <matt mattbucknall com>
- To: gtkmm-list gnome org
- Subject: Re: Glib::OptionEntry lifespan
- Date: Mon, 29 Oct 2007 10:41:49 +0000
Okay, thanks.
Jonathon Jongsma wrote:
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
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]