linkbutton: Fix hand cursor when hovering
Use the new gtk_widget_set_cursor instead of setting it on the GdkWindow.
This commit is contained in:
committed by
Carlos Garnacho
parent
3e44a3920a
commit
5ae9ca79e4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user