[gtk+/gtk-3-16] GtkFileChooser: Use a better busy cursor
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] GtkFileChooser: Use a better busy cursor
- Date: Mon, 11 May 2015 18:23:57 +0000 (UTC)
commit f9bf9295c551b798ab35221e57083b49d8ca897a
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 f995cb1..f3052d0 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -3439,7 +3439,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]