[evince] libview: Do not draw the focus rectangle when the view doesn't have the input focus



commit 129e6890b86cbc5cbbfdcca3ad73d56a26f6bbd1
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Fri Oct 11 10:31:12 2013 +0200

    libview: Do not draw the focus rectangle when the view doesn't have the input focus

 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 389b532..4e22dc4 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4016,6 +4016,9 @@ draw_focus (EvView       *view,
        if (view->focused_element_page != page)
                return;
 
+       if (!gtk_widget_has_focus (GTK_WIDGET (view)))
+               return;
+
        if (!ev_view_get_focused_area (view, &rect))
                return;
 


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