aboutsummaryrefslogtreecommitdiff
path: root/example/menus.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-11-30 22:34:34 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-11-30 22:34:34 +0100
commitfbf7f2e51f5ff8bb7e42ef39ff5437d8200f264e (patch)
treeafdc7f90793a57c53c3e9761656adf9b4e14af71 /example/menus.c
parentd3bcb7d232dae74fbcf2506bdb4f1cd9edf62240 (diff)
parent02f9598aadefffcd9e0370ecc2665d3f626e4afc (diff)
downloadayatana-ido-fbf7f2e51f5ff8bb7e42ef39ff5437d8200f264e.tar.gz
ayatana-ido-fbf7f2e51f5ff8bb7e42ef39ff5437d8200f264e.tar.bz2
ayatana-ido-fbf7f2e51f5ff8bb7e42ef39ff5437d8200f264e.zip
Merge branch 'tari01-pr/ido-removable'
Attributes GH PR #19: https://github.com/AyatanaIndicators/ayatana-ido/pull/19
Diffstat (limited to 'example/menus.c')
-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);