[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-devel
Subject: Re: Pluggable widget types and implementations
From: Damon Chaplin <damon () karuna ! uklinux ! net>
Date: 2006-12-01 12:49:41
Message-ID: 1164977381.2503.28.camel () localhost ! localdomain
[Download RAW message or body]
On Tue, 2006-11-28 at 14:53 +0100, Tim Janik wrote:
> Hey all,
>
> this is a proposal for allowing pluggable widget types and implementations,
> assorted bug report: http://bugzilla.gnome.org/show_bug.cgi?id=356864
How about a sort of widget/object factory?
So you'd set the default implementation for a type:
gtk_object_factory_set_default_implementation (factory,
GTK_TYPE_LABEL,
MY_CUSTOM_LABEL_TYPE);
And then in the widget/object xxx_new() functions instead of calling
g_object_new() they call:
gtk_object_factory_create (factory, GTK_TYPE_LABEL, ...);
Does that work?
Applications could then use different sets of widgets for different
parts of the interface, just by switching the default factory:
gtk_set_default_object_factory (factory);
Damon
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic