Setting treeview column width
- From: Binary Chen <binary chen gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Setting treeview column width
- Date: Thu, 30 Aug 2007 13:22:31 +0800
Hi,
With following code, I still can't make a fixed sized treeview column,
the column's width is large even after I have set its size, whats wrong
with it? Any other thing affect it?
column = gtk_tree_view_column_new();
gtk_tree_view_column_set_title(column, _("Name"));
gtk_tree_view_column_set_fixed_width(column, 3);
gtk_tree_view_column_set_sizing(column,
GTK_TREE_VIEW_COLUMN_FIXED);
gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column,
-1);
gtk_tree_view_column_set_resizable(column, FALSE);
Thanks in advance.
Bin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]