problems with get_widget_derived
- From: Hamar Gabor <hg307 hszk bme hu>
- To: gtkmm-list gnome org
- Subject: problems with get_widget_derived
- Date: Mon, 28 Feb 2005 20:31:20 +0100 (MET)
Hello,
I am trying to compile this code:
Gtk::Image * image;
..
image=0;
refGlade->get_widget_derived("image",image);
assert(image);
With g++ version g++ (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) it
doesn't compile, and I don't understand why. The error message is:
imagewindow.cc:28: instantiated from here
/usr/include/libglademm-2.4/libglademm/xml.h:248: error: no matching
function for call to `wrap(GtkImage*&)'
/usr/include/glibmm-2.4/glibmm/wrap.h:55: note: candidates are:
Glib::RefPtr<Glib::Object> Glib::wrap(GObject*, bool)
/usr/include/glibmm-2.4/glibmm/main.h:438: note:
Glib::RefPtr<Glib::MainContext> Glib::wrap(GMainContext*, bool)
..
Gtk::Widget* Glib::wrap(GtkWidget*, bool)
/usr/include/gtkmm-2.4/gtkmm/container.h:428: note:
Gtk::Container* Glib::wrap(GtkContainer*, bool)
/usr/include/gtkmm-2.4/gtkmm/bin.h:208: note: Gtk::Bin*
Glib::wrap(GtkBin*, bool)
/usr/include/gtkmm-2.4/gtkmm/window.h:1550: note:
Gtk::Window* Glib::wrap(GtkWindow*, bool)
/usr/include/gtkmm-2.4/gtkmm/window.h:1560: note:
Glib::RefPtr<Gtk::WindowGroup> Glib::wrap(GtkWindowGroup*, bool)
With g++ version g++33 (GCC) 3.3.4 20040817 (Red Hat Linux 3.3.4-2)
I can compile the same code.
Can anybody help me?
Thanks
Gabor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]