diff options
author | Tim Janik <timj@gimp.org> | 1998-03-12 09:14:03 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-03-12 09:14:03 +0000 |
commit | d19d3c5dca861e5ae7177548d9245fbc32815284 (patch) | |
tree | 0d5b3fceef43240808608078ed5680cf744d514a /tests | |
parent | a8afd462c0d23eb1fed39394a523b364a4cdca39 (diff) | |
download | gdk-pixbuf-d19d3c5dca861e5ae7177548d9245fbc32815284.tar.gz |
fetch the inintial value of attributes.event_mask from
Thu Mar 12 08:55:34 1998 Tim Janik <timj@gimp.org>
* gtkitem.c:
* gtktree.c:
* gtklist.c: fetch the inintial value of attributes.event_mask from
gtk_widget_get_events (widget) (pointed out by Damon Chaplin
<DAChaplin@email.msn.com>).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index e020e3b49..4c675e8d6 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -1494,8 +1494,10 @@ static void create_handle_box () { static GtkWidget* window = NULL; + GtkWidget *handle_box; GtkWidget *hbox; GtkWidget *toolbar; + GtkWidget *label; if (!window) { @@ -1509,22 +1511,42 @@ create_handle_box () GTK_SIGNAL_FUNC(destroy_window), &window); gtk_container_border_width (GTK_CONTAINER (window), 20); - - hbox = gtk_handle_box_new (); + + hbox = gtk_hbox_new (FALSE, 10); gtk_container_add (GTK_CONTAINER (window), hbox); - gtk_signal_connect (GTK_OBJECT (hbox), + gtk_widget_show (hbox); + + handle_box = gtk_handle_box_new (); + gtk_container_add (GTK_CONTAINER (hbox), handle_box); + gtk_signal_connect (GTK_OBJECT (handle_box), "child_attached", GTK_SIGNAL_FUNC (handle_box_child_signal), "attached"); - gtk_signal_connect (GTK_OBJECT (hbox), + gtk_signal_connect (GTK_OBJECT (handle_box), "child_detached", GTK_SIGNAL_FUNC (handle_box_child_signal), "detached"); - gtk_widget_show (hbox); + gtk_widget_show (handle_box); toolbar = make_toolbar (window); - gtk_container_add (GTK_CONTAINER (hbox), toolbar); + gtk_container_add (GTK_CONTAINER (handle_box), toolbar); gtk_widget_show (toolbar); + + handle_box = gtk_handle_box_new (); + gtk_container_add (GTK_CONTAINER (hbox), handle_box); + gtk_signal_connect (GTK_OBJECT (handle_box), + "child_attached", + GTK_SIGNAL_FUNC (handle_box_child_signal), + "attached"); + gtk_signal_connect (GTK_OBJECT (handle_box), + "child_detached", + GTK_SIGNAL_FUNC (handle_box_child_signal), + "detached"); + gtk_widget_show (handle_box); + + label = gtk_label_new ("Fooo!"); + gtk_container_add (GTK_CONTAINER (handle_box), label); + gtk_widget_show (label); } if (!GTK_WIDGET_VISIBLE (window)) |