aboutsummaryrefslogtreecommitdiff
path: root/src/idomenuitemfactory.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-05-31 18:51:10 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-05-31 18:51:10 -0400
commit26d057cbae600da0a1e5601187e899707c1b1738 (patch)
treeb413d8404c0bbcdfd7502e7d870e27ff5f511728 /src/idomenuitemfactory.c
parent03dc54fbc259422813dc790c1d7f39757cb9b7ec (diff)
downloadayatana-ido-26d057cbae600da0a1e5601187e899707c1b1738.tar.gz
ayatana-ido-26d057cbae600da0a1e5601187e899707c1b1738.tar.bz2
ayatana-ido-26d057cbae600da0a1e5601187e899707c1b1738.zip
Add support for creating scale menu items from a menu model
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 59f3630..0ff84a8 100644
--- a/src/idomenuitemfactory.c
+++ b/src/idomenuitemfactory.c
@@ -21,6 +21,7 @@
#include <gtk/ubuntu-private.h>
#include "idousermenuitem.h"
+#include "idoscalemenuitem.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))
@@ -48,6 +49,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);
+ else if (g_str_equal (type, "com.canonical.unity.slider"))
+ item = ido_scale_menu_item_new_from_model (menuitem, actions);
+
return item;
}