[evince] view: set_caret_cursor_position should emit "cursor-moved" if applies



commit 9809525eaf6748dd235ee6bbb0c1e865479f4b2a
Author: Alejandro Piñeiro <apinheiro igalia com>
Date:   Tue Feb 25 12:07:21 2014 +0100

    view: set_caret_cursor_position should emit "cursor-moved" if applies
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701746

 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 9f62738..fbe8d65 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3528,6 +3528,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));
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]