diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-13 18:50:26 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-13 18:50:26 +0200 |
commit | be7301a144e10765a5bcc610b38e0a9e7df4d5cc (patch) | |
tree | 0f87d2d226ba4ddaf22f292578d33a302308d596 /src/idomenuitemfactory.c | |
parent | 8b1bba629a99cb8d4afd4d114db66f637acf222c (diff) | |
download | ayatana-ido-be7301a144e10765a5bcc610b38e0a9e7df4d5cc.tar.gz ayatana-ido-be7301a144e10765a5bcc610b38e0a9e7df4d5cc.tar.bz2 ayatana-ido-be7301a144e10765a5bcc610b38e0a9e7df4d5cc.zip |
Add IdoSourceMenuItem
A menu item showing messaging menu sources.
Diffstat (limited to 'src/idomenuitemfactory.c')
-rw-r--r-- | src/idomenuitemfactory.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idomenuitemfactory.c b/src/idomenuitemfactory.c index 8802a7d..376134e 100644 --- a/src/idomenuitemfactory.c +++ b/src/idomenuitemfactory.c @@ -30,6 +30,7 @@ #include "idomediaplayermenuitem.h" #include "idoplaybackmenuitem.h" #include "idoapplicationmenuitem.h" +#include "idosourcemenuitem.h" #define IDO_TYPE_MENU_ITEM_FACTORY (ido_menu_item_factory_get_type ()) #define IDO_MENU_ITEM_FACTORY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), IDO_TYPE_MENU_ITEM_FACTORY, IdoMenuItemFactory)) @@ -87,6 +88,9 @@ ido_menu_item_factory_create_menu_item (UbuntuMenuItemFactory *factory, else if (g_str_equal (type, "com.canonical.application")) item = ido_application_menu_item_new_from_model (menuitem, actions); + else if (g_str_equal (type, "com.canonical.indicator.messages.source")) + item = ido_source_menu_item_new_from_menu_model (menuitem, actions); + return item; } |