Re: [glade--]Problems with glade_get_widget_tree() during runtime

Christof Petig <[email protected]> Wed, 17 Mar 2004 14:51:57 +0100
Newsgroups gmane.comp.gnome.glademm
Organization Adolf Petig GmbH & Co. KG
Message-ID <[email protected]>
Mukund Gopalan schrieb:
>    xml = glade_get_widget_tree(GTK_WIDGET(button));

I think that button is of type Gtk::Button, that's the C++ wrapper type. 
You can't cast a Gtkmm object to GTK_WIDGET, but you can use
    GTK_WIDGET(button->gobj())

That should fix the error.

   Yours
       Christof