[gtk/wip/otte/for-master: 6/12] testsuite: Replace popups with toplevels
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 6/12] testsuite: Replace popups with toplevels
- Date: Fri, 14 Feb 2020 20:22:32 +0000 (UTC)
commit c2bd4bc3cbc298c7cb4e4566e0622c7c201a95b0
Author: Benjamin Otte <otte redhat com>
Date: Fri Feb 14 20:32:10 2020 +0100
testsuite: Replace popups with toplevels
The tests do not depend on the window being a popup.
testsuite/gtk/regression-tests.c | 4 ++--
testsuite/gtk/window.c | 4 ++--
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]