diff options
author | Alejandro PiƱeiro <[email protected]> | 2014-02-25 12:07:21 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-11-27 10:13:51 +0100 |
commit | b77806ce4d47b41edba14324f567540798c501e6 (patch) | |
tree | 48145f2d7b352bd7cb04c83767a07141ac5ae2e6 | |
parent | 94bbe7253d986f5eb337082e2aeeadfa442778a8 (diff) | |
download | atril-b77806ce4d47b41edba14324f567540798c501e6.tar.bz2 atril-b77806ce4d47b41edba14324f567540798c501e6.tar.xz |
view: set_caret_cursor_position should emit "cursor-moved" if applies
https://bugzilla.gnome.org/show_bug.cgi?id=701746
from:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=9809525
-rw-r--r-- | libview/ev-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index e9f5e745..ab704fdc 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -3510,6 +3510,9 @@ ev_view_set_caret_cursor_position (EvView *view, view->cursor_page = page; view->cursor_offset = offset; + g_signal_emit (view, signals[SIGNAL_CURSOR_MOVED], 0, + view->cursor_page, view->cursor_offset); + if (view->caret_enabled && cursor_is_in_visible_page (view)) gtk_widget_queue_draw (GTK_WIDGET (view)); } |