[evince/gnome-3-12] 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/gnome-3-12] libview: Update the caret cursor when jumping to a find result
- Date: Mon, 28 Apr 2014 12:59:27 +0000 (UTC)
commit 4d760b20522889e7544c782b1cdb6147b9bf8b45
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 87e9deb..4638bbe 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7637,6 +7637,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]