diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-07-24 15:13:49 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-07-24 15:13:49 +1200 |
commit | 89b92cc760016d26fe409f1bc4b0ddf664ead355 (patch) | |
tree | 812c862ba0e5d06eab44f5c31fadea944a40ca9f /src/seat-xvnc.c | |
parent | df3dfdcc41821811749d2c3fc05a184a6c1ba9fb (diff) | |
parent | 2085c8a8160dc661f7b5486e4cd700c57b63dffd (diff) | |
download | lightdm-git-89b92cc760016d26fe409f1bc4b0ddf664ead355.tar.gz |
Merge in X module renaming changes
Diffstat (limited to 'src/seat-xvnc.c')
-rw-r--r-- | src/seat-xvnc.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/seat-xvnc.c b/src/seat-xvnc.c index b85d9e16..2f4ecf75 100644 --- a/src/seat-xvnc.c +++ b/src/seat-xvnc.c @@ -12,7 +12,7 @@ #include <string.h> #include "seat-xvnc.h" -#include "xserver-xvnc.h" +#include "x-server-xvnc.h" #include "configuration.h" G_DEFINE_TYPE (SeatXVNC, seat_xvnc, SEAT_TYPE); @@ -36,7 +36,7 @@ SeatXVNC *seat_xvnc_new (GSocket *connection) static DisplayServer * seat_xvnc_create_display_server (Seat *seat, const gchar *session_type) { - XServerXVNC *xserver; + XServerXVNC *x_server; const gchar *command = NULL; if (strcmp (session_type, "x") != 0) @@ -45,12 +45,12 @@ seat_xvnc_create_display_server (Seat *seat, const gchar *session_type) return NULL; } - xserver = xserver_xvnc_new (); - xserver_xvnc_set_socket (xserver, g_socket_get_fd (SEAT_XVNC (seat)->priv->connection)); + x_server = x_server_xvnc_new (); + x_server_xvnc_set_socket (x_server, g_socket_get_fd (SEAT_XVNC (seat)->priv->connection)); command = config_get_string (config_get_instance (), "VNCServer", "command"); if (command) - xserver_xvnc_set_command (xserver, command); + x_server_xvnc_set_command (x_server, command); if (config_has_key (config_get_instance (), "VNCServer", "width") && config_has_key (config_get_instance (), "VNCServer", "height")) @@ -59,35 +59,35 @@ seat_xvnc_create_display_server (Seat *seat, const gchar *session_type) width = config_get_integer (config_get_instance (), "VNCServer", "width"); height = config_get_integer (config_get_instance (), "VNCServer", "height"); if (height > 0 && width > 0) - xserver_xvnc_set_geometry (xserver, width, height); + x_server_xvnc_set_geometry (x_server, width, height); } if (config_has_key (config_get_instance (), "VNCServer", "depth")) { gint depth; depth = config_get_integer (config_get_instance (), "VNCServer", "depth"); if (depth == 8 || depth == 16 || depth == 24 || depth == 32) - xserver_xvnc_set_depth (xserver, depth); + x_server_xvnc_set_depth (x_server, depth); } - return DISPLAY_SERVER (xserver); + return DISPLAY_SERVER (x_server); } static void seat_xvnc_run_script (Seat *seat, DisplayServer *display_server, Process *script) { - XServerXVNC *xserver; + XServerXVNC *x_server; GInetSocketAddress *address; gchar *hostname; const gchar *path; - xserver = XSERVER_XVNC (display_server); + x_server = X_SERVER_XVNC (display_server); address = G_INET_SOCKET_ADDRESS (g_socket_get_remote_address (SEAT_XVNC (seat)->priv->connection, NULL)); hostname = g_inet_address_to_string (g_inet_socket_address_get_address (address)); - path = xserver_xvnc_get_authority_file_path (xserver); + path = x_server_xvnc_get_authority_file_path (x_server); process_set_env (script, "REMOTE_HOST", hostname); - process_set_env (script, "DISPLAY", xserver_get_address (XSERVER (xserver))); + process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (x_server))); process_set_env (script, "XAUTHORITY", path); g_free (hostname); |