[gdm] slave: Add back setting of session-id
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] slave: Add back setting of session-id
- Date: Thu, 13 Feb 2014 14:59:37 +0000 (UTC)
commit 9539d0763f13dc9431ac014d80023e0c0109683e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Feb 13 09:46:17 2014 -0500
slave: Add back setting of session-id
It turns out this *is* used, after all...
daemon/gdm-slave.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index d225053..a4a4095 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -1694,6 +1694,14 @@ gdm_slave_switch_to_user_session (GdmSlave *slave,
}
static void
+_gdm_slave_set_session_id (GdmSlave *slave,
+ const char *id)
+{
+ g_free (slave->priv->session_id);
+ slave->priv->session_id = g_strdup (id);
+}
+
+static void
_gdm_slave_set_display_id (GdmSlave *slave,
const char *id)
{
@@ -1712,6 +1720,9 @@ gdm_slave_set_property (GObject *object,
self = GDM_SLAVE (object);
switch (prop_id) {
+ case PROP_SESSION_ID:
+ _gdm_slave_set_session_id (self, g_value_get_string (value));
+ break;
case PROP_DISPLAY_ID:
_gdm_slave_set_display_id (self, g_value_get_string (value));
break;
@@ -1939,7 +1950,7 @@ gdm_slave_class_init (GdmSlaveClass *klass)
"Session id",
"ID of session",
NULL,
- G_PARAM_READABLE));
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_DISPLAY_ID,
g_param_spec_string ("display-id",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]