[evince] libview: Ignore right clicks while in annotation add mode.



commit d81f36eab426decd7b661af326ba443d9b8be92b
Author: José Aliste <jaliste src gnome org>
Date:   Wed Sep 30 05:37:50 2015 -0300

    libview: Ignore right clicks while in annotation add mode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755619

 libview/ev-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 11c69c7..dd8278d 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5630,7 +5630,9 @@ ev_view_button_release_event (GtkWidget      *widget,
        if (view->adding_annot_info.adding_annot) {
                gboolean annot_added = TRUE;
 
-               g_assert (view->pressed_button == 1);
+               /* We ignore right-click buttons while in annotation add mode */
+               if (view->pressed_button != 1)
+                       return FALSE;
                g_assert (view->adding_annot_info.annot);
 
                if (EV_IS_ANNOTATION_MARKUP (view->adding_annot_info.annot)) {


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