aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-30 16:53:09 -0500
committerTed Gould <ted@canonical.com>2009-06-30 16:53:09 -0500
commit42644e5fb655c101d553773a29050323d1711a7e (patch)
tree1822e994e9539d8d4ff50b6f075a4676ae17a88c
parent17e41d8a3a128e07189fd3163900390372c2b07c (diff)
downloadayatana-indicator-session-42644e5fb655c101d553773a29050323d1711a7e.tar.gz
ayatana-indicator-session-42644e5fb655c101d553773a29050323d1711a7e.tar.bz2
ayatana-indicator-session-42644e5fb655c101d553773a29050323d1711a7e.zip
Getting some menuitems
-rw-r--r--src/users-service.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/users-service.c b/src/users-service.c
index 39afe39..c3c842f 100644
--- a/src/users-service.c
+++ b/src/users-service.c
@@ -10,6 +10,19 @@
static DbusmenuMenuitem * root_menuitem = NULL;
static GMainLoop * mainloop = NULL;
+gchar * dummies[] = {
+ "Bob", "Jim", "Alvin", "Mary", NULL
+};
+
+void dummy_users (void) {
+ int count;
+ for (count = 0; dummies[count] != NULL; count++) {
+ DbusmenuMenuitem * mi = dbusmenu_menuitem_new();
+ dbusmenu_menuitem_property_set(mi, "label", dummies[count]);
+ dbusmenu_menuitem_child_append(root_menuitem, mi);
+ }
+}
+
int
main (int argc, char ** argv)
{