[evince] libview: Do not schedule a redraw when enabling/disabling caret navigation



commit c187766db9895c263a5b5a5b805db2e331f9036c
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sat Jul 27 10:47:16 2013 +0200

    libview: Do not schedule a redraw when enabling/disabling caret navigation
    
    If the cursor is not in a visible page

 libview/ev-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index f60a2f4..6a7e9d5 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3364,7 +3364,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));
        }
 }
 


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