From 9323d098a6b80b396272ef9a1649218fbdced13b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 3 Nov 2017 23:19:22 +0100 Subject: 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. --- gtk/gtklabel.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gtk/gtklabel.c') 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); } -- cgit v1.2.1