How can I set the horizontal size of a specific column on a GtkTreeView? I have 4 columns on my tree weave and spread to the rest of the last time. How to set the first or the second column to be extended to the empty space to set a fixed width on all columns?
You can use gtk_tree_view_get_column
to get the inhal column of the previewview And then you can use GTK_TREE_VIEW_COLUMN_FIXED
on gtk_tree_view_column_set_sizing
.
You can also tell to extend the column through gtk_tree_view_column_set_expand
. To quote:
Sets the column to take additional space available. This place is shared equally in all columns, whose extensions have been set to true. If a column does not set this option, then the last column will get all the additional spaces. By default, each column is created with this FALSE.
Comments
Post a Comment