summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-07-27 10:47:16 +0200
committerraveit65 <[email protected]>2017-09-06 21:19:51 +0200
commit3a0b8d483a94a64b9f9bdded688b4d870ab7a796 (patch)
tree63988149337da399fa65f56a296a48f1990a9bbc
parent751532c4bea353d48dbbfd5c536cfc47f7f2cbfc (diff)
downloadatril-3a0b8d483a94a64b9f9bdded688b4d870ab7a796.tar.bz2
atril-3a0b8d483a94a64b9f9bdded688b4d870ab7a796.tar.xz
libview: Do not schedule a redraw when enabling/disabling caret navigation
If the cursor is not in a visible page origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=c187766
-rw-r--r--libview/ev-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index bb70a9cc..e66b1f23 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3482,7 +3482,9 @@ ev_view_set_caret_navigation_enabled (EvView *view,
if (view->caret_enabled != enabled) {
view->caret_enabled = enabled;
ev_view_check_cursor_blink (view);
- gtk_widget_queue_draw (GTK_WIDGET (view));
+
+ if (cursor_is_in_visible_page (view))
+ gtk_widget_queue_draw (GTK_WIDGET (view));
}
}