Fix compiler warnings when GTK_WITHDRAWN_HACK is undefined
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 21 Dec 2014 19:41:08 +0000 (14:41 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Mar 2016 22:35:06 +0000 (17:35 -0500)
src/dockapp.c

index e92f00e..a2baed4 100644 (file)
@@ -47,6 +47,8 @@
 /* Width and height in pixels of Window Maker icons. */
 #define ICON_SIZE 64
 
+#ifdef GTK_WITHDRAWN_HACK
+
 static void
 dockapp_set_withdrawn_state(Display *d, Window w)
 {
@@ -97,6 +99,8 @@ dockapp_gtk_withdrawn_hack(GtkWidget *dockwin, GtkWidget *iconwin)
        XDestroyWindow(d, win_temp);
 }
 
+#endif /* GTK_WITHDRAWN_HACK */
+
 void
 dockapp_set_mask(GtkWidget *iconwin, char **xpm)
 {