aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-10 16:17:53 -0500
committerTed Gould <ted@canonical.com>2009-06-10 16:17:53 -0500
commit913e99f4a2151b57412b1db3e2eb48b5050ff9fb (patch)
treefd676e3764b326ce59a8c83224ec23c5f879d3db
parent9c50845dce179ffd96bb8f5443a57d08afd91218 (diff)
downloadayatana-indicator-session-913e99f4a2151b57412b1db3e2eb48b5050ff9fb.tar.gz
ayatana-indicator-session-913e99f4a2151b57412b1db3e2eb48b5050ff9fb.tar.bz2
ayatana-indicator-session-913e99f4a2151b57412b1db3e2eb48b5050ff9fb.zip
Using the defines and strings that were in our patches to FUSA. I wrote the code, so it is like other things © Canonical so there is no issue there. There is other code in FUSA that is not.
-rw-r--r--src/status-service.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/status-service.c b/src/status-service.c
index 19bee49..68b5685 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -1,4 +1,6 @@
+#include <glib/gi18n.h>
+
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-bindings.h>
@@ -7,6 +9,32 @@
#include "dbus-shared-names.h"
+typedef enum
+{
+ STATUS_SERVICE_STATUS_ONLINE,
+ STATUS_SERVICE_STATUS_AWAY,
+ STATUS_SERVICE_STATUS_DND,
+ STATUS_SERVICE_STATUS_OFFLINE,
+ /* Leave as last */
+ STATUS_SERVICE_STATUS_LAST
+}
+StatusServiceStatus;
+
+static const gchar * status_strings [STATUS_SERVICE_STATUS_LAST] = {
+ /* STATUS_SERVICE_STATUS_ONLINE, */ N_("Available"),
+ /* STATUS_SERVICE_STATUS_AWAY, */ N_("Away"),
+ /* STATUS_SERVICE_STATUS_DND */ N_("Busy"),
+ /* STATUS_SERVICE_STATUS_OFFLINE, */ N_("Offline")
+};
+
+static const gchar * status_icons[STATUS_SERVICE_STATUS_LAST] = {
+ /* STATUS_SERVICE_STATUS_ONLINE, */ "user-online",
+ /* STATUS_SERVICE_STATUS_AWAY, */ "user-away",
+ /* STATUS_SERVICE_STATUS_DND, */ "user-busy",
+ /* STATUS_SERVICE_STATUS_OFFLINE */ "user-offline"
+};
+
+
static DbusmenuMenuitem * root_menuitem = NULL;
static GMainLoop * mainloop = NULL;