Author: post
Date: 2009-09-22 19:46:36 +0200 (Tue, 22 Sep 2009)
New Revision: 2643

Modified:
   trunk/src/gtk-interface.c
Log:
Display Watch cursor while image is loading.

Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c   2009-09-22 06:38:49 UTC (rev 2642)
+++ trunk/src/gtk-interface.c   2009-09-22 17:46:36 UTC (rev 2643)
@@ -68,7 +68,7 @@
 gui_set_busy(gboolean rawstudio_is_busy)
 {
        static guint status = 0;
-
+       
        if (rawstudio_is_busy)
                busycount++;
        else
@@ -81,12 +81,16 @@
        {
                if (status==0)
                        status = gui_status_push(_("Background renderer 
active"));
+               GdkCursor* cursor = gdk_cursor_new(GDK_WATCH);
+               gdk_window_set_cursor(GTK_WIDGET(rawstudio_window)->window, 
cursor);
+               gdk_cursor_unref(cursor);
        }
        else
        {
                if (status>0)
                        gui_status_pop(status);
                status=0;
+               gdk_window_set_cursor(GTK_WIDGET(rawstudio_window)->window, 
NULL);
        }
        return;
 }
@@ -200,6 +204,7 @@
                        g_string_free(window_title, TRUE);
                }
        }
+       GTK_CATCHUP();
        gui_set_busy(FALSE);
 }
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to