diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-05-15 12:09:18 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-05-15 12:09:18 -0400 |
commit | 1312f9108e64a9b4f33986b877a90e418bf5cdfb (patch) | |
tree | 58bd65e3245d8269b34d26c4080852860eb2dbed /libmessaging-menu | |
parent | 2d1c21b7e6a90a5a23b7011080e41b64d03be2f4 (diff) | |
download | ayatana-indicator-messages-1312f9108e64a9b4f33986b877a90e418bf5cdfb.tar.gz ayatana-indicator-messages-1312f9108e64a9b4f33986b877a90e418bf5cdfb.tar.bz2 ayatana-indicator-messages-1312f9108e64a9b4f33986b877a90e418bf5cdfb.zip |
libmessaging-menu: don't use detailed action names
Detailed action names are of the form action::target or action(target), so they
can't have colons or parens in them. This restriction does not apply to
messaging menu ids.
Diffstat (limited to 'libmessaging-menu')
-rw-r--r-- | libmessaging-menu/messaging-menu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmessaging-menu/messaging-menu.c b/libmessaging-menu/messaging-menu.c index 1fa1033..acf3d90 100644 --- a/libmessaging-menu/messaging-menu.c +++ b/libmessaging-menu/messaging-menu.c @@ -644,7 +644,8 @@ messaging_menu_app_insert_source_action (MessagingMenuApp *app, g_simple_action_group_insert (app->source_actions, G_ACTION (action)); g_object_unref (action); - menuitem = g_menu_item_new (label, id); + menuitem = g_menu_item_new (label, NULL); + g_menu_item_set_action_and_target_value (menuitem, id, NULL); g_menu_item_set_attribute (menuitem, "x-canonical-type", "s", "ImSourceMenuItem"); if (icon) { |