summaryrefslogtreecommitdiff
path: root/daemon/gdm-xdmcp-display.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-01-19 09:09:49 -0500
committerRay Strode <rstrode@redhat.com>2015-02-18 17:34:10 -0500
commit33bb9cfd9bac812338a5fdd1f7351f8e7606dcd1 (patch)
tree1bcbbb0a409df12cc7b36fb131bffc9c4eb1566f /daemon/gdm-xdmcp-display.c
parentc5fd69528315b7c7dbb437ad78b790f293455bd9 (diff)
downloadgdm-33bb9cfd9bac812338a5fdd1f7351f8e7606dcd1.tar.gz
xdmcp-greeter-display: drop class
GdmXdmcpGreeterDisplay doesn't do anything that it's parent class does (except call unmanage from finalize which is strange and probably wrong). This commit drops the file and instead just uses GdmXdmcpDisplay directly, instead. https://bugzilla.gnome.org/show_bug.cgi?id=744764
Diffstat (limited to 'daemon/gdm-xdmcp-display.c')
-rw-r--r--daemon/gdm-xdmcp-display.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/daemon/gdm-xdmcp-display.c b/daemon/gdm-xdmcp-display.c
index 9b929fae..27ea00d1 100644
--- a/daemon/gdm-xdmcp-display.c
+++ b/daemon/gdm-xdmcp-display.c
@@ -198,3 +198,26 @@ gdm_xdmcp_display_init (GdmXdmcpDisplay *xdmcp_display)
xdmcp_display->priv = GDM_XDMCP_DISPLAY_GET_PRIVATE (xdmcp_display);
}
+
+GdmDisplay *
+gdm_xdmcp_display_new (const char *hostname,
+ int number,
+ GdmAddress *address,
+ gint32 session_number)
+{
+ GObject *object;
+ char *x11_display;
+
+ x11_display = g_strdup_printf ("%s:%d", hostname, number);
+ object = g_object_new (GDM_TYPE_XDMCP_DISPLAY,
+ "remote-hostname", hostname,
+ "x11-display-number", number,
+ "x11-display-name", x11_display,
+ "is-local", FALSE,
+ "remote-address", address,
+ "session-number", session_number,
+ NULL);
+ g_free (x11_display);
+
+ return GDM_DISPLAY (object);
+}