[evince] libview: Do not show the caret cursor when there are active selections
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Do not show the caret cursor when there are active selections
- Date: Wed, 3 Jul 2013 17:01:46 +0000 (UTC)
commit 604cd6d9de26dcb7ce56551d27de803896df630d
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Wed Jul 3 19:00:28 2013 +0200
libview: Do not show the caret cursor when there are active selections
https://bugzilla.gnome.org/show_bug.cgi?id=702761
libview/ev-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index e488359..40733b2 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3813,7 +3813,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 gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]