diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-04 01:37:03 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-04 01:37:03 +0100 |
commit | a409320cda345c4a456b5ae2fdd10d10f30ab0a8 (patch) | |
tree | 3f3aa9dd09cd9500041d790c914e7e1aba0a9f79 /gtk/gtklinkbutton.c | |
parent | d78bbb7e96efcbc83a8bc0ea71f62797c7a8432d (diff) | |
download | gtk+-a409320cda345c4a456b5ae2fdd10d10f30ab0a8.tar.gz |
gtk: Use gtk_widget_set_cursor()
... and gtk_widget_set_cursor_from_name() instead of setting cursors on
GdkWindows.
Diffstat (limited to 'gtk/gtklinkbutton.c')
-rw-r--r-- | gtk/gtklinkbutton.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index 430d427485..382776a772 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -309,17 +309,10 @@ static void set_hand_cursor (GtkWidget *widget, gboolean show_hand) { - GdkCursor *cursor; - if (show_hand) - cursor = gdk_cursor_new_from_name ("pointer", NULL); + gtk_widget_set_cursor_from_name (widget, "pointer"); else - cursor = NULL; - - gtk_widget_set_cursor (widget, cursor); - - if (cursor) - g_object_unref (cursor); + gtk_widget_set_cursor (widget, NULL); } static void |