Re: Setting a Tree View Cell to insensitive and uneditable
- From: Nicolas Soubeiran <nicolas soubeiran gmail com>
- To: dhkuhl optonline net
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Setting a Tree View Cell to insensitive and uneditable
- Date: Mon, 19 Apr 2010 19:34:28 +0200
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]