aboutsummaryrefslogtreecommitdiff
path: root/src/status-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-08 06:24:04 -0600
committerTed Gould <ted@canonical.com>2009-08-08 06:24:04 -0600
commit0788baad4bd4714e8361a99150046ba4fdb4513a (patch)
treef4f67065ac5a0ef3f6692d7d39138be1b51d7704 /src/status-service.c
parente36075a13c2e270b9a240032f8fca244614d6367 (diff)
downloadayatana-indicator-session-0788baad4bd4714e8361a99150046ba4fdb4513a.tar.gz
ayatana-indicator-session-0788baad4bd4714e8361a99150046ba4fdb4513a.tar.bz2
ayatana-indicator-session-0788baad4bd4714e8361a99150046ba4fdb4513a.zip
Global status being used and thrown over d' bus
Diffstat (limited to 'src/status-service.c')
-rw-r--r--src/status-service.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/status-service.c b/src/status-service.c
index 3f25c4f..c1f06f5 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -84,6 +84,9 @@ status_update (void) {
if (global_status != oldglobal) {
g_debug("Global status changed to: %s", _(status_strings[global_status]));
+
+ dbusmenu_menuitem_property_set(status_menuitem, "label", _(status_strings[global_status]));
+ status_service_dbus_set_status(dbus_interface, status_icons[global_status]);
}
return;
@@ -175,7 +178,7 @@ build_menu (gpointer data)
build_user_item(root);
status_menuitem = dbusmenu_menuitem_new();
- dbusmenu_menuitem_property_set(status_menuitem, "label", "Status");
+ dbusmenu_menuitem_property_set(status_menuitem, "label", _(status_strings[global_status]));
dbusmenu_menuitem_child_append(root, status_menuitem);
StatusProviderStatus i;