aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-20 21:43:56 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-20 21:43:56 +0200
commitdded5f2915995dc1e2959ddd35e275e3ace8c2d2 (patch)
treee38f7c5dbcbfd49493d9d31abd35c4b8b2c0158f /src
parent4216b5da6746034a2c3aa6ffa062ddd99e2e3cf3 (diff)
downloadarctica-greeter-dded5f2915995dc1e2959ddd35e275e3ace8c2d2.tar.gz
arctica-greeter-dded5f2915995dc1e2959ddd35e275e3ace8c2d2.tar.bz2
arctica-greeter-dded5f2915995dc1e2959ddd35e275e3ace8c2d2.zip
src/greeter-list.vala: Move get_active_entry() functionality from ListDBusInterface to the GreeterList class.
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);