summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2022-06-17 12:34:05 +0200
committerCorentin Noël <tintou@noel.tf>2022-06-17 12:34:05 +0200
commit1857e11b662316c975f663ad886b6943e7290abf (patch)
treea49be0c333d4f8b43de635654e16e35127fbe631 /test
parenta28e220b8cc0a0ee6602aadf9fa2e1185a5a8ada (diff)
downloadlibgnomekbd-1857e11b662316c975f663ad886b6943e7290abf.tar.gz
gkbd-keyboard-drawing-test: Do not try to use the monitor
Do not force the size with deprecated APIs
Diffstat (limited to 'test')
-rw-r--r--test/gkbd-keyboard-drawing-test.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/gkbd-keyboard-drawing-test.c b/test/gkbd-keyboard-drawing-test.c
index 46f1c35..8f1677c 100644
--- a/test/gkbd-keyboard-drawing-test.c
+++ b/test/gkbd-keyboard-drawing-test.c
@@ -160,7 +160,6 @@ main (gint argc, gchar ** argv)
{
GtkWidget *window;
GtkWidget *gkbd_keyboard_drawing;
- GdkRectangle rect;
GOptionContext *context;
GError *error = NULL;
@@ -201,13 +200,6 @@ main (gint argc, gchar ** argv)
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (gtk_main_quit), NULL);
- gdk_monitor_get_geometry (gdk_display_get_monitor_at_window
- (gdk_window_get_display (GDK_WINDOW (window)),
- (GDK_WINDOW (window))), &rect);
- gtk_window_set_default_size (GTK_WINDOW (window),
- rect.width * 4 / 5,
- rect.height * 1 / 2);
-
gtk_widget_show (window);
gkbd_keyboard_drawing = gkbd_keyboard_drawing_new ();