[evince] view: Fix "can-have-popup" prop when creating markup annotations



commit 6fd2a7672d28a74a365a852aeaf5ee11c2d96097
Author: Casey Jao <casey jao gmail com>
Date:   Mon Apr 20 08:51:55 2020 -0400

    view: Fix "can-have-popup" prop when creating markup annotations
    
    Highlight annotations created directly from a selection do not
    display a popup when clicked. This happens because
    ev_view_create_annotation_real neither creates a window for the
    newly created annotation, nor sets the "can-have-popup" property
    for the annotation. Consequently, when the annotation is clicked,
    ev_view_handle_annotation never creates a window for the annotation.
    
    Fixes #1373

 libview/ev-view.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 1ebcb584..7db7e8bb 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3478,6 +3478,7 @@ ev_view_create_annotation_real (EvView *view,
                popup_rect.y2 = popup_rect.y1 + ANNOT_POPUP_WINDOW_DEFAULT_HEIGHT;
                g_object_set (annot,
                              "rectangle", &popup_rect,
+                             "can-have-popup", TRUE,
                              "has_popup", TRUE,
                              "popup_is_open", FALSE,
                              "label", g_get_real_name (),


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