summaryrefslogtreecommitdiff
path: root/test/matekbd-keyboard-drawing-test.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-01-26 17:18:25 +0100
committerraveit65 <[email protected]>2018-01-27 11:10:19 +0100
commit9634424e8d633e5d290dde25b65b7f58db88104b (patch)
tree8cb8e8eea491d631f81781d3abb0e95a23c47fd6 /test/matekbd-keyboard-drawing-test.c
parentafc842899268809a8e688dec5af10b373a6cd7e3 (diff)
downloadlibmatekbd-9634424e8d633e5d290dde25b65b7f58db88104b.tar.bz2
libmatekbd-9634424e8d633e5d290dde25b65b7f58db88104b.tar.xz
building: remove < gtk+-3.22 bits and bump required gtk+
Diffstat (limited to 'test/matekbd-keyboard-drawing-test.c')
-rw-r--r--test/matekbd-keyboard-drawing-test.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/matekbd-keyboard-drawing-test.c b/test/matekbd-keyboard-drawing-test.c
index aaea743..015879b 100644
--- a/test/matekbd-keyboard-drawing-test.c
+++ b/test/matekbd-keyboard-drawing-test.c
@@ -161,11 +161,7 @@ main (gint argc, gchar ** argv)
GtkWidget *window;
GtkWidget *matekbd_keyboard_drawing;
GdkScreen *screen;
-#if GTK_CHECK_VERSION (3, 22, 0)
GdkMonitor *monitor;
-#else
- gint monitor;
-#endif
GdkRectangle rect;
GOptionContext *context;
GError *error = NULL;
@@ -208,13 +204,8 @@ main (gint argc, gchar ** argv)
G_CALLBACK (gtk_main_quit), NULL);
screen = gtk_window_get_screen (GTK_WINDOW (window));
-#if GTK_CHECK_VERSION (3, 22, 0)
monitor = gdk_display_get_monitor_at_point (gdk_screen_get_display (screen), 0, 0);
gdk_monitor_get_geometry (monitor, &rect);
-#else
- monitor = gdk_screen_get_monitor_at_point (screen, 0, 0);
- gdk_screen_get_monitor_geometry (screen, monitor, &rect);
-#endif
gtk_window_set_default_size (GTK_WINDOW (window),
rect.width * 4 / 5,
rect.height * 1 / 2);