[evince] shell: Reload annotation sidebar on annotation properties changes



commit 72a4762d85463ca93141496217142ec9713a51a4
Author: Mads Chr. Olesen <mads mchro dk>
Date:   Sat Feb 13 22:26:27 2021 +0100

    shell: Reload annotation sidebar on annotation properties changes
    
    When, for example, the author changes in an annotation, this
    change is not reflected in the sidebar before saving.
    
    Fixes #1004

 shell/ev-window.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index d5115468..36ae3a2c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7101,6 +7101,8 @@ ev_window_popup_cmd_annot_properties (GSimpleAction *action,
 
                /* FIXME: update annot region only */
                ev_view_reload (EV_VIEW (priv->view));
+
+               ev_sidebar_annotations_annot_changed (EV_SIDEBAR_ANNOTATIONS (priv->sidebar_annots), annot);
        }
 
        gtk_widget_destroy (GTK_WIDGET (dialog));


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