Reputation: 806
In my code, I have a Gtkmm Gtk::Window*
and I wanna access it's widgets frequently. How can I do it?
What I mean is to see if there's any feature like Builder->get_widget()
. Thanks for helps.
Upvotes: 2
Views: 81
Reputation: 615
Not really. There are some methods for finding children of a widget, but it's a colossal pain. Personally, I always subclass Gtk::Window and make public (or make public functions) if I need to mess with any widgets outside the class.
Gtk::Bin class where get_child() is: http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Bin.html#a8e7fef9251afa541318bb53dcf3098db
Upvotes: 2