[libpeas] Do not create the window twice in testing_show_widget()



commit c895bc888e8cb1542ea102a9f96f19c584a79bc4
Author: Garrett Regier <alias301 gmail com>
Date:   Sun Jan 23 12:35:07 2011 -0800

    Do not create the window twice in testing_show_widget()

 tests/libpeas-gtk/testing/testing.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/tests/libpeas-gtk/testing/testing.c b/tests/libpeas-gtk/testing/testing.c
index af31e29..425fd53 100644
--- a/tests/libpeas-gtk/testing/testing.c
+++ b/tests/libpeas-gtk/testing/testing.c
@@ -214,7 +214,6 @@ testing_show_widget (gpointer widget)
       gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (widget));
     }
 
-  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_default_size (GTK_WINDOW (window), 200, 100);
 
 #if GTK_CHECK_VERSION(2,91,1)



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