[gtk/testgtk-warning] tests: Remove spurious gtk_container_add()



commit 3bb14238049961201176f7665810599177ee1366
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Feb 4 10:02:15 2019 +0100

    tests: Remove spurious gtk_container_add()
    
    Commit bd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6 removed
    gtk_box_pack_end(), but it added a gtk_container_add() with an
    uninitialised widget, and the compiler is very unhappy about it.

 tests/testgtk.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 9adbd06aba..a7a1c81f87 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -4182,7 +4182,6 @@ create_pages (GtkNotebook *notebook, gint start, gint end)
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
       gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
       gtk_container_add (GTK_CONTAINER (vbox), hbox);
-      gtk_container_add (GTK_CONTAINER (vbox), button);
 
       button = gtk_check_button_new_with_label ("Fill Tab");
       gtk_container_add (GTK_CONTAINER (hbox), button);


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