summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2013-06-19 17:04:29 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commitd4c00dabb6e31a6016150f18e216fbe7660b28e0 (patch)
treeca8b59d98af458b8d59d8e4a823fd0cc70585ae3 /libview
parent52470517f20d0c5c6a6a6071c0b116f6c2201a53 (diff)
downloadatril-d4c00dabb6e31a6016150f18e216fbe7660b28e0.tar.bz2
atril-d4c00dabb6e31a6016150f18e216fbe7660b28e0.tar.xz
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
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c3
1 files changed, 3 insertions, 0 deletions
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;