aboutsummaryrefslogtreecommitdiff
path: root/example
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 /example
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 'example')
-rw-r--r--example/menus.c7
1 files changed, 7 insertions, 0 deletions
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 <b>removable</b> menu item\nIt has a <a href=\"http://www.example.com\">link</a>\n<small>And some small text</small>");
+ 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);