From 02f9598aadefffcd9e0370ecc2665d3f626e4afc Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 24 Nov 2020 22:42:18 +0100 Subject: Add a new menu item type: IDO Removable --- example/menus.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'example') diff --git a/example/menus.c b/example/menus.c index 1355804..ccfab69 100644 --- a/example/menus.c +++ b/example/menus.c @@ -6,6 +6,7 @@ #include "idolocationmenuitem.h" #include "idoswitchmenuitem.h" #include "idousermenuitem.h" +#include "idoremovablemenuitem.h" #include "config.h" static void @@ -142,7 +143,13 @@ main (int argc, char *argv[]) gtk_menu_shell_append (GTK_MENU_SHELL (menu), w); } + gtk_menu_shell_append (GTK_MENU_SHELL (menu), gtk_separator_menu_item_new ()); + /* Removable */ + menuitem = ido_removable_menu_item_new(); + idoRemovableMenuItemSetText(IDO_REMOVABLE_MENU_ITEM(menuitem), "This is a removable menu item\nIt has a link\nAnd some small text"); + idoRemovableMenuItemUseMarkup(IDO_REMOVABLE_MENU_ITEM(menuitem), TRUE); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); /* Add the menubar */ gtk_menu_shell_append (GTK_MENU_SHELL (menubar), root); -- cgit v1.2.3