Re: Setting a Tree View Cell to insensitive and uneditable



When creating your model set a specific column with a boolean property.
e.g :
enum
{
STRING_COLUMN =0,
EDITABLE_COLUMN,
N_COLUMN
}
...
 gtk_list_store_new(N_COLUMN, G_TYPE_STRING, G_TYPE_BOOLEAN);

Then in the treeview create a column using
gtk_tree_view_column_new_with_attributes("title", text_cell,"string",
STRING_COLUMN, "editable", EDITABLE_COLUMN, NULL);

and when fillling your model precise which row is editable.
Hope this help,
regards



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