reverse-wrapping gtkmm widgets to gtk+ (for glade3)



Hello all,

I've been a very happy user of gtkmm for some time now, over the time
i've coded a (growing) pool of widgets for my projects.

I'm using libglademm for my projects, so i usually use glade's "Custom
Widget" as a placeholder for my own widgets. This works, but I still was
very excited about the widget catalogs introduced in glade3. I
successfully created a sample catalog containing the demo clock widget
from
http://gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28.

By now, you should have guessed my next step ;-)

I would like to use my own (gtkmm) Widgets in glade3, but as glade is
gtk, it seems i would need some kind of reverse-mapping my
Gtk::Widget-derived classes to gtk-"classes".

Looking at G_DEFINE_TYPE(), it seems it would not suffice to just make
my widget's gobj() available to glade, but i would need some wrapper
functions like *_get_type and *_class_init, which i don't grok right now.

my questions:
  - has anybody done something like this before: any comments or
experiences?
  - is anyone interested in doing the same with his own classes so we
could work together?

Thanks in advance,
  --o
-- 
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]