diff -u wmmenu.orig/Makefile wmmenu/Makefile
--- wmmenu.orig/Makefile	2002-03-23 14:51:36.000000000 +0200
+++ wmmenu/Makefile	2013-10-11 22:04:19.297818920 +0300
@@ -4,8 +4,8 @@
 ETCDIR = $(prefix)/etc
 
 # comment out both lines to get the old, Xpm-only, version
-GDKPIXBUF = 1
-#GDKPIXBUF2 = 1
+#GDKPIXBUF = 1
+GDKPIXBUF2 = 1
 
 XROOT = /usr/X11R6
 DAROOT = /usr/local
@@ -19,16 +19,16 @@
 
 # If you want to use gdk-pixbuf-2.0, pass GDKPIXBUF2=1 to make command
 ifdef GDKPIXBUF2
-PIXBUF_CFG = /opt/gtk2/bin/pkg-config gdk-pixbuf-xlib-2.0
+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
+PIXBUF_LIB := -rdynamic -L$(shell $(PIXBUF_CFG) --variable=prefix)/lib -lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0
 endif
 
 CC = gcc #-g
 CFLAGS = -pipe $(CPPFLAGS) -O2
 CPPFLAGS = -MMD -ansi -pedantic -Wall $(INCDIRS) $(DEFINES)
-INCDIRS = -I$(DAROOT)/include -I$(XROOT)/include $(PIXBUF_INC)
+INCDIRS = -I$(DAROOT)/include -I$(XROOT)/include $(PIXBUF_INC) -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/lib64/gtk-2.0/include
 DEFINES = -DETCDIR='"$(ETCDIR)"' $(PIXBUF_DEF)
 LDFLAGS = -s
 LIBDIRS = -L$(DAROOT)/lib -L$(XROOT)/lib $(PIXBUF_LIB)
diff -u wmmenu.orig/pixmaps.c wmmenu/pixmaps.c
--- wmmenu.orig/pixmaps.c	2002-04-10 21:04:00.000000000 +0200
+++ wmmenu/pixmaps.c	2013-10-11 15:20:30.313844134 +0300
@@ -2,7 +2,7 @@
 #include <assert.h>
 
 #ifdef WITH_GDKPIXBUF
-#include <gdk-pixbuf/gdk-pixbuf-xlib.h>
+#include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
 #endif
 #include <dockapp.h>
 
@@ -40,6 +40,8 @@
     assert (maskP != NULL) ;
     problem = (CurrentDefault == NULL ? error : warn) ;
 
+GError *gerror = NULL;
+
 #define UseDefault() \
     if ((pix = gdk_pixbuf_new_from_xpm_data ( \
         (const char **)CurrentDefault)) == NULL) \
@@ -59,7 +61,7 @@
         UseDefault () ;
     }
     else
-    if ((pix = gdk_pixbuf_new_from_file (path)) == NULL)
+    if ((pix = gdk_pixbuf_new_from_file (path, &gerror)) == NULL)
     {
         problem ("can't load image \"%s\"", path) ;
         UseDefault () ;
@@ -122,6 +124,7 @@
     return DisplayHeight (DADisplay, DefaultScreen (DADisplay)) ;
 }
 
+#include <gdk/gdk.h>
 extern gboolean gdk_color_parse (const gchar * spec, GdkColor * color)
 {
     XColor scr ;
