[gtk+] testgtk: Fix the scrolledwindow test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testgtk: Fix the scrolledwindow test
- Date: Tue, 2 Jan 2018 23:16:03 +0000 (UTC)
commit d3014c23b9d37eab3ff4a948bc6d4ab0bf70d873
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 1 10:24:12 2018 -0500
testgtk: Fix the scrolledwindow test
We need to expand here, otherwise things look wrong.
tests/testgtk.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index e3c1816..d709e21 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -2791,6 +2791,8 @@ create_scrolled_windows (GtkWidget *widget)
gtk_window_set_title (GTK_WINDOW (window), "dialog");
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
+ gtk_widget_set_hexpand (scrolled_window, TRUE);
+ gtk_widget_set_vexpand (scrolled_window, TRUE);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]