The function gdk_pixbuf_unref is deprecated.  We replace it with
g_object_unref.  This requires linking against gobject-2.0.
---
 wmmenu/Makefile  | 2 +-
 wmmenu/pixmaps.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/wmmenu/Makefile b/wmmenu/Makefile
index 730ad10..8ffe394 100644
--- a/wmmenu/Makefile
+++ b/wmmenu/Makefile
@@ -11,7 +11,7 @@ ifdef GDKPIXBUF2
 PIXBUF_CFG = pkg-config gdk-pixbuf-xlib-2.0
 PIXBUF_DEF = -DWITH_GDKPIXBUF
 PIXBUF_INC := $(shell $(PIXBUF_CFG) --cflags)
-PIXBUF_LIB := -rdynamic -L$(shell $(PIXBUF_CFG) --variable=prefix)/lib 
-lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0
+PIXBUF_LIB := -rdynamic -L$(shell $(PIXBUF_CFG) --variable=prefix)/lib 
-lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0
 endif
 
 CC = gcc #-g
diff --git a/wmmenu/pixmaps.c b/wmmenu/pixmaps.c
index 92b7d4e..e56f637 100644
--- a/wmmenu/pixmaps.c
+++ b/wmmenu/pixmaps.c
@@ -97,7 +97,7 @@ extern void Pixmaps_FindLoad (const char * name,
 
        scaled = gdk_pixbuf_scale_simple (pix,
            width, height, GDK_INTERP_HYPER) ;
-       gdk_pixbuf_unref (pix) ;
+       g_object_unref (pix) ;
        pix = scaled ;
     }
 
@@ -105,7 +105,7 @@ extern void Pixmaps_FindLoad (const char * name,
     if (hP != NULL) *hP = height ;
     gdk_pixbuf_xlib_render_pixmap_and_mask (pix, imageP, maskP, 128) ;
     /* don't forget to free now we've done pixmaps */
-    gdk_pixbuf_unref (pix) ;
+    g_object_unref (pix) ;
 }
 
 /*
-- 
2.1.0


-- 
To unsubscribe, send mail to [email protected].

Reply via email to