diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-09-06 15:14:00 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-09-06 15:14:00 +0200 |
commit | 894c9d2e239a4ecc99319fa2517b6d68bdd72774 (patch) | |
tree | 1836037b6dc6a3fdb6307af95b1f2f97e4c2d172 /src | |
parent | d7ad8baeb10ae9ca505156ae715f372a1c18151d (diff) | |
download | ayatana-indicator-messages-894c9d2e239a4ecc99319fa2517b6d68bdd72774.tar.gz ayatana-indicator-messages-894c9d2e239a4ecc99319fa2517b6d68bdd72774.tar.bz2 ayatana-indicator-messages-894c9d2e239a4ecc99319fa2517b6d68bdd72774.zip |
messages-service: update chat section when an app is removed
Diffstat (limited to 'src')
-rw-r--r-- | src/messages-service.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index 7cc037b..bc9ac1b 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -115,9 +115,7 @@ app_section_uses_chat (gpointer key, } static void -uses_chat_status_changed (GObject *object, - GParamSpec *pspec, - gpointer user_data) +update_chat_section () { gboolean show_chat; GMenuModel *first_section; @@ -138,6 +136,14 @@ uses_chat_status_changed (GObject *object, } static void +uses_chat_status_changed (GObject *object, + GParamSpec *pspec, + gpointer user_data) +{ + update_chat_section (); +} + +static void remove_section (AppSection *section, const gchar *id) { @@ -157,6 +163,8 @@ remove_section (AppSection *section, g_menu_model_get_n_items (G_MENU_MODEL (toplevel_menu)) == 1) { g_menu_remove (toplevel_menu, 0); } + + update_chat_section (); } static AppSection * |