From b77806ce4d47b41edba14324f567540798c501e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Tue, 25 Feb 2014 12:07:21 +0100 Subject: 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 --- libview/ev-view.c | 3 +++ 1 file changed, 3 insertions(+) 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)); } -- cgit v1.2.1