diff options
author | raveit65 <[email protected]> | 2018-08-13 11:53:53 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-08-13 11:57:30 +0200 |
commit | b3c86df1178c9f64548554d9ba5f0a721560a230 (patch) | |
tree | b727fda8a44686b5e1c138d221405b6ad7e8b501 /src/gpm-kbd-backlight.c | |
parent | 71eb5487cb205d5e637439305232f4bad626a04a (diff) | |
download | mate-power-manager-b3c86df1178c9f64548554d9ba5f0a721560a230.tar.bz2 mate-power-manager-b3c86df1178c9f64548554d9ba5f0a721560a230.tar.xz |
gpm-kbd-backlight: replace deprecated GDK_DEVICE_MANAGER
Diffstat (limited to 'src/gpm-kbd-backlight.c')
-rw-r--r-- | src/gpm-kbd-backlight.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index ec353e0..287968b 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -186,9 +186,9 @@ gpm_kbd_backlight_dialog_show (GpmKbdBacklight *backlight) GdkScreen *pointer_screen; GdkRectangle geometry; GdkMonitor *monitor; - GdkDisplay *display; - GdkDeviceManager *device_manager; - GdkDevice *device; + GdkDisplay *display; + GdkSeat *seat; + GdkDevice *device; /* * get the window size @@ -206,13 +206,13 @@ gpm_kbd_backlight_dialog_show (GpmKbdBacklight *backlight) } pointer_screen = NULL; - display = gtk_widget_get_display (backlight->priv->popup); - device_manager = gdk_display_get_device_manager (display); - device = gdk_device_manager_get_client_pointer (device_manager); - gdk_device_get_position (device, - &pointer_screen, - &pointer_x, - &pointer_y); + display = gtk_widget_get_display (backlight->priv->popup); + seat = gdk_display_get_default_seat (display); + device = gdk_seat_get_pointer (seat); + gdk_device_get_position (device, + &pointer_screen, + &pointer_x, + &pointer_y); monitor = gdk_display_get_monitor_at_point (gdk_screen_get_display (pointer_screen), pointer_x, |