summaryrefslogtreecommitdiff
path: root/gtk/gtklinkbutton.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-09 16:53:45 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-05-25 16:25:59 +0200
commit5ae9ca79e4ff65fbbf225533d038c94254fd1f6b (patch)
tree164a2e26dc49d219f9e6395c74af0ec14ba869b8 /gtk/gtklinkbutton.c
parent3e44a3920a33e2acf587d62fd9ed35858235ca98 (diff)
downloadgtk+-5ae9ca79e4ff65fbbf225533d038c94254fd1f6b.tar.gz
linkbutton: Fix hand cursor when hovering
Use the new gtk_widget_set_cursor instead of setting it on the GdkWindow.
Diffstat (limited to 'gtk/gtklinkbutton.c')
-rw-r--r--gtk/gtklinkbutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 3c97a3e111..837d4ecda9 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -67,6 +67,7 @@
#include "gtktooltip.h"
#include "gtkprivate.h"
#include "gtkintl.h"
+#include "gtkwidgetprivate.h"
#include "a11y/gtklinkbuttonaccessible.h"
@@ -324,8 +325,7 @@ set_hand_cursor (GtkWidget *widget,
if (show_hand)
cursor = gdk_cursor_new_from_name (display, "pointer");
- gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
- gdk_display_flush (display);
+ gtk_widget_set_cursor (widget, cursor);
if (cursor)
g_object_unref (cursor);