[evince] libview: Update the caret cursor when jumping to a find result
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Update the caret cursor when jumping to a find result
- Date: Mon, 28 Apr 2014 12:59:32 +0000 (UTC)
commit fc031f76436140e11b419f53133f9ec0749b881f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Apr 25 20:48:06 2014 -0400
libview: Update the caret cursor when jumping to a find result
https://bugzilla.gnome.org/show_bug.cgi?id=728996
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 b56d936..933cf4b 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7640,6 +7640,9 @@ jump_to_find_result (EvView *view)
rect = ev_view_find_get_result (view, page, view->find_result);
_ev_view_transform_doc_rect_to_view_rect (view, page, rect, &view_rect);
ensure_rectangle_is_visible (view, &view_rect);
+ if (view->caret_enabled && view->rotation == 0)
+ position_caret_cursor_at_doc_point (view, page, rect->x1, rect->y1);
+
view->jump_to_find_result = FALSE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]