Re: Pluggable widget types and implementations

On Tue, 2006-11-28 at 15:03 +0000, Ross Burton wrote:
> On Tue, 2006-11-28 at 14:53 +0100, Tim Janik wrote:
> > Resulting in gtk_file_selection_new() to return objects of the custom type 
> > gtkfileselector_derived_type, and gtk_printer_selection_new() to return
> > objects of the custom type iface_implementation_type.
> How would this interact with libglade/GtkBuilder, where dialogs are
> created at runtime?  I'm guessing that GtkBuilder uses g_object_new() to
> construct the objects.

This would also be an issue for language bindings. By convention, the
_new() functions are considered as mere C convenience functions, and
many language bindings (and some C applications) just use g_object_new()

If you want to replace implementations of GTypes, I think it would be
simplest to change the associations inside the GType system.

Murray Cumming
murrayc murrayc com

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