diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-12-07 09:41:54 +0100 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-12-07 20:37:29 +0100 |
commit | d7d738d745c3a8b91bfb009b2ee9a9f67a3b0c5c (patch) | |
tree | f460bad5d3d30454399f32c162d162e40f39d99b /tests | |
parent | ac17217c69b3a439cc3039ee39e92801203b726f (diff) | |
download | gtk+-d7d738d745c3a8b91bfb009b2ee9a9f67a3b0c5c.tar.gz |
tests/animated-resizing: Use gtk_window_default_size() instead
This will actually make it resize on-demand, as the default size is the
size used when computing the window size when the size is not fixed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/animated-resizing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/animated-resizing.c b/tests/animated-resizing.c index c9a316a560..bf7a0b68c4 100644 --- a/tests/animated-resizing.c +++ b/tests/animated-resizing.c @@ -123,7 +123,7 @@ on_frame (double progress) window_height = HEIGHT + jitter; } - gtk_widget_set_size_request (gtk_window_get_child (GTK_WINDOW (window)), + gtk_window_set_default_size (GTK_WINDOW (window), window_width, window_height); gtk_widget_queue_draw (window); |