diff options
author | Sorokin Alexei <[email protected]> | 2016-06-16 18:09:25 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-29 18:42:12 +0200 |
commit | 225702b3c6a609065465c66f0f2739fc1d2184a9 (patch) | |
tree | 08c677b952074a8a79b93c9d895950bdbd85799d /mate-panel/panel-applet-frame.c | |
parent | de1be3467a6ff1b350fc286025364650c8d51d1e (diff) | |
download | mate-panel-225702b3c6a609065465c66f0f2739fc1d2184a9.tar.bz2 mate-panel-225702b3c6a609065465c66f0f2739fc1d2184a9.tar.xz |
fix some warnings and deprecations
Diffstat (limited to 'mate-panel/panel-applet-frame.c')
-rw-r--r-- | mate-panel/panel-applet-frame.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mate-panel/panel-applet-frame.c b/mate-panel/panel-applet-frame.c index ddd28906..d60cd38d 100644 --- a/mate-panel/panel-applet-frame.c +++ b/mate-panel/panel-applet-frame.c @@ -489,8 +489,12 @@ mate_panel_applet_frame_button_changed (GtkWidget *widget, #if GTK_CHECK_VERSION (3, 0, 0) GdkDisplay *display; GdkDevice *pointer; +#if GTK_CHECK_VERSION (3, 20, 0) + GdkSeat *seat; +#else GdkDeviceManager *device_manager; #endif +#endif frame = MATE_PANEL_APPLET_FRAME (widget); @@ -519,7 +523,12 @@ mate_panel_applet_frame_button_changed (GtkWidget *widget, case 3: if (event->type == GDK_BUTTON_PRESS || event->type == GDK_2BUTTON_PRESS) { -#if GTK_CHECK_VERSION (3, 0, 0) +#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); +#elif GTK_CHECK_VERSION (3, 0, 0) display = gtk_widget_get_display (widget); device_manager = gdk_display_get_device_manager (display); pointer = gdk_device_manager_get_client_pointer (device_manager); |