[gtk+/wip/carlosg/event-delivery: 80/104] linkbutton: Fix hand cursor when hovering
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-delivery: 80/104] linkbutton: Fix hand cursor when hovering
- Date: Thu, 25 May 2017 14:46:50 +0000 (UTC)
commit 5ae9ca79e4ff65fbbf225533d038c94254fd1f6b
Author: Timm Bäder <mail baedert org>
Date: Tue May 9 16:53:45 2017 +0200
linkbutton: Fix hand cursor when hovering
Use the new gtk_widget_set_cursor instead of setting it on the
GdkWindow.
gtk/gtklinkbutton.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 3c97a3e..837d4ec 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]