summaryrefslogtreecommitdiff
path: root/libview/ev-view-private.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-06-08 11:48:15 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commitcd36f3b5e3cd9ee377d3431b51fa3814043f52ef (patch)
tree49f86a5dff5488fde0c4afeb885a05ba85cbc952 /libview/ev-view-private.h
parent12495d0accc29caba391cdeb2b5a5a9f13857217 (diff)
downloadatril-cd36f3b5e3cd9ee377d3431b51fa3814043f52ef.tar.bz2
atril-cd36f3b5e3cd9ee377d3431b51fa3814043f52ef.tar.xz
libview: Initial implementation of caret navigation
Navigation by character, word, next/previous line and beginning/end of the line using the caret cursor. The routines to move the cursor don't use GtkTextBuffer to avoid the duplication of the text for every page. - Left/right arrow: Move one character to the left/right. - Up/down arrow: Move up/down one line. - Ctrl + left/right arrow: Move to the beginning/end of the previous/next word. - Home/End: Move to the beginning/end of the current line. https://bugzilla.gnome.org/show_bug.cgi?id=638905 taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1dc10fe
Diffstat (limited to 'libview/ev-view-private.h')
-rw-r--r--libview/ev-view-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h
index c93b0f90..c5180397 100644
--- a/libview/ev-view-private.h
+++ b/libview/ev-view-private.h
@@ -214,6 +214,10 @@ struct _EvView {
/* Accessibility */
AtkObject *accessible;
+ /* Caret navigation */
+ gboolean caret_enabled;
+ gint cursor_offset;
+
/* Gestures */
GtkGesture *pan_gesture;
GtkGesture *zoom_gesture;