Editable cells in a treeview



I've got a TreeView which has four columns, one of which is editable.

There are two things I am trying to do to make editing easier for the user, but I can't see how to achieve either:
1) Starting editing with a single click on the editable cell.  That is, 
if a user clicks on the editable cell, even if the row is not selected, 
editing will start.  The default behaviour is that the row must be 
selected (one click) and then another click to start editing.
2) If the user completes editing by pressing return, the next row is 
selected and editing is started on the new row.  The default behaviour 
is to just finish editing, and leave the same row selected
I've looked at the gtk source code for the 
gtk_tree_view_set_cursor_on_cell() thinking it has similar behaviour to 
what I want, and it uses two functions gtk_tree_view_column_focus_cell 
and gtk_tree_view_start_editing Which are static and therefore not available
Any help is much appreciated,

Will.




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