diff options
author | Ted Gould <ted@canonical.com> | 2009-08-06 17:49:49 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-06 17:49:49 +0100 |
commit | 04cc48ee124c9eb1668fa9b6447239855e781534 (patch) | |
tree | fe7a9bda8783f3acfce1f2b3fc42b26744f328e2 | |
parent | 5afcbe0b90e4005446087e49907f61ddcb9b900f (diff) | |
download | ayatana-indicator-session-04cc48ee124c9eb1668fa9b6447239855e781534.tar.gz ayatana-indicator-session-04cc48ee124c9eb1668fa9b6447239855e781534.tar.bz2 ayatana-indicator-session-04cc48ee124c9eb1668fa9b6447239855e781534.zip |
Some dummy code to get a name
-rw-r--r-- | src/status-service-dbus.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/status-service-dbus.c b/src/status-service-dbus.c index d5a880a..5d4ba0a 100644 --- a/src/status-service-dbus.c +++ b/src/status-service-dbus.c @@ -98,7 +98,7 @@ status_service_dbus_init (StatusServiceDbus *self) G_OBJECT(self)); StatusServiceDbusPrivate * priv = STATUS_SERVICE_DBUS_GET_PRIVATE(self); - priv->name = NULL; + priv->name = "test"; return; } @@ -136,6 +136,17 @@ _status_service_server_status_icons (StatusServiceDbus * service, GArray * array static gboolean _status_service_server_pretty_user_name (StatusServiceDbus * service, gchar ** username, GError ** error) { + if (!IS_STATUS_SERVICE_DBUS(service)) { + g_warning("NO BAD EVIL!"); + return FALSE; + } + + StatusServiceDbusPrivate * priv = STATUS_SERVICE_DBUS_GET_PRIVATE(service); + if (priv->name == NULL) { + *username = g_strdup(""); + } else { + *username = g_strdup(priv->name); + } return TRUE; } |