[evince/esc_cancel_annotation] Fix nitpick.



commit 20a30d209c8be391eb71cca5a29a0cd800f3cd8a
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Wed Feb 23 17:18:44 2022 +0000

    Fix nitpick.

 libview/ev-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index dbd0294b3..11fe37ea8 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3881,7 +3881,7 @@ ev_view_cancel_add_annotation (EvView *view)
        if (!view->adding_annot_info.adding_annot)
                return;
 
-       if (view->adding_annot_info.annot && view->pressed_button == 1) {
+       if (view->adding_annot_info.annot && view->pressed_button == GDK_BUTTON_PRIMARY) {
                annot_page = ev_annotation_get_page_index (view->adding_annot_info.annot);
                ev_document_doc_mutex_lock ();
                ev_document_annotations_remove_annotation (EV_DOCUMENT_ANNOTATIONS (view->document),


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