[evince/BUG_sidebar_annotations_right_click: 3/3] sidebar annotations: go to annotation on right click



commit bfd27155554bbba84cfa39ec5aaf8a068d8a19be
Author: Nelson Benítez León <nbenitezl gmail com>
Date:   Fri Nov 15 15:35:18 2019 +0000

    sidebar annotations: go to annotation on right click
    
    Go to annotation on context menu click.

 shell/ev-sidebar-annotations.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index 4451e2c5..55e4048e 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -308,6 +308,8 @@ sidebar_tree_button_press_cb (GtkTreeView    *view,
        if (gdk_event_triggers_context_menu ((const GdkEvent *) event) &&
            iter_has_mapping (model, &iter, &annot_mapping)) {
 
+               ev_sidebar_annotations_activate_result_at_iter (sidebar_annots, model, &iter);
+
                if (!EV_IS_ANNOTATION (annot_mapping->data))
                        return GDK_EVENT_PROPAGATE;
 


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