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



On Fri, 2006-11-17 at 13:45 +0100, Alexander Brinkman wrote:
> Hi,
> 
> Last month (19 oct.) I saw a message by Oliver Nittka about reverse
> wrapping Gtkmm custom widgets. Unfortunatly I believe nobody answered.
> As I'm having the exact same wishes/requirements/problems as Oliver, I
> would like to repeat his question here...
> 
> Is it possible to (easily) reverse-wrap Gtkmm custom widgets so that,
> for instance, libglade can instantiate them?

Possibly, with some effort.

> Having looked at Glade3 and its custom widget support I would very much
> like to use it.

Can you point us at any documentation on this API. For instance, how
would someone go about making custom GTK+ widgets available for use in
Glade.

I suspect that something might be possible, though the gtkmm widget
would probably need to register its own GType (not too difficult), and
to get the full benefit of Glade we would need to define some GObject
properties for the gtkmm widget.

>  Having to design glade files with 90% custom widgets in
> them is not a pretty sight at the moment; adding my custom widgets to
> the Glade3 catalog and having libglade instantiate them runtime would be
> a really useful feature. Especially so because the standard Gtk+/Gtkmm
> widget library is, to put it mildly, somewhat limited. Creating custom
> widgets with Gtkmm, though, is very easy. The only limiting factor now
> is having them instantiated by libglade.
> 
> If this is not possible at the moment is any work on this being done to
> get it in Gtkmm? This is especially important because in Glade3 the
> custom widget facility is marked deprecated, only for Gtkmm widgets
> there is no alternative since it would seem we cannot let glade/libglade
> to instantiate Gtkmm custom widgets!

Don't forget get_widget_derived(). It does most of what you probably
want - you just won't see the derived widget's specific appearance in
Glade.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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