Re: BUG: gtk+ 2.8.17 GDK_IS_PIXBUF macro.



On Mon, 2006-05-01 at 12:25 -0400, John E. Malmberg wrote:
> It looks to me like there is a bug in the GDK_IS_xxxxx(object) macros, 
> and probably in the GDK_xxxxx(object) macros.
> 
> These macros always invoke a GDK_TYPE_xxxxx macro as their last step 
> which calls a routine gdk_xxxxx_get_type();
> 
> Example from gdk-pixbuf/gdk-pixbuf-core.h (reformatted)
> 
> #define GDK_TYPE_PIXBUF         (gdk_pixbuf_get_type ())
> #define GDK_PIXBUF(object)    \
>   (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF, GdkPixbuf))
> #define GDK_IS_PIXBUF(object)  \
>   (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF))
> 
> 
> If the type already exists, as in the case where the dynamically loaded 
> images libpixbufloader-nnnn are used, then the GDK_IS_xxxxx macro will 
> fail with the following visible diagnostics:

You are going down the wrong path here, there is nothing wrong with
this code; as I said earlier, you are linked against two copies of the
GdkPixbuf library. I don't know why offhand, maybe 
you are somehow using modules from a previous install in a different
prefix or something like that.

					Owen





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