GtkRecentChooser: Use a better busy cursor
This commit is contained in:
@ -684,7 +684,7 @@ error_message (GtkRecentChooserDefault *impl,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
set_busy_cursor (GtkRecentChooserDefault *impl,
|
set_busy_cursor (GtkRecentChooserDefault *impl,
|
||||||
gboolean show_busy_cursor)
|
gboolean busy)
|
||||||
{
|
{
|
||||||
GtkWindow *toplevel;
|
GtkWindow *toplevel;
|
||||||
GdkDisplay *display;
|
GdkDisplay *display;
|
||||||
@ -696,12 +696,16 @@ set_busy_cursor (GtkRecentChooserDefault *impl,
|
|||||||
|
|
||||||
display = gtk_widget_get_display (GTK_WIDGET (toplevel));
|
display = gtk_widget_get_display (GTK_WIDGET (toplevel));
|
||||||
|
|
||||||
cursor = NULL;
|
if (busy)
|
||||||
if (show_busy_cursor)
|
{
|
||||||
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;
|
||||||
|
|
||||||
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (toplevel)),
|
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (toplevel)), cursor);
|
||||||
cursor);
|
|
||||||
gdk_display_flush (display);
|
gdk_display_flush (display);
|
||||||
|
|
||||||
if (cursor)
|
if (cursor)
|
||||||
|
|||||||
Reference in New Issue
Block a user