aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/messages-service.c14
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 *