After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 111533 - Libglademm not recognizing Druid Pages
Libglademm not recognizing Druid Pages
Status: RESOLVED NOTABUG
Product: libglademm
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-04-24 20:21 UTC by Rolando J. Nieves
Modified: 2011-01-16 23:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rolando J. Nieves 2003-04-24 20:21:14 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.
Comment 1 Rolando J. Nieves 2003-04-25 20:17:40 UTC
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.