diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-03 23:19:22 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-04 00:07:13 +0100 |
commit | 9323d098a6b80b396272ef9a1649218fbdced13b (patch) | |
tree | 2e6ee72e50d59e4d8e0faad7ecb7cd967a90a857 /gtk/gtkprintunixdialog.c | |
parent | e2996732b9ede9a0fb9e43e1ef2d468efd0021ae (diff) | |
download | gtk+-9323d098a6b80b396272ef9a1649218fbdced13b.tar.gz |
gdk: Cursors no longer have a display
Change constructors to reflect that.
While doing so, also add a fallback argument to the cursor constructors,
so it is now possible to create cursors with fallback.
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index ebe6ecfd6a..9f668b38cc 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -581,7 +581,6 @@ set_busy_cursor (GtkPrintUnixDialog *dialog, { GtkWidget *widget; GtkWindow *toplevel; - GdkDisplay *display; GdkCursor *cursor; toplevel = get_toplevel (GTK_WIDGET (dialog)); @@ -590,15 +589,12 @@ set_busy_cursor (GtkPrintUnixDialog *dialog, if (!toplevel || !gtk_widget_get_realized (widget)) return; - display = gtk_widget_get_display (widget); - if (busy) - cursor = gdk_cursor_new_from_name (display, "progress"); + cursor = gdk_cursor_new_from_name ("progress", NULL); else cursor = NULL; gdk_window_set_cursor (gtk_widget_get_window (widget), cursor); - gdk_display_flush (display); if (cursor) g_object_unref (cursor); |