[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Setting treeview column width



On Thu, Aug 30, 2007 at 01:22:31PM +0800, Binary Chen wrote:
> 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);

If the column is the last in the treeview, it will fill all
the remaning width even if it's fixed-size -- unless there
are some expanding columns present.

Yeti

--
http://gwyddion.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]