summaryrefslogtreecommitdiff
path: root/tests/testtreecolumns.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-11-19 21:18:22 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-11-19 21:18:22 +0000
commit94a097ef5d8aa475fdb38b1cdade87e72d068d8d (patch)
treefbcb5b4a8681899da6986157c073319910615dd9 /tests/testtreecolumns.c
parent650e82680a70721eca9a2f176f6fbd1824a3eb05 (diff)
downloadgtk+-94a097ef5d8aa475fdb38b1cdade87e72d068d8d.tar.gz
Add a "resizable" property, to get rid of the
Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a "resizable" property, to get rid of the GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag. (gtk_tree_view_column_set_resizable): New function to set resizable. (gtk_tree_view_column_set_resizable): getter. * tests/testtreecolumns.c (add_clicked): modify for above change. * Makefile.am (install-data-hook): remove old .pc files before installing the new one. We used to symlink this, and it will break old installs.
Diffstat (limited to 'tests/testtreecolumns.c')
-rw-r--r--tests/testtreecolumns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c
index dda5751049..fb15a9ec74 100644
--- a/tests/testtreecolumns.c
+++ b/tests/testtreecolumns.c
@@ -538,7 +538,8 @@ add_clicked (GtkWidget *button, gpointer data)
column = gtk_tree_view_column_new_with_attributes (label, cell, "text", 0, NULL);
g_object_set_data_full (G_OBJECT (column), column_data, label, g_free);
gtk_tree_view_column_set_reorderable (column, TRUE);
- gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_RESIZABLE);
+ gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_GROW_ONLY);
+ gtk_tree_view_column_set_resizable (column, TRUE);
gtk_list_store_append (GTK_LIST_STORE (left_tree_model), &iter);
gtk_list_store_set (GTK_LIST_STORE (left_tree_model), &iter, 0, label, 1, column, -1);
i++;