Error in GDK_PIXMAP_GET_CLASS macro in GdkPixmap.h



Hi,

I think there is an error in the GDK_PIXMAP_GET_CLASS macro in
gdkpixmap.h. The GDK_PIXMAP_CLASS macro returns a GdkPixmapObjectClass
pointer but GDK_PIXMAP_GET_CLASS returns a GdkPixmapClass pointer.

#define GDK_PIXMAP_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass),
GDK_TYPE_PIXMAP, GdkPixmapObjectClass))

#define GDK_PIXMAP_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj),
GDK_TYPE_PIXMAP, GdkPixmapClass))

The eqivalent macros in gdkwindow.h both return a GdkWindowObjectClass
pointer.

#define GDK_WINDOW_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass),
GDK_TYPE_WINDOW, GdkWindowObjectClass))

#define GDK_WINDOW_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj),
GDK_TYPE_WINDOW, GdkWindowObjectClass))

I was unable to compile gdkpixmap.h until I changed GdkPixmapClass to
GdkPixmapObjectClass. 

Is this correct?

Thanks,

Jeff.Wouter van Kleunen wrote:
> 
>                Name: arg.c.gz
>    arg.c.gz    Type: application/x-gzip
>            Encoding: base64




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