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/gtkaboutdialog.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/gtkaboutdialog.c')
-rw-r--r-- | gtk/gtkaboutdialog.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 820f01c0a1..d80ee1f306 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -852,13 +852,11 @@ gtk_about_dialog_realize (GtkWidget *widget) { GtkAboutDialog *about = GTK_ABOUT_DIALOG (widget); GtkAboutDialogPrivate *priv = about->priv; - GdkDisplay *display; GTK_WIDGET_CLASS (gtk_about_dialog_parent_class)->realize (widget); - display = gtk_widget_get_display (widget); - priv->hand_cursor = gdk_cursor_new_from_name (display, "pointer"); - priv->regular_cursor = gdk_cursor_new_from_name (display, "text"); + priv->hand_cursor = gdk_cursor_new_from_name ("pointer", NULL); + priv->regular_cursor = gdk_cursor_new_from_name ("text", NULL); } static void |