aboutsummaryrefslogtreecommitdiff
path: root/src/idomenuitemfactory.c
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-11-24 22:42:18 +0100
committerRobert Tari <robert@tari.in>2020-11-24 22:42:18 +0100
commit02f9598aadefffcd9e0370ecc2665d3f626e4afc (patch)
treeafdc7f90793a57c53c3e9761656adf9b4e14af71 /src/idomenuitemfactory.c
parentd3bcb7d232dae74fbcf2506bdb4f1cd9edf62240 (diff)
downloadayatana-ido-02f9598aadefffcd9e0370ecc2665d3f626e4afc.tar.gz
ayatana-ido-02f9598aadefffcd9e0370ecc2665d3f626e4afc.tar.bz2
ayatana-ido-02f9598aadefffcd9e0370ecc2665d3f626e4afc.zip
Add a new menu item type: IDO Removable
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 a248b42..e259664 100644
--- a/src/idomenuitemfactory.c
+++ b/src/idomenuitemfactory.c
@@ -32,6 +32,7 @@
#include "idosourcemenuitem.h"
#include "idoswitchmenuitem.h"
#include "idoprogressmenuitem.h"
+#include "idoremovablemenuitem.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))
@@ -98,6 +99,9 @@ ido_menu_item_factory_create_menu_item (AyatanaMenuItemFactory *factory,
else if (g_str_equal (type, "org.ayatana.indicator.switch"))
item = ido_switch_menu_item_new_from_menu_model (menuitem, actions);
+ else if (g_str_equal (type, "org.ayatana.indicator.removable"))
+ item = ido_removable_menu_item_new_from_model (menuitem, actions);
+
return item;
}