diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-03-02 00:49:32 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-03-02 00:49:32 +0000 |
commit | 193bed18960d15ba75d9caccbbce15b2b60625a0 (patch) | |
tree | 793f048090b9cde07b01017fbe86c280ce002580 /tests/treestoretest.c | |
parent | addeb140ec47ae641e9ae9fecb2e2cb3fd9d71da (diff) | |
download | gtk+-193bed18960d15ba75d9caccbbce15b2b60625a0.tar.gz |
Move handling of buttons fully in gtktreeviewcolumn. This code is less
Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
Move handling of buttons fully in gtktreeviewcolumn. This code is
less interrelated then it was, but it still requires the
GtkTreeView to map it.
* test/testtreecolumn.c: Now I can add a column to one view,
remove it, add it to the another view, remove it, then re-add it
to the first. Nifty.
Diffstat (limited to 'tests/treestoretest.c')
-rw-r--r-- | tests/treestoretest.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/treestoretest.c b/tests/treestoretest.c index 1b2222f2b4..688054ba3b 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -273,10 +273,10 @@ make_window (gint view_type) /* buttons */ button = gtk_button_new_with_label ("gtk_tree_store_remove"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); - gtk_signal_connect (GTK_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connect (G_OBJECT (selection), + "selection_changed", + selection_changed, + button); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_remove, tree_view); gtk_widget_set_sensitive (button, FALSE); @@ -293,19 +293,19 @@ make_window (gint view_type) button = gtk_button_new_with_label ("gtk_tree_store_insert_before"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_insert_before, tree_view); - gtk_signal_connect (GTK_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connect (G_OBJECT (selection), + "selection_changed", + selection_changed, + button); gtk_widget_set_sensitive (button, FALSE); button = gtk_button_new_with_label ("gtk_tree_store_insert_after"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_insert_after, tree_view); - gtk_signal_connect (GTK_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connect (GTK_OBJECT (selection), + "selection_changed", + selection_changed, + button); gtk_widget_set_sensitive (button, FALSE); button = gtk_button_new_with_label ("gtk_tree_store_prepend"); |