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.
This commit is contained in:
Jonas Ådahl 2020-12-07 09:41:54 +01:00
parent ac17217c69
commit d7d738d745

View File

@ -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);