From 23f5773903d64a554d977ae7d0ebbaca73528f1f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 30 Nov 2011 20:53:20 -0600 Subject: Coding style and whitespace cleanup. --- libgnomecanvas/gnome-canvas-pixbuf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libgnomecanvas/gnome-canvas-pixbuf.c') diff --git a/libgnomecanvas/gnome-canvas-pixbuf.c b/libgnomecanvas/gnome-canvas-pixbuf.c index b9ece1f504..a3f30600de 100644 --- a/libgnomecanvas/gnome-canvas-pixbuf.c +++ b/libgnomecanvas/gnome-canvas-pixbuf.c @@ -30,6 +30,10 @@ #include #include "gnome-canvas-pixbuf.h" +#define GNOME_CANVAS_PIXBUF_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), GNOME_TYPE_CANVAS_PIXBUF, GnomeCanvasPixbufPrivate)) + /* Private part of the GnomeCanvasPixbuf structure */ struct _GnomeCanvasPixbufPrivate { /* Our gdk-pixbuf */ @@ -100,8 +104,7 @@ gnome_canvas_pixbuf_class_init (GnomeCanvasPixbufClass *class) static void gnome_canvas_pixbuf_init (GnomeCanvasPixbuf *gcp) { - gcp->priv = G_TYPE_INSTANCE_GET_PRIVATE ( - gcp, GNOME_TYPE_CANVAS_PIXBUF, GnomeCanvasPixbufPrivate); + gcp->priv = GNOME_CANVAS_PIXBUF_GET_PRIVATE (gcp); } /* Dispose handler for the pixbuf canvas item */ -- cgit v1.2.3