Re: Touch support in Abiword
Carlos Garnacho <[email protected]>
| Newsgroups | gmane.editors.abiword.devel |
|---|---|
| Message-ID | <1342527943.22290.17.camel@sacarino> |
Hello :), On lun, 2012-07-16 at 12:54 -0300, Gonzalo Odiard wrote: > Hi, > In the Sugar environment, we are doing work to support touch in our > user interfaces. > Thanks to Abiword port to gtk3, should be possible use touch to do > text selection in our Write activity too. > The proposed behaviour was detailed by Gary Martin here > http://wiki.sugarlabs.org/go/Design_Team/Sugar_Shell_Touch_Input#Text_editing > and is being implemented by Carlos Garnacho in gtk > http://git.gnome.org/browse/gtk+/log/?h=touch-text-selection > I have read, Abiword was used in other mobile envs in the past, > maybe there are code useful already present in the code, > and I don't know how much code from gtk can be used in the Abiword canvas. > How do you think should be the best way to implement touch text > selection in Abiword? From what I gathered, there are two things that might need to be reimplemented on Abiword so it's on par with GTK+ widgets wrt touch friendliness, * touch/kinetic scrolling: This is implemented in GtkScrolledWindow through 3.0's GtkWidget::captured-event, as Abiword doesn't use this widget for scrolling support, this piece of code has to be reimplemented * text selection, in that branch, there's a private GtkTextHandle helper object that text widgets use to manipulate the selection, if it remains private API, Abiword could need its own copy of it. Carlos