diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-06-24 02:34:25 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-06-24 02:34:25 +0000 |
commit | 49b6a15237aad7359f417724288acc8d285e9d71 (patch) | |
tree | a0cc26abb75a9d4acfd14d4ea0f490d611dc8e7a /src/idomenuitemfactory.c | |
parent | 8f8d487e5a29c1d483e9edd2067e17e4b8c0e205 (diff) | |
parent | db32e752ebd0a368e30d65ffd9c2f360a473fecc (diff) | |
download | ayatana-ido-49b6a15237aad7359f417724288acc8d285e9d71.tar.gz ayatana-ido-49b6a15237aad7359f417724288acc8d285e9d71.tar.bz2 ayatana-ido-49b6a15237aad7359f417724288acc8d285e9d71.zip |
Adds support for the guest menuitem.
A guest menuitem is the same as a user menuitem except for how it uses its action's state, so instead of adding a new class, this patch adds a new factory method (ido_guest_menu_item_new_from_model) and private action state handler.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'src/idomenuitemfactory.c')
-rw-r--r-- | src/idomenuitemfactory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/idomenuitemfactory.c b/src/idomenuitemfactory.c index 650c95f..5ded309 100644 --- a/src/idomenuitemfactory.c +++ b/src/idomenuitemfactory.c @@ -54,6 +54,9 @@ ido_menu_item_factory_create_menu_item (UbuntuMenuItemFactory *factory, if (g_str_equal (type, "indicator.user-menu-item")) item = ido_user_menu_item_new_from_model (menuitem, actions); + if (g_str_equal (type, "indicator.guest-menu-item")) + item = ido_guest_menu_item_new_from_model (menuitem, actions); + else if (g_str_equal (type, "com.canonical.indicator.calendar")) item = ido_calendar_menu_item_new_from_model (menuitem, actions); |