diff options
author | William Hua <william.hua@canonical.com> | 2013-11-22 08:33:43 -0500 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2013-11-22 08:33:43 -0500 |
commit | 2fe7f0a9f585136f5a09aab9fe48ed0468dd3cf3 (patch) | |
tree | daf1b679e47da69ae054a3f6a3aacfd6cc4c54f5 /lib/main.vala | |
parent | b6ec0422cf4d79196fa361be0831ae59ebfc0ba2 (diff) | |
download | ayatana-indicator-keyboard-2fe7f0a9f585136f5a09aab9fe48ed0468dd3cf3.tar.gz ayatana-indicator-keyboard-2fe7f0a9f585136f5a09aab9fe48ed0468dd3cf3.tar.bz2 ayatana-indicator-keyboard-2fe7f0a9f585136f5a09aab9fe48ed0468dd3cf3.zip |
Move greeter.vala to unity-greeter.vala.
Diffstat (limited to 'lib/main.vala')
-rw-r--r-- | lib/main.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/main.vala b/lib/main.vala index 66147b18..305ebb81 100644 --- a/lib/main.vala +++ b/lib/main.vala @@ -41,7 +41,7 @@ public class Indicator.Keyboard.Service : Object { private MenuModel? menu_model; private Menu? sources_menu; - private Greeter? greeter; + private UnityGreeter? unity_greeter; private string? greeter_user; private uint lightdm_current; @@ -127,9 +127,9 @@ public class Indicator.Keyboard.Service : Object { [DBus (visible = false)] private void update_greeter_user () { - if (greeter_user == null && greeter != null) { + if (greeter_user == null && unity_greeter != null) { try { - greeter_user = ((!) greeter).get_active_entry (); + greeter_user = ((!) unity_greeter).get_active_entry (); } catch (IOError error) { warning ("error: %s", error.message); } @@ -773,8 +773,8 @@ public class Indicator.Keyboard.Service : Object { [DBus (visible = false)] private void handle_name_appeared (DBusConnection connection, string name, string name_owner) { try { - greeter = Bus.get_proxy_sync (BusType.SESSION, name, "/list"); - ((!) greeter).entry_selected.connect (handle_entry_selected); + unity_greeter = Bus.get_proxy_sync (BusType.SESSION, name, "/list"); + ((!) unity_greeter).entry_selected.connect (handle_entry_selected); } catch (IOError error) { warning ("error: %s", error.message); } @@ -782,7 +782,7 @@ public class Indicator.Keyboard.Service : Object { [DBus (visible = false)] private void handle_name_vanished (DBusConnection connection, string name) { - greeter = null; + unity_greeter = null; } [DBus (visible = false)] |