[gnome-todo] tests: Adapt to GTK4 API changes



commit 1e5666f0850f24e7f7505e57b030c7adb532fb0a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Feb 19 10:39:00 2020 -0300

    tests: Adapt to GTK4 API changes

 tests/interactive/test-colorbutton.c | 2 +-
 tests/interactive/test-filter-sort.c | 2 +-
 tests/interactive/test-task-model.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/interactive/test-colorbutton.c b/tests/interactive/test-colorbutton.c
index 5e8be79..a095041 100644
--- a/tests/interactive/test-colorbutton.c
+++ b/tests/interactive/test-colorbutton.c
@@ -78,7 +78,7 @@ main (gint   argc,
         group = color_button;
     }
 
-  window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
+  window = GTK_WINDOW (gtk_window_new ());
   gtk_container_add (GTK_CONTAINER (window), grid);
   gtk_window_present (window);
 
diff --git a/tests/interactive/test-filter-sort.c b/tests/interactive/test-filter-sort.c
index 849570d..d378d19 100644
--- a/tests/interactive/test-filter-sort.c
+++ b/tests/interactive/test-filter-sort.c
@@ -278,7 +278,7 @@ main (gint   argc,
   gtk_container_add (GTK_CONTAINER (vbox), scrolledwindow);
 
   /* Window */
-  window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
+  window = GTK_WINDOW (gtk_window_new ());
   gtk_window_set_default_size (window, 800, 600);
   gtk_container_add (GTK_CONTAINER (window), vbox);
   gtk_window_present (window);
diff --git a/tests/interactive/test-task-model.c b/tests/interactive/test-task-model.c
index 0f14b48..acfd1dc 100644
--- a/tests/interactive/test-task-model.c
+++ b/tests/interactive/test-task-model.c
@@ -153,7 +153,7 @@ main (gint   argc,
   gtk_container_add (GTK_CONTAINER (scrolledwindow), listbox);
 
   /* Window */
-  window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
+  window = GTK_WINDOW (gtk_window_new ());
   gtk_window_set_default_size (window, 800, 600);
   gtk_container_add (GTK_CONTAINER (window), scrolledwindow);
   gtk_window_present (window);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]