summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-03 23:19:22 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-04 00:07:13 +0100
commit9323d098a6b80b396272ef9a1649218fbdced13b (patch)
tree2e6ee72e50d59e4d8e0faad7ecb7cd967a90a857 /gtk/gtklabel.c
parente2996732b9ede9a0fb9e43e1ef2d468efd0021ae (diff)
downloadgtk+-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.c9
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);
}