summaryrefslogtreecommitdiff
path: root/src/gpm-backlight.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-28 14:33:17 +0300
committerraveit65 <[email protected]>2018-01-29 15:59:27 +0100
commitdac0d4e304ceaa0e4f5c93fe4053ad44233a2c75 (patch)
treebbfeb8167947be43580ee675016d4c781a0cadc5 /src/gpm-backlight.c
parentbff61989d0355ee61120ce5d0121d0c99f693569 (diff)
downloadmate-power-manager-dac0d4e304ceaa0e4f5c93fe4053ad44233a2c75.tar.bz2
mate-power-manager-dac0d4e304ceaa0e4f5c93fe4053ad44233a2c75.tar.xz
require GTK+ 3.22 and GLib 2.50
and drop additional checks for min/max GLib versions, it's not needed
Diffstat (limited to 'src/gpm-backlight.c')
-rw-r--r--src/gpm-backlight.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c
index fa54ad6..e066d06 100644
--- a/src/gpm-backlight.c
+++ b/src/gpm-backlight.c
@@ -208,11 +208,7 @@ gpm_backlight_dialog_show (GpmBacklight *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;
@@ -241,21 +237,11 @@ gpm_backlight_dialog_show (GpmBacklight *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;