Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 9ec37d859a7713de62bd171a0fde787a > files > 8

lxlauncher-0.2.1-3mdv2010.1.src.rpm

diff -p -up lxlauncher-0.2/src/lxlauncher.c.shift_background lxlauncher-0.2/src/lxlauncher.c
--- lxlauncher-0.2/src/lxlauncher.c.shift_background	2008-11-17 23:15:29.000000000 +0100
+++ lxlauncher-0.2/src/lxlauncher.c	2008-11-17 23:19:16.000000000 +0100
@@ -252,7 +252,14 @@ static gboolean on_viewport_expose( GtkW
 
         gdk_gc_set_tile( gc, main_pixmap ? main_pixmap : pixmap );
         gdk_gc_set_fill( gc, GDK_TILED );
-        if (main_pixmap) {
+        GError *error = NULL;
+        gboolean shift_background = gconf_client_get_bool (gconf_client, LXLAUNCHER_CONF "shift_background", &error);
+        if (error) {
+            fprintf(stderr, "Error: %s", error->message);
+            g_error_free (error);
+            shift_background = 0;
+        }
+        if (main_pixmap || shift_background) {
             gtk_widget_translate_coordinates(w, main_window, 0, 0, &x, &y);
         }
         gdk_gc_set_ts_origin( gc, -x, -y );