diff options
author | Carlos Garcia Campos <[email protected]> | 2013-06-08 11:48:15 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-09-06 18:25:34 +0200 |
commit | cd36f3b5e3cd9ee377d3431b51fa3814043f52ef (patch) | |
tree | 49f86a5dff5488fde0c4afeb885a05ba85cbc952 /libview/ev-view.h | |
parent | 12495d0accc29caba391cdeb2b5a5a9f13857217 (diff) | |
download | atril-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.h')
-rw-r--r-- | libview/ev-view.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libview/ev-view.h b/libview/ev-view.h index d46cfcef..fdce44c7 100644 --- a/libview/ev-view.h +++ b/libview/ev-view.h @@ -117,6 +117,11 @@ void ev_view_remove_annotation (EvView *view, /*For epub*/ void ev_view_disconnect_handlers (EvView *view); + +/* Caret navigation */ +gboolean ev_view_is_caret_navigation_enabled (EvView *view); +void ev_view_set_caret_navigation_enabled (EvView *view, + gboolean enabled); G_END_DECLS #endif /* __EV_VIEW_H__ */ |