[evince] libview: Notify about caret navigation errors using the error bell.



commit d0f449d3b41a89c31d5cdb418c9b91d21ffd7a62
Author: Antia Puentes <apuentes igalia com>
Date:   Wed Jun 19 17:04:29 2013 +0200

    libview: Notify about caret navigation errors using the error bell.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702650

 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 042ad64..a41e4b1 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5030,6 +5030,9 @@ ev_view_move_cursor (EvView         *view,
                ev_document_model_set_page (view->model, view->cursor_page);
                ensure_rectangle_is_visible (view, &view_rect);
                gtk_widget_queue_draw (GTK_WIDGET (view));
+       } else {
+               /* Notify the user that it was not possible to move the caret cursor */
+               gtk_widget_error_bell (GTK_WIDGET (view));
        }
 
        return TRUE;


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