aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-notifications.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-notifications.c')
-rw-r--r--src/indicator-notifications.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c
index 5cf9497..0ca4a6a 100644
--- a/src/indicator-notifications.c
+++ b/src/indicator-notifications.c
@@ -463,6 +463,10 @@ update_clear_item_markup(IndicatorNotifications *self)
gtk_label_set_markup(GTK_LABEL(self->priv->clear_item_label), markup);
g_free(markup);
+
+ if (total_length == 0) {
+ gtk_menu_shell_deactivate(GTK_MENU_SHELL(self->priv->menu));
+ }
}
/**