From da98c7796103d3460107fb6b4a6a0ba05e04552f Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 13 Feb 2023 20:56:08 -0800 Subject: [PATCH] tools: set content-fit for now Until we have another widget to replace this. --- tools/mks.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/mks.c b/tools/mks.c index 5c8c123..4d2a0d1 100644 --- a/tools/mks.c +++ b/tools/mks.c @@ -61,13 +61,12 @@ main (int argc, main_loop = g_main_loop_new (NULL, FALSE); window = g_object_new (GTK_TYPE_WINDOW, - "default-width", 800, - "default-height", 600, + "default-width", 640, + "default-height", 480, "title", "Mouse, Keyboard, Screen", NULL); picture = g_object_new (GTK_TYPE_PICTURE, - "halign", GTK_ALIGN_CENTER, - "valign", GTK_ALIGN_CENTER, + "content-fit", GTK_CONTENT_FIT_SCALE_DOWN, NULL); gtk_window_set_child (window, GTK_WIDGET (picture)); g_signal_connect_swapped (window,