Getting to the items of a UI::Items::RadioTree (fwd)

View: New views
1 Messages — Rating Filter:   Alert me  

Getting to the items of a UI::Items::RadioTree (fwd)

by Dr. ERDI Gergo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I posted this one to the wrong list previously.

--
    .--= ULLA! =---------------------.   `We are not here to give users what
    \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
     `---= cactus@... =---'
Ha nem jó eredmény jön ki, szorozd be az oldalszámmal.

---------- Forwarded message ----------
Date: Mon, 3 Oct 2005 17:13:34 +0200 (CEST)
From: Dr. ERDI Gergo <cactus@...>
To: GTKmm Mailing List <gtkmm-list@...>
Subject: Getting to the items of a UI::Items::RadioTree

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@... =---'
The best evolutionary trait an animal can have these days is either being cute
or tasty.
_______________________________________________
gnomemm-list mailing list
gnomemm-list@...
http://mail.gnome.org/mailman/listinfo/gnomemm-list
LightInTheBox - Buy quality products at wholesale price!