[gtk/kill-containers: 19/76] Fix a leftover window



commit 13b1e73a0bc8eeffd2f309da9df2b010631e64e1
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 8 12:27:25 2020 -0400

    Fix a leftover window
    
    We were still using container api on a window here.

 tests/visuals/visuals.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/visuals/visuals.c b/tests/visuals/visuals.c
index 2aa83d7930..b3232fa7b8 100644
--- a/tests/visuals/visuals.c
+++ b/tests/visuals/visuals.c
@@ -44,7 +44,7 @@ create_dark_popup (GtkWidget *parent)
   gtk_window_set_resizable (GTK_WINDOW (popup), FALSE);
   gtk_window_set_hide_on_close (GTK_WINDOW (popup), TRUE);
 
-  gtk_container_add (GTK_CONTAINER (popup), button);
+  gtk_window_set_child (GTK_WINDOW (popup), button);
   g_signal_connect (button, "toggled",
                     G_CALLBACK (dark_button_toggled_cb), NULL);
 


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