>I have a treestore and corresponding model and treeview. I would like
>to disable a particular entry in the treeview. How can I do this?
If you have access to source codes you may look at gtkcellrenderertext.c
file for function: gtk_cell_renderer_text_render().
There you should see that "state = GTK_STATE_INSENSITIVE" is what you
are looking for.
I guess, the simplest way is to code your CellRenderer derived from
GtkCellRendererText, and reimplement function render, so, it should look
at some CellRenderer::property and decide what state should be set for
Actually, you only need to reset "render" function for
GtkCellRedndererClass this way:
On Tue, May 31, 2005 at 12:21:31PM +0530, Pramod Patangay wrote:
> I have a treestore and corresponding model and treeview. I would like
> to disable a particular entry in the treeview. How can I do this?
I'm going through the tree view tutorial now, so I probably
don't know what I'm talking about :)
Anyways, if by "disable" you mean not allow to be selected, then
you can write your own selection function and set it with
gtk_tree_selection_set_select_function. See section 6.1.3 of the