aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-11-24 13:03:56 -0600
committerTed Gould <ted@gould.cx>2009-11-24 13:03:56 -0600
commit314754fe25afd90caa38581d3e9e0d2c1cf43b70 (patch)
tree7e0dcd35aeb17c40c54376b63c208c5c5981b1f2
parentc8faaf3f5490dc8b516b6944432d1de8f05248cc (diff)
downloadayatana-indicator-application-314754fe25afd90caa38581d3e9e0d2c1cf43b70.tar.gz
ayatana-indicator-application-314754fe25afd90caa38581d3e9e0d2c1cf43b70.tar.bz2
ayatana-indicator-application-314754fe25afd90caa38581d3e9e0d2c1cf43b70.zip
Building a little more of a menu item for testing.
-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);