~dbarth/lightdm/vnc-no-password

« back to all changes in this revision

Viewing changes to src/seat-xvnc.c

  • Committer: David Barth
  • Date: 2012-09-20 09:55:05 UTC
  • Revision ID: david.barth@canonical.com-20120920095505-x9sdm4yqyqun8a7y
fix indentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        if (depth == 8 || depth == 16 || depth == 24 || depth == 32)
57
57
            xserver_xvnc_set_depth (xserver, depth);
58
58
    }
59
 
        if (config_has_key (config_get_instance (), "VNCServer", "password-file"))
60
 
        {
 
59
    if (config_has_key (config_get_instance (), "VNCServer", "password-file"))
 
60
    {
61
61
        gchar *file;
62
62
        file = config_get_string (config_get_instance (), "VNCServer", "password-file");
63
 
                xserver_xvnc_set_password_file (xserver, file);
64
 
                g_free (file);
65
 
        }
66
 
        if (config_has_key (config_get_instance (), "VNCServer", "security-types"))
67
 
        {
 
63
        xserver_xvnc_set_password_file (xserver, file);
 
64
        g_free (file);
 
65
    }
 
66
    if (config_has_key (config_get_instance (), "VNCServer", "security-types"))
 
67
    {
68
68
        gchar *types;
69
69
        types = config_get_string (config_get_instance (), "VNCServer", "security-types");
70
 
                xserver_xvnc_set_security_types (xserver, types);
71
 
                g_free (types);
72
 
        }
 
70
        xserver_xvnc_set_security_types (xserver, types);
 
71
        g_free (types);
 
72
    }
73
73
 
74
74
    return DISPLAY_SERVER (xserver);
75
75
}