On Thu, 2011-06-30 at 10:17 -0400, Damon Register wrote: > On 6/30/2011 7:23 AM, Murray Cumming wrote: > > There is Gtk::Buildable::get_name() and Gtk::Widget::get_name() and they > > presumably return different things. > since I am using 2.22, Gtk::Buildable::get_name() does not apply, > right?
Right. > > You could try gtk_buildable_get_name(idc_quit->gobj()) > I did and got > > $ make > g++ -g -fomit-frame-pointer `pkg-config gtkmm-2.4 --cflags` -c hello.cpp > hello.cpp: In constructor 'hello::hello(Gtk::Window::BaseObjectType*, const > Glib > ::RefPtr<Gtk::Builder>&)': > hello.cpp:42:57: error: cannot convert 'GtkButton*' to 'GtkBuildable*' for > argum > ent '1' to 'const gchar* gtk_buildable_get_name(GtkBuildable*)' > make: *** [hello.o] Error 1 Use GTK_BUILDABLE(idc_quit->gobj()) -- [email protected] www.murrayc.com www.openismus.com _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
