Getting to the items of a UI::Items::RadioTree (fwd)
"Dr. ERDI Gergo" <[email protected]> Mon, 3 Oct 2005 22:58:54 +0200 (CEST)
| Newsgroups | gmane.comp.gnome.gnomemm |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--655616-941604697-1128373134=:3092
Content-Type: TEXT/PLAIN; charset=iso-8859-2; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Sorry, I posted this one to the wrong list previously.
--=20
.--=3D ULLA! =3D---------------------. `We are not here to give users=
what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 200=
1
`---=3D [email protected] =3D---'
Ha nem j=F3 eredm=E9ny j=F6n ki, szorozd be az oldalsz=E1mmal.
---------- Forwarded message ----------
Date: Mon, 3 Oct 2005 17:13:34 +0200 (CEST)
From: Dr. ERDI Gergo <[email protected]>
To: GTKmm Mailing List <[email protected]>
Subject: Getting to the items of a UI::Items::RadioTree
Hi,
suppose I have the following menu structure:
Gnome::UI::Items::Info m_viewmode[] =3D {
Gnome::UI::Items::Item (_("_Sort by ID"));
Gnome::UI::Items::Item (_("_Group by type"));
};
Gnome::UI::Items::Info m_view[] =3D {
Gnome::UI::Items::RadioTree (m_viewmode)
};
Gnome::UI::Items::SubTree menubar[] =3D {
Gnome::UI::Menus::View (m_view),
};
Gnome::UI::Items::Array<Gnome::UI::Items::SubTree> &infos =3D create_m=
enus=20
(menubar);
Now, how do I get the Gtk::Widget* of the 'Group by type' menu item? The=20
problem is, since UI::Items::RadioTree is a direct descendant of UI::Info, =
thus=20
having no accessor to its children. I.e. this can't be done:
Gtk::Widget *foo =3D infos[0].get_uitree()[0].get_uitree()[1].get_widg=
et ();
So, what is a working solution?
Thanks,
=09Gergo
--=20
.--=3D ULLA! =3D---------------------. `We are not here to give users=
what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 200=
1
`---=3D [email protected] =3D---'
The best evolutionary trait an animal can have these days is either being c=
ute=20
or tasty.
--655616-941604697-1128373134=:3092
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gnomemm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnomemm-list
--655616-941604697-1128373134=:3092--