aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);