aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/greeter-list.vala18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/greeter-list.vala b/src/greeter-list.vala
index 8e25602..47724f1 100644
--- a/src/greeter-list.vala
+++ b/src/greeter-list.vala
@@ -41,14 +41,8 @@ public class ListDBusInterface : Object
public string get_active_entry ()
{
- string entry = "";
-
- if (list.selected_entry != null && list.selected_entry.id != null)
- entry = list.selected_entry.id;
-
- return entry;
+ return list.get_active_entry ();
}
-
public void set_active_entry (string entry_name)
{
list.set_active_entry (entry_name);
@@ -407,6 +401,16 @@ public abstract class GreeterList : FadableBox
move_names ();
}
+ public string get_active_entry ()
+ {
+ string entry = "";
+
+ if (selected_entry != null && selected_entry.id != null)
+ entry = selected_entry.id;
+
+ return entry;
+ }
+
public void set_active_entry (string ?name)
{
var e = find_entry (name);