aboutsummaryrefslogtreecommitdiff
path: root/src/idomenuitemfactory.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-22 20:13:38 +0000
committerTarmac <Unknown>2013-10-22 20:13:38 +0000
commit596e38b65bf82aaea478b27fe2a9adf3021ef26c (patch)
tree0d703d8f02328410970d45e5bb8a2901f6dda85d /src/idomenuitemfactory.c
parent6e849d59f8ca112a42e4fda71d14ece905038e41 (diff)
parentbccb3fbe7afc9842c0296d662d083285fdbe9706 (diff)
downloadayatana-ido-596e38b65bf82aaea478b27fe2a9adf3021ef26c.tar.gz
ayatana-ido-596e38b65bf82aaea478b27fe2a9adf3021ef26c.tar.bz2
ayatana-ido-596e38b65bf82aaea478b27fe2a9adf3021ef26c.zip
Make IdoSwitchMenuItem accessible from gtk_menu_new_from_model.
Approved by Charles Kerr, PS Jenkins bot.
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 376134e..11beaa8 100644
--- a/src/idomenuitemfactory.c
+++ b/src/idomenuitemfactory.c
@@ -31,6 +31,7 @@
#include "idoplaybackmenuitem.h"
#include "idoapplicationmenuitem.h"
#include "idosourcemenuitem.h"
+#include "idoswitchmenuitem.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))
@@ -91,6 +92,9 @@ ido_menu_item_factory_create_menu_item (UbuntuMenuItemFactory *factory,
else if (g_str_equal (type, "com.canonical.indicator.messages.source"))
item = ido_source_menu_item_new_from_menu_model (menuitem, actions);
+ else if (g_str_equal (type, "com.canonical.indicator.switch"))
+ item = ido_switch_menu_item_new_from_menu_model (menuitem, actions);
+
return item;
}