RE: Touch support in Abiword

From: Martin Edmund Sevior <martines_at_unimelb.edu.au>
Date: Tue Jul 24 2012 - 13:46:26 CEST

Hi Carlos, > > * 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. > > I seriously doubt this can be of any help for Abiword. The models are > too much different. The helper object I'm referring to [1] doesn't interact at all with the text model itself, it's in fact used by GtkEntry and GtkTextView in that branch, which don't share a lot internally :). The object just takes care of the handle(s) being displayed and signals the text widget about those being dragged, the text widget is in turn responsible of relocating them wherever it makes sense anytime. Cheers, Carlos [1] http://git.gnome.org/browse/gtk+/tree/gtk/gtktexthandleprivate.h?h=touch-text-selection ----------------------------------------------------------------------------------- OK this should work quite well with abiword. The code would interact wih src/text/fmt/xp/Fv_View.(h,cpp). With can put the gtk specific code with in src/text/fmt/gtk where we already have code for gtk drang and drop. We will need to add code to change the start and end points of text selection but that should be straight forward. This will be fun :-) Cheers Martin
Received on Tue Jul 24 13:46:41 2012

This archive was generated by hypermail 2.1.8 : Tue Jul 24 2012 - 13:46:41 CEST