Re: CellRendererText: editable cells, some thoughts...



Thomas Broyer <tbroyer ltgt net> writes:

> 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?

This seems pretty sane, though the devil is in the details.  It wont be
going into GTK 2.0 unless a well formed patch appareled tomorrow evening
(and even then, it's not all that likely...)

-Jonathan




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