aboutsummaryrefslogtreecommitdiff
path: root/libmessaging-menu
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-08-23 12:20:21 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-08-23 12:20:21 +0200
commitd519ebfb52d69765f4e1ec0aa3f115f2c04c9bb4 (patch)
treedb13667ed757a3c2ad17ae66186f568fa92d8860 /libmessaging-menu
parentdd134484da92096b4116cdfb88c36756bf234722 (diff)
downloadayatana-indicator-messages-d519ebfb52d69765f4e1ec0aa3f115f2c04c9bb4.tar.gz
ayatana-indicator-messages-d519ebfb52d69765f4e1ec0aa3f115f2c04c9bb4.tar.bz2
ayatana-indicator-messages-d519ebfb52d69765f4e1ec0aa3f115f2c04c9bb4.zip
libmessaging-menu: remove sources when they are activated
Applications shouldn't leave message sources that the user clicked on in the messaging menu. This patch spares apps from having to call remove_source in all of their handlers.
Diffstat (limited to 'libmessaging-menu')
-rw-r--r--libmessaging-menu/messaging-menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmessaging-menu/messaging-menu.c b/libmessaging-menu/messaging-menu.c
index 78fff20..daeaeb5 100644
--- a/libmessaging-menu/messaging-menu.c
+++ b/libmessaging-menu/messaging-menu.c
@@ -419,6 +419,8 @@ source_action_activated (GTupleAction *action,
const gchar *name = g_action_get_name (G_ACTION (action));
GQuark q = g_quark_from_string (name);
+ messaging_menu_app_remove_source (app, name);
+
g_signal_emit (app, signals[ACTIVATE_SOURCE], q, name);
}