aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;