From 995d97b0018ec12aec7d238fa45bb890f90f98a5 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sat, 21 Mar 1998 22:11:26 +0000 Subject: major overhaul of the code, fixed all known bugs (hopefully ;). Sat Mar 21 22:54:31 1998 Tim Janik * gtk/gtkhandlebox.h: * gtk/gtkhandlebox.c: major overhaul of the code, fixed all known bugs (hopefully ;). Sat Mar 20 15:33:17 1998 Tim Janik * gtk/gtkwidget.c (gtk_widget_real_show): queue the resize for the parent. Thu Mar 19 02:00:50 1998 Tim Janik * gtk/gtkwidget.c (gtk_widget_unrealize): unset flags after emission, especially GTK_MAPPED, since that might not have been taken care of by an UNMAP emission. --- tests/testgtk.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tests/testgtk.c') diff --git a/tests/testgtk.c b/tests/testgtk.c index 4b40d6a108..e01012f1fc 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -1464,6 +1464,7 @@ create_handle_box () { static GtkWidget* window = NULL; GtkWidget *handle_box; + GtkWidget *handle_box2; GtkWidget *hbox; GtkWidget *toolbar; GtkWidget *label; @@ -1512,8 +1513,20 @@ create_handle_box () "detached"); gtk_widget_show (handle_box); + handle_box2 = gtk_handle_box_new (); + gtk_container_add (GTK_CONTAINER (handle_box), handle_box2); + gtk_signal_connect (GTK_OBJECT (handle_box2), + "child_attached", + GTK_SIGNAL_FUNC (handle_box_child_signal), + "attached"); + gtk_signal_connect (GTK_OBJECT (handle_box2), + "child_detached", + GTK_SIGNAL_FUNC (handle_box_child_signal), + "detached"); + gtk_widget_show (handle_box2); + label = gtk_label_new ("Fooo!"); - gtk_container_add (GTK_CONTAINER (handle_box), label); + gtk_container_add (GTK_CONTAINER (handle_box2), label); gtk_widget_show (label); } -- cgit v1.2.1