RE: [Java-gnome-developer] Question concerning pixel graphics (fw d)
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2001-11-06 16:33:50
|
> > >Since GDK objects don't have this runtime > >feature they cannot be defined as "define-object". > > What is the difficulty? > (define-object GdkPixmap (GdkWindow)) > > seems to run fine. Or are there side effects? > Once you invoke a method that returns this type it will try to discover its' type at runtime using gtk_type_name(GTK_OBJECT_TYPE(peer)). This will fail on a GDK object. There also is a call to GTK_IS_OBJECT(). There is no runtime type identification of GDK objects and hence the "define-boxed". This has been addressed to a large extent in Gnome 2 but I will not have a release that supports Gnome 2 until late January. -Jeff |