mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
testsuite: Replace popups with toplevels
The tests do not depend on the window being a popup.
This commit is contained in:
parent
fb856d96cd
commit
c2bd4bc3cb
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user