aboutsummaryrefslogtreecommitdiff
path: root/example/simple-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-11-24 16:31:55 -0600
committerTed Gould <ted@gould.cx>2009-11-24 16:31:55 -0600
commit7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3 (patch)
tree90be7a2bc4b176009fcc7528881ffe0b4ccee8e3 /example/simple-client.c
parentbfd38064e70101a388ef3c66d0d7c79755be1faf (diff)
parent4b23fc39d2fed996dd651d101dc1fb0a5b76d8f0 (diff)
downloadlibayatana-appindicator-7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3.tar.gz
libayatana-appindicator-7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3.tar.bz2
libayatana-appindicator-7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3.zip
releasing version 0.0.1-0ubuntu3~ppa1~service7
Diffstat (limited to 'example/simple-client.c')
-rw-r--r--example/simple-client.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/example/simple-client.c b/example/simple-client.c
index 1c29647..f1f53e1 100644
--- a/example/simple-client.c
+++ b/example/simple-client.c
@@ -20,7 +20,14 @@ main (int argc, char ** argv)
custom_indicator_set_attention_icon(ci, "indicator-messages-new");
DbusmenuMenuitem * root = dbusmenu_menuitem_new();
- dbusmenu_menuitem_property_set(root, "label", "Root");
+
+ DbusmenuMenuitem * item = dbusmenu_menuitem_new();
+ dbusmenu_menuitem_property_set(item, DBUSMENU_MENUITEM_PROP_LABEL, "Item 1");
+ dbusmenu_menuitem_child_append(root, item);
+
+ item = dbusmenu_menuitem_new();
+ dbusmenu_menuitem_property_set(item, DBUSMENU_MENUITEM_PROP_LABEL, "Item 2");
+ dbusmenu_menuitem_child_append(root, item);
DbusmenuServer * menuservice = dbusmenu_server_new ("/need/a/menu/path");
dbusmenu_server_set_root(menuservice, root);