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/gtklabel.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/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index a29db7169c..1a82368d06 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -3756,17 +3756,14 @@ gtk_label_update_cursor (GtkLabel *label) if (gtk_widget_get_realized (widget)) { - GdkDisplay *display; GdkCursor *cursor; if (gtk_widget_is_sensitive (widget)) { - display = gtk_widget_get_display (widget); - if (priv->select_info->active_link) - cursor = gdk_cursor_new_from_name (display, "pointer"); + cursor = gdk_cursor_new_from_name ("pointer", NULL); else if (priv->select_info->selectable) - cursor = gdk_cursor_new_from_name (display, "text"); + cursor = gdk_cursor_new_from_name ("text", NULL); else cursor = NULL; } @@ -4960,7 +4957,7 @@ gtk_label_set_selectable_hint (GtkLabel *label) { GdkCursor *cursor; - cursor = gdk_cursor_new_from_name (gtk_widget_get_display (widget), "text"); + cursor = gdk_cursor_new_from_name ("text", NULL); gtk_widget_set_cursor (widget, cursor); g_object_unref (cursor); } |