aboutsummaryrefslogtreecommitdiff
path: root/src/idomenuitemfactory.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-08-13 16:05:52 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-08-13 16:05:52 +0200
commit8b1bba629a99cb8d4afd4d114db66f637acf222c (patch)
tree04374d0d87bfd4b8968bd61bbc9840f360a40836 /src/idomenuitemfactory.c
parent242477ce5bab4fe8634191a7d9163920eb8f4156 (diff)
downloadayatana-ido-8b1bba629a99cb8d4afd4d114db66f637acf222c.tar.gz
ayatana-ido-8b1bba629a99cb8d4afd4d114db66f637acf222c.tar.bz2
ayatana-ido-8b1bba629a99cb8d4afd4d114db66f637acf222c.zip
Add IdoApplicationMenuItem
A menu item representing an application. It can show whether the application is running or not (based on action state).
Diffstat (limited to 'src/idomenuitemfactory.c')
-rw-r--r--src/idomenuitemfactory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idomenuitemfactory.c b/src/idomenuitemfactory.c
index 0b38941..8802a7d 100644
--- a/src/idomenuitemfactory.c
+++ b/src/idomenuitemfactory.c
@@ -29,6 +29,7 @@
#include "idousermenuitem.h"
#include "idomediaplayermenuitem.h"
#include "idoplaybackmenuitem.h"
+#include "idoapplicationmenuitem.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))
@@ -83,6 +84,9 @@ ido_menu_item_factory_create_menu_item (UbuntuMenuItemFactory *factory,
else if (g_str_equal (type, "com.canonical.unity.playback-item"))
item = ido_playback_menu_item_new_from_model (menuitem, actions);
+ else if (g_str_equal (type, "com.canonical.application"))
+ item = ido_application_menu_item_new_from_model (menuitem, actions);
+
return item;
}