2
* Copyright (C) 2010-2011 Robert Ancell.
3
* Author: Robert Ancell <robert.ancell@canonical.com>
5
* This program is free software: you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License as published by the Free Software
7
* Foundation, either version 3 of the License, or (at your option) any later
8
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
17
G_DEFINE_TYPE (XDisplay, xdisplay, DISPLAY_TYPE);
20
xdisplay_new (XServer *server)
22
XDisplay *self = g_object_new (XDISPLAY_TYPE, NULL);
24
g_return_val_if_fail (server != NULL, NULL);
26
display_set_display_server (DISPLAY (self), DISPLAY_SERVER (server));
32
xdisplay_create_session (Display *display)
34
return SESSION (xsession_new (XSERVER (display_get_display_server (display))));
38
xdisplay_init (XDisplay *display)
43
xdisplay_class_init (XDisplayClass *klass)
45
DisplayClass *display_class = DISPLAY_CLASS (klass);
47
display_class->create_session = xdisplay_create_session;