Re: Reverse-wrapping gtkmm widgets to gtk+ (for glade3)
- From: Oliver Nittka <nittka esem com>
- Cc: Murray Cumming <murrayc murrayc com>, gtkmm-list gnome org
- Subject: Re: Reverse-wrapping gtkmm widgets to gtk+ (for glade3)
- Date: Wed, 22 Nov 2006 17:25:15 +0100
Oliver Nittka schrieb:
> Seems the properties get set by libglade, but are later overwritten by
> the c'tor of the Glib::Property.
ok, my misunderstanding. when libglade sets the properties, the
GObjectClass'es ->set_property already points to
there, _get_current_wrapper() fails (no C++ wrapper yet) and the value
disappears into nirvana :-(
one solution would be, as Alexander pointed out, to do
glade_register_custom_prop for each and every of our properties (which
is sad, because we're 99% there, bot OTOH would solve the issue with enums).
another possibility would be to glade_register_widget() each of our
widgets in glade_module_register_widgets(), with a custom *_new function
that mimics glade_standard_build_widget
(libglade2-2.6.0/glade/glade-xml.c, l.1586). there we could call our
more insight would be welcome.
ESEM Grünau GmbH & Co. KG
Dornierstraße 6, 88677 Markdorf/Germany
phone: +49 7544 9583-25, fax: +49 7544 9583-60
] [Thread Prev