From 913e99f4a2151b57412b1db3e2eb48b5050ff9fb Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 10 Jun 2009 16:17:53 -0500 Subject: =?UTF-8?q?Using=20the=20defines=20and=20strings=20that=20were=20i?= =?UTF-8?q?n=20our=20patches=20to=20FUSA.=20=20I=20wrote=20the=20code,=20s?= =?UTF-8?q?o=20it=20is=20like=20other=20things=20=C2=A9=20Canonical=20so?= =?UTF-8?q?=20there=20is=20no=20issue=20there.=20=20There=20is=20other=20c?= =?UTF-8?q?ode=20in=20FUSA=20that=20is=20not.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/status-service.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/status-service.c') 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 + #include #include @@ -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; -- cgit v1.2.3