aboutsummaryrefslogtreecommitdiff
path: root/src/user-list.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-12 05:12:54 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-12 05:12:54 +0100
commitc356792c6c2827382a13bb55cac5c3d70d96ce08 (patch)
tree9953285c2f2542feb7e50201fcf4b45e826b7b35 /src/user-list.vala
parent4ae9e07bb3f6af341a568888f2487712d7a40829 (diff)
downloadarctica-greeter-c356792c6c2827382a13bb55cac5c3d70d96ce08.tar.gz
arctica-greeter-c356792c6c2827382a13bb55cac5c3d70d96ce08.tar.bz2
arctica-greeter-c356792c6c2827382a13bb55cac5c3d70d96ce08.zip
Apply patch 01_x2go+rls.patch. Natively support X2Go Session.
Diffstat (limited to 'src/user-list.vala')
-rw-r--r--src/user-list.vala15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/user-list.vala b/src/user-list.vala
index 5f2bceb..86b71d2 100644
--- a/src/user-list.vala
+++ b/src/user-list.vala
@@ -20,7 +20,7 @@
int remote_server_field_sort_function (RemoteServerField? item1, RemoteServerField? item2)
{
- string[] sorted_fields = { "domain", "username", "email", "password" };
+ string[] sorted_fields = { "domain", "x2gosession" , "username", "email", "password"};
foreach (var field in sorted_fields)
{
if (item1.type == field)
@@ -702,6 +702,13 @@ public class UserList : GreeterList
entry.text = default_value;
widget = entry;
}
+ else if (field.type == "x2gosession")
+ {
+ var prompt = add_prompt (_("X2Go Session:"));
+ prompt.text = default_value;
+ prompt.sensitive = true;
+ widget = prompt;
+ }
else if (field.type == "domain")
{
string[] domainsArray = {};
@@ -1077,6 +1084,12 @@ public class UserList : GreeterList
var answer = field != null ? field.text : "";
UnityGreeter.singleton.respond (answer);
}
+ else if (text == "x2gosession:")
+ {
+ Gtk.Entry field = current_remote_fields.get ("x2gosession") as Gtk.Entry;
+ var answer = field != null ? field.text : "";
+ UnityGreeter.singleton.respond (answer);
+ }
}
else
base.show_prompt_cb (text, type);