summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-14 20:32:10 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-14 21:18:49 +0100
commitc2bd4bc3cbc298c7cb4e4566e0622c7c201a95b0 (patch)
tree48f18f9d5689f97e8d4d19ed7aa4ce875bf545d7 /testsuite
parentfb856d96cd8657e53b31a9fdaa736800ff567736 (diff)
downloadgtk+-c2bd4bc3cbc298c7cb4e4566e0622c7c201a95b0.tar.gz
testsuite: Replace popups with toplevels
The tests do not depend on the window being a popup.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gtk/regression-tests.c4
-rw-r--r--testsuite/gtk/window.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/gtk/regression-tests.c b/testsuite/gtk/regression-tests.c
index e44eaa65a0..f0c74374d1 100644
--- a/testsuite/gtk/regression-tests.c
+++ b/testsuite/gtk/regression-tests.c
@@ -24,7 +24,7 @@ test_9d6da33ff5c5e41e3521e1afd63d2d67bc915753 (void)
{
GtkWidget *window, *label;
- window = gtk_window_new (GTK_WINDOW_POPUP);
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
label = gtk_label_new ("I am sensitive.");
gtk_container_add (GTK_CONTAINER (window), label);
@@ -43,7 +43,7 @@ test_94f00eb04dd1433cf1cc9a3341f485124e38abd1 (void)
{
GtkWidget *window, *label;
- window = gtk_window_new (GTK_WINDOW_POPUP);
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
label = gtk_label_new ("I am insensitive.");
gtk_container_add (GTK_CONTAINER (window), label);
diff --git a/testsuite/gtk/window.c b/testsuite/gtk/window.c
index 8fd7337543..74e488e958 100644
--- a/testsuite/gtk/window.c
+++ b/testsuite/gtk/window.c
@@ -218,8 +218,8 @@ test_resize_popup (void)
gboolean done;
/* testcase for the dnd window */
- window = gtk_window_new (GTK_WINDOW_POPUP);
- gtk_window_set_display (GTK_WINDOW (window), gdk_display_get_default ());
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_decorated (GTK_WINDOW (window), FALSE);
gtk_window_resize (GTK_WINDOW (window), 1, 1);
gtk_window_get_size (GTK_WINDOW (window), &w, &h);
g_assert_cmpint (w, ==, 1);