[gtk+] GtkFileChooser: Use a better busy cursor



commit 0113da486895a98525e12e3717ee56d83ebcd7e3
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 30 22:40:45 2015 -0400

    GtkFileChooser: Use a better busy cursor
    
    It is possible to interact with the file chooser while
    things are loading, so use a cursor that indicates this,
    if we have one.

 gtk/gtkfilechooserwidget.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 9daf923..46abe23 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -3454,7 +3454,11 @@ set_busy_cursor (GtkFileChooserWidget *impl,
   display = gtk_widget_get_display (widget);
 
   if (busy)
-    cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+    {
+      cursor = gdk_cursor_new_from_name (display, "left_ptr_watch");
+      if (cursor == NULL)
+        cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+    }
   else
     cursor = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]