summaryrefslogtreecommitdiff
path: root/tests/testgtk.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-03-21 22:11:26 +0000
committerTim Janik <timj@src.gnome.org>1998-03-21 22:11:26 +0000
commit995d97b0018ec12aec7d238fa45bb890f90f98a5 (patch)
treef7baa33cb98c31e092c785779d40a6b410f37a50 /tests/testgtk.c
parenta7960ed953ee1832de599efe93130d41d02d890c (diff)
downloadgtk+-995d97b0018ec12aec7d238fa45bb890f90f98a5.tar.gz
major overhaul of the code, fixed all known bugs (hopefully ;).
Sat Mar 21 22:54:31 1998 Tim Janik <timj@gtk.org> * 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 <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_real_show): queue the resize for the parent. Thu Mar 19 02:00:50 1998 Tim Janik <timj@gtk.org> * 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.
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r--tests/testgtk.c15
1 files changed, 14 insertions, 1 deletions
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);
}