summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-12-02 10:18:04 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-12-07 09:46:39 +0100
commit98fffe6f23998deba31dd5da67d3b0f9b9482134 (patch)
treed627d5c47edfedf5090cd076f70a282f1259ede2 /tests
parentf083849ebbe0e716677bfa4887c2dc0fdd6c7712 (diff)
downloadgtk+-98fffe6f23998deba31dd5da67d3b0f9b9482134.tar.gz
tests/animated-resizing: Resize widget instead of window
This means the window needs to be marked as non-resizable, otherwise it won't shrink.
Diffstat (limited to 'tests')
-rw-r--r--tests/animated-resizing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/animated-resizing.c b/tests/animated-resizing.c
index 9b5133a88d..0446b29b68 100644
--- a/tests/animated-resizing.c
+++ b/tests/animated-resizing.c
@@ -123,8 +123,8 @@ on_frame (double progress)
window_height = HEIGHT + jitter;
}
- gtk_window_resize (GTK_WINDOW (window),
- window_width, window_height);
+ gtk_widget_set_size_request (gtk_window_get_child (GTK_WINDOW (window)),
+ window_width, window_height);
gtk_widget_queue_draw (window);
}
@@ -196,6 +196,7 @@ main(int argc, char **argv)
cb_no_resize ? "no" : "yes");
window = gtk_window_new ();
+ gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
frame_stats_ensure (GTK_WINDOW (window));
da = gtk_drawing_area_new ();