From 40e61ed825920e0f0127d0ab9b168f8c809fc641 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 3 Jul 2013 19:00:28 +0200 Subject: libview: Do not show the caret cursor when there are active selections https://bugzilla.gnome.org/show_bug.cgi?id=702761 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=604cd6d --- libview/ev-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libview/ev-view.c b/libview/ev-view.c index 4122d391..f1d9f5f0 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -3957,7 +3957,8 @@ should_draw_caret_cursor (EvView *view, return (view->caret_enabled && view->cursor_page == page && view->cursor_visible && - gtk_widget_has_focus (GTK_WIDGET (view))); + gtk_widget_has_focus (GTK_WIDGET (view)) && + !ev_pixbuf_cache_get_selection_region (view->pixbuf_cache, page, view->scale)); } static void -- cgit v1.2.1