summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c11
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);