testsuite: Replace popups with toplevels

The tests do not depend on the window being a popup.
This commit is contained in:
Benjamin Otte 2020-02-14 20:32:10 +01:00
parent fb856d96cd
commit c2bd4bc3cb
2 changed files with 4 additions and 4 deletions

View File

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

View File

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