diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-06-27 23:44:53 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-06-27 23:44:53 +0000 |
commit | 8eaa071617f29f267bb0ffb05976fa5885dbf595 (patch) | |
tree | d8b495aa301d76f90b55a04ed68aa3197b4a1cc9 /tests | |
parent | f10e18bfd6b404fdad125cbc3bbfc894c16073aa (diff) | |
download | gtk+-8eaa071617f29f267bb0ffb05976fa5885dbf595.tar.gz |
New function to reflect that you can (hypothetically) pack cell renderers
Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviewcolumn.c
(gtk_tree_view_column_pack_start_cell_renderer): New function to
reflect that you can (hypothetically) pack cell renderers into a
column.
(gtk_tree_view_column_pack_end_cell_renderer): ditto.
(gtk_tree_view_column_cell_is_visible): Move more functionality to
the column.
(gtk_tree_view_column_cell_can_focus): Move more functionality to
the column.
* gtk/gtktreeview.c: Move to use new column-packing code.
(gtk_tree_view_real_expand_row): remove totally braindead code.
(gtk_tree_view_real_collapse_row): ditto.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testtreecolumns.c | 6 | ||||
-rw-r--r-- | tests/treestoretest.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index 784aedc791..57016124c5 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -608,7 +608,7 @@ main (int argc, char *argv[]) column = gtk_tree_view_column_new_with_attributes ("Visible", cell, NULL); gtk_tree_view_append_column (GTK_TREE_VIEW (left_tree_view), column); g_object_unref (G_OBJECT (column)); - gtk_tree_view_column_set_cell_data_func (column, get_visible, NULL, NULL); + gtk_tree_view_column_set_cell_data_func (column, cell, get_visible, NULL, NULL); gtk_box_pack_start (GTK_BOX (hbox), swindow, TRUE, TRUE, 0); /* Middle Pane */ @@ -667,7 +667,7 @@ main (int argc, char *argv[]) cell = gtk_cell_renderer_toggle_new (); g_signal_connect_data (G_OBJECT (cell), "toggled", (GCallback) set_visible, top_right_tree_view, NULL, FALSE, FALSE); column = gtk_tree_view_column_new_with_attributes (NULL, cell, NULL); - gtk_tree_view_column_set_cell_data_func (column, get_visible, NULL, NULL); + gtk_tree_view_column_set_cell_data_func (column, cell, get_visible, NULL, NULL); gtk_tree_view_append_column (GTK_TREE_VIEW (top_right_tree_view), column); gtk_container_add (GTK_CONTAINER (swindow), top_right_tree_view); @@ -682,7 +682,7 @@ main (int argc, char *argv[]) cell = gtk_cell_renderer_toggle_new (); g_signal_connect_data (G_OBJECT (cell), "toggled", (GCallback) set_visible, bottom_right_tree_view, NULL, FALSE, FALSE); column = gtk_tree_view_column_new_with_attributes (NULL, cell, NULL); - gtk_tree_view_column_set_cell_data_func (column, get_visible, NULL, NULL); + gtk_tree_view_column_set_cell_data_func (column, cell, get_visible, NULL, NULL); gtk_tree_view_append_column (GTK_TREE_VIEW (bottom_right_tree_view), column); gtk_container_add (GTK_CONTAINER (swindow), bottom_right_tree_view); gtk_box_pack_start (GTK_BOX (vbox2), swindow, TRUE, TRUE, 0); diff --git a/tests/treestoretest.c b/tests/treestoretest.c index 6dc712da25..cf4c7e85e1 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -260,7 +260,7 @@ make_window (gint view_type) break; } - gtk_tree_view_set_rules_hint (tree_view, TRUE); + gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE); selection = G_OBJECT (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view))); gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection), GTK_TREE_SELECTION_SINGLE); |