File lxlauncher-0.2.2-fix-build-on-older-gtk2.patch of Package lxlauncher

diff -urNp lxlauncher-0.2.2.orig/src/lxlauncher.c lxlauncher-0.2.2/src/lxlauncher.c
--- lxlauncher-0.2.2.orig/src/lxlauncher.c	2011-07-23 22:22:54.000000000 +0200
+++ lxlauncher-0.2.2/src/lxlauncher.c	2011-07-24 16:56:34.000000000 +0200
@@ -491,7 +491,11 @@ GdkFilterReturn evt_filter(GdkXEvent *xe
     if(xev->type == PropertyNotify && xev->xproperty.atom == atom_NET_WORKAREA )
     {
         GdkRectangle working_area;
+#if GTK_CHECK_VERSION(2,24,0)
         get_working_area( gdk_window_get_screen(evt->any.window), &working_area );
+#else
+        get_working_area( gdk_drawable_get_screen(evt->any.window), &working_area );
+#endif
         gtk_window_move( GTK_WINDOW(main_window), working_area.x, working_area.y );
         gtk_window_resize( GTK_WINDOW(main_window), working_area.width, working_area.height );
     }
openSUSE Build Service is sponsored by