aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-07-21 10:54:22 -0500
committerTed Gould <ted@canonical.com>2009-07-21 10:54:22 -0500
commit9ac0cedfc49dc8e1b89bf24ac0964cff0195437e (patch)
tree8f3a43c1c19c8f5e1ab8dcd8855cbfad7e30bc74 /src
parent2c4cdbd4ccf400a537a945c670eb1b8f705a1896 (diff)
downloadayatana-indicator-session-9ac0cedfc49dc8e1b89bf24ac0964cff0195437e.tar.gz
ayatana-indicator-session-9ac0cedfc49dc8e1b89bf24ac0964cff0195437e.tar.bz2
ayatana-indicator-session-9ac0cedfc49dc8e1b89bf24ac0964cff0195437e.zip
Adding in lock screen. This is all the menu items now.
Diffstat (limited to 'src')
-rw-r--r--src/status-service.c12
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;
}