aboutsummaryrefslogtreecommitdiff
path: root/src/status-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-16 11:34:26 -0500
committerTed Gould <ted@canonical.com>2009-09-16 11:34:26 -0500
commitcd4b5a1f7a0a9a3905dee1557e3edf9be46b826e (patch)
treeea1b81c7ea1b4d6aa84e802ae5a3710ed0dd4cc4 /src/status-service.c
parent24543619fb480c635209d8f2382845cb2562a5f1 (diff)
parent35cc4970e77115c83c54bd6a4035a3af761cc0b1 (diff)
downloadayatana-indicator-session-cd4b5a1f7a0a9a3905dee1557e3edf9be46b826e.tar.gz
ayatana-indicator-session-cd4b5a1f7a0a9a3905dee1557e3edf9be46b826e.tar.bz2
ayatana-indicator-session-cd4b5a1f7a0a9a3905dee1557e3edf9be46b826e.zip
Merging in design team requested fixes for labels and menu item placement.
Diffstat (limited to 'src/status-service.c')
-rw-r--r--src/status-service.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/status-service.c b/src/status-service.c
index b4a2e09..fe02dd0 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -96,8 +96,6 @@ status_update (void) {
if (global_status != oldglobal) {
g_debug("Global status changed to: %s", _(status_strings[global_status]));
- /* Set the status name on the menu item */
- dbusmenu_menuitem_property_set(status_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _(status_strings[global_status]));
/* Configure the icon on the panel */
status_service_dbus_set_status(dbus_interface, status_icons[global_status]);
@@ -125,33 +123,6 @@ status_update (void) {
return;
}
-/* A fun little function to actually lock the screen. If,
- that's what you want, let's do it! */
-static void
-lock_screen (DbusmenuMenuitem * mi, gpointer data)
-{
- g_debug("Lock Screen");
-
- DBusGConnection * session_bus = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
- g_return_if_fail(session_bus != NULL);
-
- DBusGProxy * proxy = dbus_g_proxy_new_for_name_owner(session_bus,
- "org.gnome.ScreenSaver",
- "/",
- "org.gnome.ScreenSaver",
- NULL);
- g_return_if_fail(proxy != NULL);
-
- dbus_g_proxy_call_no_reply(proxy,
- "Lock",
- G_TYPE_INVALID,
- G_TYPE_INVALID);
-
- g_object_unref(proxy);
-
- return;
-}
-
static void
status_menu_click (DbusmenuMenuitem * mi, gpointer data)
{
@@ -219,7 +190,7 @@ build_menu (gpointer data)
build_user_item(root);
status_menuitem = dbusmenu_menuitem_new();
- dbusmenu_menuitem_property_set(status_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _(status_strings[global_status]));
+ dbusmenu_menuitem_property_set(status_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _("Set Status"));
dbusmenu_menuitem_child_append(root, status_menuitem);
StatusProviderStatus i;
@@ -245,11 +216,6 @@ build_menu (gpointer data)
g_debug("Built %s", status_strings[i]);
}
- DbusmenuMenuitem * mi = dbusmenu_menuitem_new();
- dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_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;
}