GNOME Bugzilla – Bug 111533
Libglademm not recognizing Druid Pages
Last modified: 2011-01-16 23:33:35 UTC
The standard libglademm interface for acquiring widgets does not correctly recognize, and consequently provide access to, Druid pages. A call to Gnome::Glade::Xml::get_widget() using the correct widget name and a pointer to Gnome::UI::DruidPageStandard (the correct class for the widget) returns 0. The name nor the Glade file are at fault here since I'm able to obtain the widget via this sequence: Gtk::Widget* pTheWidget = 0; pXmlDef->get_widget("druidPageName", pTheWidget); Gnome::UI::DruidPageStandard* pThePage = dynamic_cast<Gnome::UI::DruidPageStandard*>(pTheWidget); With RTTI enabled dynamic_cast would give me back a 0 in the pThePage variable above if indeed the widget was not a druid standard page, but it doesn't. The dynamic_cast operator yields the correct druid page pointer. Using libglademm2 2.0.1 and libgnomeuimm2 1.3.16.
Sorry ... programmer error! Did not see that there was a Gnome::Main I needed to use in order for the GObject wrappers to be registered.