diff options
author | raveit65 <[email protected]> | 2016-08-08 00:14:36 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-09-01 21:31:38 +0200 |
commit | f0baa2d6410eee7469dffce61fc66a2c505178fe (patch) | |
tree | 7270514149905d1d43bcd8f21a0cf9004c30a4fd | |
parent | 547cf089c1593156c8e5c0f767cf7a553039701e (diff) | |
download | mate-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.c | 5 |
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); |