From d4c00dabb6e31a6016150f18e216fbe7660b28e0 Mon Sep 17 00:00:00 2001 From: Antia Puentes Date: Wed, 19 Jun 2013 17:04:29 +0200 Subject: libview: Notify about caret navigation errors using the error bell. https://bugzilla.gnome.org/show_bug.cgi?id=702650 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=d0f449d --- libview/ev-view.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libview/ev-view.c') diff --git a/libview/ev-view.c b/libview/ev-view.c index 5767a757..2cccdb6a 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -5262,6 +5262,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; -- cgit v1.2.1