CellRendererText: editable cells, some thoughts...



Hi,

Here is a suggestion on how editable cells might be done.

When the cell is clicked [¹/²], show a GtkEntry at the celllocation with
text being the cell content.
<ArrUp> and <ArrDown> have no effect when editing (can this be achieved
using an orphan Entry?)
<ESC> ends edition without saving changes.
Edition ends as soon as the user press <ENTER> or the Entry loses focus,
changes are saved, hide the Entry.

[¹] do the cell have to be selected already? This may be configurable...
[²] I don't know how keynav will be handled... if the user can move among
cells in a row, pressing <ENTER> would begin edition.

What do you think about this?

Tom.




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