aboutsummaryrefslogtreecommitdiff
path: root/src/media-player-list-greeter.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-22 23:07:30 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-22 23:07:30 +0000
commit13525d7b0451f0a9ca7b73e83e2f374fbfb7c1bc (patch)
tree91d4d03a4980df9a072a371578c7c1993742e838 /src/media-player-list-greeter.vala
parent007ee3b3b425a31e31260c62baf789407bc8b54a (diff)
downloadayatana-indicator-sound-13525d7b0451f0a9ca7b73e83e2f374fbfb7c1bc.tar.gz
ayatana-indicator-sound-13525d7b0451f0a9ca7b73e83e2f374fbfb7c1bc.tar.bz2
ayatana-indicator-sound-13525d7b0451f0a9ca7b73e83e2f374fbfb7c1bc.zip
Fork from Ubuntu's indicator-sound.
Diffstat (limited to 'src/media-player-list-greeter.vala')
-rw-r--r--src/media-player-list-greeter.vala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/media-player-list-greeter.vala b/src/media-player-list-greeter.vala
index 3059946..6cd5c3f 100644
--- a/src/media-player-list-greeter.vala
+++ b/src/media-player-list-greeter.vala
@@ -17,21 +17,21 @@
* Ted Gould <ted@canonical.com>
*/
-[DBus (name="com.canonical.UnityGreeter.List")]
-public interface UnityGreeterList : Object {
+[DBus (name="org.ayatana.Greeter.List")]
+public interface AyatanaGreeterList : Object {
public abstract async string get_active_entry () throws IOError;
public signal void entry_selected (string entry_name);
}
public class MediaPlayerListGreeter : MediaPlayerList {
string? selected_user = null;
- UnityGreeterList? proxy = null;
+ AyatanaGreeterList? proxy = null;
HashTable<string, MediaPlayerUser> players = new HashTable<string, MediaPlayerUser>(str_hash, str_equal);
public MediaPlayerListGreeter () {
- Bus.get_proxy.begin<UnityGreeterList> (
+ Bus.get_proxy.begin<AyatanaGreeterList> (
BusType.SESSION,
- "com.canonical.UnityGreeter",
+ "org.ayatana.Greeter",
"/list",
DBusProxyFlags.NONE,
null,
@@ -45,7 +45,7 @@ public class MediaPlayerListGreeter : MediaPlayerList {
this.proxy.entry_selected.connect(active_user_changed);
this.proxy.get_active_entry.begin ((obj, res) => {
try {
- var value = (obj as UnityGreeterList).get_active_entry.end(res);
+ var value = (obj as AyatanaGreeterList).get_active_entry.end(res);
active_user_changed(value);
} catch (Error e) {
warning("Unable to get active entry: %s", e.message);