aboutsummaryrefslogtreecommitdiff
path: root/src/session-dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-dbus.c')
-rw-r--r--src/session-dbus.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/session-dbus.c b/src/session-dbus.c
index 96b4500..cc12311 100644
--- a/src/session-dbus.c
+++ b/src/session-dbus.c
@@ -80,3 +80,15 @@ _session_dbus_server_get_icon (SessionDbus * service, gchar ** icon, GError ** e
*icon = g_strdup(priv->name);
return TRUE;
}
+
+void
+session_dbus_set_name (SessionDbus * session, const gchar * name)
+{
+ SessionDbusPrivate * priv = SESSION_DBUS_GET_PRIVATE(session);
+ if (priv->name != NULL) {
+ g_free(priv->name);
+ priv->name = NULL;
+ }
+ priv->name = g_strdup(name);
+ return;
+}