Hello,
I've created a Gtk::Menu (GTKMenu) with Glade. In my project I try to
load it with libglademm:
Gtk::Menu *mUmlEditMenu;
mXMLGlade->get_widget ("umlEditMenu", mUmlEditMenu);
The result is:
(state:7484): libglademm-CRITICAL **: widget `umlEditMenu' not found in
glade file `/home/andreas/src/svn/state/trunk/src/state.glade'
** (state:7484): CRITICAL **: Gnome::Glade::Xml::get_widget():
dynamic_cast<> failed.
And yes the object exist. Look here in the state.glade:
<widget class="GtkMenu" id="umlEditMenu">
<property name="visible">True</property>
<child>
<widget class="GtkImageMenuItem" id="umlEditDel">
<property name="visible">True</property>
<property name="label" translatable="yes">gtk-delete</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
</widget>
</child>
</widget>
Has anyone an idea why it's not working?
My last option would be to construct the Gtk::Menu without glade. :-(
regards
Andreas
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list