[Goodies-commits] r3018 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Mon Aug 20 12:57:23 CEST 2007


Author: stephan
Date: 2007-08-20 10:57:23 +0000 (Mon, 20 Aug 2007)
New Revision: 3018

Modified:
   ristretto/trunk/src/picture_viewer.c
Log:
cursor stuff

Modified: ristretto/trunk/src/picture_viewer.c
===================================================================
--- ristretto/trunk/src/picture_viewer.c	2007-08-20 09:50:10 UTC (rev 3017)
+++ ristretto/trunk/src/picture_viewer.c	2007-08-20 10:57:23 UTC (rev 3018)
@@ -465,6 +465,10 @@
         }
         if(GTK_WIDGET_REALIZED(widget))
         {
+            GdkCursor *cursor = gdk_cursor_new(GDK_WATCH);
+            gdk_window_set_cursor(widget->window, cursor);
+            gdk_cursor_unref(cursor);
+
             gdouble width = (gdouble)gdk_pixbuf_get_width(viewer->priv->src_pixbuf);
             gdouble height = (gdouble)gdk_pixbuf_get_height(viewer->priv->src_pixbuf);
             
@@ -527,6 +531,9 @@
                 gtk_adjustment_changed(viewer->hadjustment);
                 gtk_adjustment_changed(viewer->vadjustment);
             }
+            cursor = gdk_cursor_new(GDK_LEFT_PTR);
+            gdk_window_set_cursor(widget->window, cursor);
+            gdk_cursor_unref(cursor);
         }
     }
     return changed;




More information about the Goodies-commits mailing list