On Tue, 2010-03-16 at 15:24 +0200, Michael wrote: > Hello > > On Mon, 2010-03-15 at 18:08 -0400, José Alburquerque wrote: > > On Mon, 2010-03-15 at 23:28 +0200, Michael wrote: > > > I'm not sure it's related, but it also has something to do with > > > smart pointers. > > > The get_object() method in Gtk::Builder class returns > > > Glib::RefPtr<Glib::Object>. > > > What would be the proper way of extracting those objects from builder > > > files? > > > > You could use Gtk::Builder::get_widget(): > > I could have done it if Gtk::Adjustment was derived from Gtk::Widget, > but unfortunately this is not the case. > Is there some caveat about Gtk::Adjutment and/or other non-widgets, that > can be used with builder? > Am I missing something by using plain pointers, rather than RefPtr?
I sort of overlooked that you were working with a Gkt::Adjustment. Maybe getting the parent widget owning the adjustment and then getting the adjustment from the widget would work better. I'm not sure about other non-widgets (if there any), but maybe they belong to another widget (much like Gtk::Adjustment). -- José _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
