[gtk: 77/88] tests/animated-resizing: Use gtk_window_default_size() instead
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 77/88] tests/animated-resizing: Use gtk_window_default_size() instead
- Date: Tue, 8 Dec 2020 15:38:47 +0000 (UTC)
commit d7d738d745c3a8b91bfb009b2ee9a9f67a3b0c5c
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Dec 7 09:41:54 2020 +0100
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.
tests/animated-resizing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]