aboutsummaryrefslogtreecommitdiff
path: root/src/gactionmuxer.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-11-16 14:41:50 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-11-16 14:41:50 +0100
commitb55e637321b0c3fdcb5e8aafab9614f80a3228d3 (patch)
treed0dd0bfeabb87f1ab0b5c2d12b0843003f675ab7 /src/gactionmuxer.c
parenta44f4a7f0d1918809452da175c5b0585ecd6d951 (diff)
downloadayatana-indicator-messages-b55e637321b0c3fdcb5e8aafab9614f80a3228d3.tar.gz
ayatana-indicator-messages-b55e637321b0c3fdcb5e8aafab9614f80a3228d3.tar.bz2
ayatana-indicator-messages-b55e637321b0c3fdcb5e8aafab9614f80a3228d3.zip
Export menu for the phone client
This is a rough first draft: It only fetched the sources and messages from applications once and doesn't listen for further changes. This removes all code for the desktop menu for now.
Diffstat (limited to 'src/gactionmuxer.c')
-rw-r--r--src/gactionmuxer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gactionmuxer.c b/src/gactionmuxer.c
index 2b1d11a..0f3cda4 100644
--- a/src/gactionmuxer.c
+++ b/src/gactionmuxer.c
@@ -483,3 +483,11 @@ g_action_muxer_remove (GActionMuxer *muxer,
g_clear_object (&muxer->global_actions);
}
+GActionGroup *
+g_action_muxer_get_group (GActionMuxer *muxer,
+ const gchar *prefix)
+{
+ g_return_val_if_fail (G_IS_ACTION_MUXER (muxer), NULL);
+
+ return prefix ? g_hash_table_lookup (muxer->groups, prefix) : muxer->global_actions;
+}