diff options
author | Pablo Barciela <[email protected]> | 2019-02-09 17:02:00 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-03-11 08:34:05 +0100 |
commit | 3337ca72b14d89c12daf65b65d645dad6e4c6e8c (patch) | |
tree | 4f4bf84e570ad028f1e08d9c6c6d503d9bf8824d /libmate-desktop/mate-hsv.c | |
parent | c7139d3d99c993c51fe589db55f9fab20669346c (diff) | |
download | mate-desktop-3337ca72b14d89c12daf65b65d645dad6e4c6e8c.tar.bz2 mate-desktop-3337ca72b14d89c12daf65b65d645dad6e4c6e8c.tar.xz |
mate-hsv: avoid deprecated 'gdk_device_grab/ungrab'
Diffstat (limited to 'libmate-desktop/mate-hsv.c')
-rw-r--r-- | libmate-desktop/mate-hsv.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libmate-desktop/mate-hsv.c b/libmate-desktop/mate-hsv.c index cacec6b..67b49c7 100644 --- a/libmate-desktop/mate-hsv.c +++ b/libmate-desktop/mate-hsv.c @@ -612,15 +612,14 @@ set_cross_grab (MateHSV *hsv, cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (hsv)), GDK_CROSSHAIR); - gdk_device_grab (device, - priv->window, - GDK_OWNERSHIP_NONE, - FALSE, - GDK_POINTER_MOTION_MASK - | GDK_POINTER_MOTION_HINT_MASK - | GDK_BUTTON_RELEASE_MASK, - cursor, - time); + gdk_seat_grab (gdk_device_get_seat (device), + priv->window, + GDK_SEAT_CAPABILITY_ALL_POINTING, + FALSE, + cursor, + NULL, + NULL, + NULL); g_object_unref (cursor); } @@ -722,7 +721,7 @@ mate_hsv_button_release (GtkWidget *widget, g_assert_not_reached (); } - gdk_device_ungrab (gdk_event_get_device ((GdkEvent *) event), event->time); + gdk_seat_ungrab (gdk_device_get_seat (gdk_event_get_device ((GdkEvent *) event))); return TRUE; } |