[Glade-devel] [glade3, patch] load library module before calling *_get_type ()

bighead@users.sourceforge.net bighead@users.sourceforge.net
09 Jan 2004 11:57:58 -0500


Hey

btw, another thing is, rather than create a libgladefoo for customisations
which can't be done in the lib's catalog .xml file, it would be nice, if
in the case it was the original lib's fault, submit patches to them to behave
nicely.

Point being libglade<foo> should only be used in extreme cases. 

Cheers...
Archit

"Joaquin Cuenca Abela" <e98cuenc@free.fr> writes:

> Hi!
> 
> Archit wrote:
> > 
> > > As you see, there's a missing piece, and it's the code that loads the 
> > > library that contains the Foo widget, as you need it to call the 
> > > foo_get_type function. That is, AFAIR, the only missing thing to make 
> > > the plugable widgets really work.
> > 
> > That is already done! Why that was infact my first patch to 
> > glade-3 (back when it was still called glade-2) :D. You can 
> > take a look in glade-widget-class.c There is some code like, 
> > glade_widget_class_get_get_type_func or something.
> > Tommi... wanna take a shot at it :D
> 
> That constructs the name of the foo_get_type name, but glade-3 doesn't try
> to bind it to a real function until glade_util_get_type_from_name.
> 
> And that function will fail if the module that contains the function has not
> yet been opened.  It works with all gtk+ widgets, as we're anyway linked to
> gtk+, so that's not a problem.  But we should explicitely open external
> modules if want to get their *_get_type function.
> 
> Cheers,
> 
> 
> _______________________________________________
> Glade-devel maillist  -  Glade-devel@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-devel