[evince] libview: Make sure the cursor blinks after moving it by a click



commit 1435ace8bd44a953b59192b40d0d10ec69edb075
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Fri Jun 21 12:06:34 2013 +0200

    libview: Make sure the cursor blinks after moving it by a click
    
    The cursor blink is reset when the cursor is moved with the keyboard,
    but not when positioned with the mouse.

 libview/ev-view.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index d5121eb..d171794 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4144,6 +4144,10 @@ ev_view_button_press_event (GtkWidget      *widget,
                                    (view->cursor_offset != offset || view->cursor_page != page)) {
                                        view->cursor_offset = offset;
                                        view->cursor_page = page;
+
+                                       view->cursor_blink_time = 0;
+                                       ev_view_pend_cursor_blink (view);
+
                                        gtk_widget_queue_draw (widget);
                                }
                        }


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