Getting to the items of a UI::Items::RadioTree
- From: "Dr. ERDI Gergo" <cactus cactus rulez org>
- To: GTKmm Mailing List <gtkmm-list gnome org>
- Subject: Getting to the items of a UI::Items::RadioTree
- Date: Mon, 3 Oct 2005 17:13:34 +0200 (CEST)
Hi,
suppose I have the following menu structure:
Gnome::UI::Items::Info m_viewmode[] = {
Gnome::UI::Items::Item (_("_Sort by ID"));
Gnome::UI::Items::Item (_("_Group by type"));
};
Gnome::UI::Items::Info m_view[] = {
Gnome::UI::Items::RadioTree (m_viewmode)
};
Gnome::UI::Items::SubTree menubar[] = {
Gnome::UI::Menus::View (m_view),
};
Gnome::UI::Items::Array<Gnome::UI::Items::SubTree> &infos = create_menus (menubar);
Now, how do I get the Gtk::Widget* of the 'Group by type' menu item?
The problem is, since UI::Items::RadioTree is a direct descendant of
UI::Info, thus having no accessor to its children. I.e. this can't be
done:
Gtk::Widget *foo = infos[0].get_uitree()[0].get_uitree()[1].get_widget ();
So, what is a working solution?
Thanks,
Gergo
--
.--= ULLA! =---------------------. `We are not here to give users what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001
`---= cactus cactus rulez org =---'
The best evolutionary trait an animal can have these days is either being cute or tasty.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]