summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-08 00:14:36 +0200
committerraveit65 <[email protected]>2016-09-01 21:31:38 +0200
commitf0baa2d6410eee7469dffce61fc66a2c505178fe (patch)
tree7270514149905d1d43bcd8f21a0cf9004c30a4fd
parent547cf089c1593156c8e5c0f767cf7a553039701e (diff)
downloadmate-panel-f0baa2d6410eee7469dffce61fc66a2c505178fe.tar.bz2
mate-panel-f0baa2d6410eee7469dffce61fc66a2c505178fe.tar.xz
GTK+-3.20 panel-frame: use GtkSeat instead of deprecated device pointer
-rw-r--r--mate-panel/panel-applet-frame.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mate-panel/panel-applet-frame.c b/mate-panel/panel-applet-frame.c
index d60cd38d..922e449d 100644
--- a/mate-panel/panel-applet-frame.c
+++ b/mate-panel/panel-applet-frame.c
@@ -488,10 +488,10 @@ mate_panel_applet_frame_button_changed (GtkWidget *widget,
gboolean handled = FALSE;
#if GTK_CHECK_VERSION (3, 0, 0)
GdkDisplay *display;
- GdkDevice *pointer;
#if GTK_CHECK_VERSION (3, 20, 0)
GdkSeat *seat;
#else
+ GdkDevice *pointer;
GdkDeviceManager *device_manager;
#endif
#endif
@@ -526,8 +526,7 @@ mate_panel_applet_frame_button_changed (GtkWidget *widget,
#if GTK_CHECK_VERSION(3, 20, 0)
display = gtk_widget_get_display (widget);
seat = gdk_display_get_default_seat (display);
- pointer = gdk_seat_get_pointer (seat);
- gdk_device_ungrab (pointer, GDK_CURRENT_TIME);
+ gdk_seat_ungrab (seat);
#elif GTK_CHECK_VERSION (3, 0, 0)
display = gtk_widget_get_display (widget);
device_manager = gdk_display_get_device_manager (display);