summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-annotations.c
diff options
context:
space:
mode:
authorGiselle Machado <[email protected]>2014-06-22 18:39:58 +0200
committerraveit65 <[email protected]>2017-08-28 16:04:01 +0200
commit4fc9b355075c0298b0306f43e5b73d136dcdf939 (patch)
tree2a15ae1a3e3519cae56d320a490618855a71b304 /shell/ev-sidebar-annotations.c
parentd16ebefe945ddca508e2e7c7e360f671078cf5d3 (diff)
downloadatril-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-sidebar-annotations.c')
-rw-r--r--shell/ev-sidebar-annotations.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index 6cb98fef..ee605005 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -303,6 +303,12 @@ ev_sidebar_annotations_annot_added (EvSidebarAnnotations *sidebar_annots,
ev_sidebar_annotations_load (sidebar_annots);
}
+void
+ev_sidebar_annotations_annot_removed (EvSidebarAnnotations *sidebar_annots)
+{
+ ev_sidebar_annotations_load (sidebar_annots);
+}
+
static void
selection_changed_cb (GtkTreeSelection *selection,
EvSidebarAnnotations *sidebar_annots)