diff options
author | Ted Gould <ted@canonical.com> | 2009-07-21 10:55:51 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-07-21 10:55:51 -0500 |
commit | 2ca3cfc69a973ee7fcf1092b2123aff8d6d50a92 (patch) | |
tree | 580a682ed07ceca2a2fe2d0edb8f84696bdd9cf6 /src/status-service.c | |
parent | a8c42b30eec77e825ce16141004742eeb5c3078c (diff) | |
parent | 9ac0cedfc49dc8e1b89bf24ac0964cff0195437e (diff) | |
download | ayatana-indicator-session-2ca3cfc69a973ee7fcf1092b2123aff8d6d50a92.tar.gz ayatana-indicator-session-2ca3cfc69a973ee7fcf1092b2123aff8d6d50a92.tar.bz2 ayatana-indicator-session-2ca3cfc69a973ee7fcf1092b2123aff8d6d50a92.zip |
Adding in lots of fun menu items. This way the menu looks
more complete than it really is :)
Diffstat (limited to 'src/status-service.c')
-rw-r--r-- | src/status-service.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/status-service.c b/src/status-service.c index e31a0db..314929e 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -42,6 +42,13 @@ static DbusmenuMenuitem * root_menuitem = NULL; static GMainLoop * mainloop = NULL; static void +lock_screen (DbusmenuMenuitem * mi, gpointer data) +{ + g_debug("Lock Screen"); + return; +} + +static void status_menu_click (DbusmenuMenuitem * mi, gpointer data) { StatusProviderStatus status = (StatusProviderStatus)GPOINTER_TO_INT(data); @@ -83,6 +90,11 @@ build_menu (gpointer data) g_debug("Built %s", status_strings[i]); } + DbusmenuMenuitem * mi = dbusmenu_menuitem_new(); + dbusmenu_menuitem_property_set(mi, "label", _("Lock Screen")); + g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(lock_screen), GINT_TO_POINTER(i)); + dbusmenu_menuitem_child_append(root, mi); + return FALSE; } |