diff options
Diffstat (limited to 'src/gpm-kbd-backlight.c')
-rw-r--r-- | src/gpm-kbd-backlight.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index cc5d362..ec353e0 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -185,11 +185,7 @@ gpm_kbd_backlight_dialog_show (GpmKbdBacklight *backlight) GtkRequisition win_req; GdkScreen *pointer_screen; GdkRectangle geometry; -#if GTK_CHECK_VERSION (3, 22, 0) GdkMonitor *monitor; -#else - int monitor; -#endif GdkDisplay *display; GdkDeviceManager *device_manager; GdkDevice *device; @@ -218,21 +214,11 @@ gpm_kbd_backlight_dialog_show (GpmKbdBacklight *backlight) &pointer_x, &pointer_y); -#if GTK_CHECK_VERSION (3, 22, 0) monitor = gdk_display_get_monitor_at_point (gdk_screen_get_display (pointer_screen), pointer_x, pointer_y); gdk_monitor_get_geometry (monitor, &geometry); -#else - monitor = gdk_screen_get_monitor_at_point (pointer_screen, - pointer_x, - pointer_y); - - gdk_screen_get_monitor_geometry (pointer_screen, - monitor, - &geometry); -#endif screen_w = geometry.width; screen_h = geometry.height; |