Author: akv
Date: 2013-05-08 14:33:56 +0200 (Wed, 08 May 2013)
New Revision: 4396
Modified:
branches/4175-enfuse/src/rs-actions.c
Log:
Showing busy-cursor when updating thumbnail in enfuse dialog.
Modified: branches/4175-enfuse/src/rs-actions.c
===================================================================
--- branches/4175-enfuse/src/rs-actions.c 2013-05-08 12:01:49 UTC (rev
4395)
+++ branches/4175-enfuse/src/rs-actions.c 2013-05-08 12:33:56 UTC (rev
4396)
@@ -1538,11 +1538,16 @@
static gboolean
update_image_callback (GtkWidget *event_box, GdkEventButton *event, IMAGE_DATA
*image_data)
{
- gui_set_busy(TRUE);
+ GdkCursor* cursor = gdk_cursor_new(GDK_WATCH);
+ gdk_window_set_cursor(gtk_widget_get_window(event_box), cursor);
+ gdk_cursor_unref(cursor);
+
gchar *thumb = rs_enfuse(image_data->rs, image_data->selected, TRUE, 250);
gtk_image_set_from_file(GTK_IMAGE(image_data->image), thumb);
unlink(thumb);
- gui_set_busy(FALSE);
+
+ gdk_window_set_cursor(gtk_widget_get_window(event_box), NULL);
+
return TRUE;
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit