[gtk+] tests: Remove handleboxes from testmerge example



commit 5ae01f82c06a49fa4c660a735a5832ebda0451fc
Author: Benjamin Otte <otte redhat com>
Date:   Fri Sep 30 22:10:04 2011 +0200

    tests: Remove handleboxes from testmerge example

 tests/testmerge.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/tests/testmerge.c b/tests/testmerge.c
index 6b00339..37c470a 100644
--- a/tests/testmerge.c
+++ b/tests/testmerge.c
@@ -223,20 +223,7 @@ add_widget (GtkUIManager *merge,
 	    GtkWidget    *widget, 
 	    GtkBox       *box)
 {
-  GtkWidget *handle_box;
-
-  if (GTK_IS_TOOLBAR (widget))
-    {
-      handle_box = gtk_handle_box_new ();
-      gtk_widget_show (handle_box);
-      gtk_container_add (GTK_CONTAINER (handle_box), widget);
-      gtk_box_pack_start (box, handle_box, FALSE, FALSE, 0);
-      g_signal_connect_swapped (widget, "destroy", 
-				G_CALLBACK (gtk_widget_destroy), handle_box);
-    }
-  else
-    gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
-    
+  gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
   gtk_widget_show (widget);
 }
 



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