diff options
author | Giselle Machado <[email protected]> | 2014-06-22 18:39:58 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-28 16:04:01 +0200 |
commit | 4fc9b355075c0298b0306f43e5b73d136dcdf939 (patch) | |
tree | 2a15ae1a3e3519cae56d320a490618855a71b304 /shell/ev-window.c | |
parent | d16ebefe945ddca508e2e7c7e360f671078cf5d3 (diff) | |
download | atril-4fc9b355075c0298b0306f43e5b73d136dcdf939.tar.bz2 atril-4fc9b355075c0298b0306f43e5b73d136dcdf939.tar.xz |
Refreshing annotations' sidebar upon deletion
When an annotation is deleted, the sidebar needs to
be refreshed so that the annotation is removed from
the list
See item 3 in this comment:
https://bugzilla.gnome.org/show_bug.cgi?id=649044#c33
origin commit:
https://git.gnome.org/browse/evince/commit/?id=13defb2
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 13870211..ecdc86bf 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -6442,6 +6442,14 @@ view_annot_added (EvView *view, } static void +view_annot_removed (EvView *view, + EvAnnotation *annot, + EvWindow *window) +{ + ev_sidebar_annotations_annot_removed (EV_SIDEBAR_ANNOTATIONS (window->priv->sidebar_annots)); +} + +static void sidebar_annots_annot_add_cancelled (EvSidebarAnnotations *sidebar_annots, EvWindow *window) { @@ -7870,6 +7878,9 @@ ev_window_init (EvWindow *ev_window) g_signal_connect_object (ev_window->priv->view, "annot-added", G_CALLBACK (view_annot_added), ev_window, 0); + g_signal_connect_object (ev_window->priv->view, "annot-removed", + G_CALLBACK (view_annot_removed), + ev_window, 0); g_signal_connect_object (ev_window->priv->view, "layers-changed", G_CALLBACK (view_layers_changed_cb), ev_window, 0); |