Re: Reverse-wrapping gtkmm widgets to gtk+ (for glade3)

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
custom_set_property_callback. (glibmm2.4-2.12.0/glib/glibmm/

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.

Oliver Nittka
ESEM Grünau GmbH & Co. KG
Dornierstraße 6, 88677 Markdorf/Germany
phone: +49 7544 9583-25, fax: +49 7544 9583-60

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]