diff options
author | Jason Conti <jason.conti@gmail.com> | 2016-08-29 13:21:07 -0400 |
---|---|---|
committer | Jason Conti <jason.conti@gmail.com> | 2016-08-29 13:21:07 -0400 |
commit | 685c29a6cc66575054226aa1f2f08b6f3a2ef89d (patch) | |
tree | b3a2c9c14028889deae7962d1ce2bbe65cd46f85 /src | |
parent | 1f126e4a5c09bdfbdd30b8e867d22db4b3aa7e87 (diff) | |
download | ayatana-indicator-notifications-685c29a6cc66575054226aa1f2f08b6f3a2ef89d.tar.gz ayatana-indicator-notifications-685c29a6cc66575054226aa1f2f08b6f3a2ef89d.tar.bz2 ayatana-indicator-notifications-685c29a6cc66575054226aa1f2f08b6f3a2ef89d.zip |
* When updating the notification count on the clear item, deactivate the menu
shell if that count is zero. This avoids leaving a single clear menuitem on
screen after all the notifications have been dismissed.
* Bump version.
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-notifications.c | 4 |
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)); + } } /** |