[gtk/wip/exalm/test: 15/37] tests: Fix testfilechooser test



commit b2f2b3f16960bee3456f7d2a56b707215ce8cf3e
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon May 11 04:47:26 2020 +0500

    tests: Fix testfilechooser test
    
    Don't use GtkContainer API on GtkWindow.

 tests/testfilechooser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index 0a9e19e2bf..0558dab5b0 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -452,7 +452,7 @@ main (int argc, char **argv)
   control_window = gtk_window_new ();
 
   vbbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_container_add (GTK_CONTAINER (control_window), vbbox);
+  gtk_window_set_child (GTK_WINDOW (control_window), vbbox);
 
   button = gtk_button_new_with_mnemonic ("_Select all");
   gtk_widget_set_sensitive (button, multiple);


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