[rygel] external,mpris: Prefer async D-Bus proxies creation



commit 7c1d768e5b20ea22dcb162976d65f5645e758c8a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Nov 15 17:47:59 2010 +0200

    external,mpris: Prefer async D-Bus proxies creation

 .../external/rygel-external-album-art-factory.vala |    2 +-
 src/plugins/external/rygel-external-container.vala |    4 ++--
 .../external/rygel-external-icon-factory.vala      |    2 +-
 .../external/rygel-external-plugin-factory.vala    |    2 +-
 .../external/rygel-external-thumbnail-factory.vala |    2 +-
 src/plugins/mpris/rygel-mpris-plugin-factory.vala  |    2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-album-art-factory.vala b/src/plugins/external/rygel-external-album-art-factory.vala
index 2c2ef91..b9665f4 100644
--- a/src/plugins/external/rygel-external-album-art-factory.vala
+++ b/src/plugins/external/rygel-external-album-art-factory.vala
@@ -31,7 +31,7 @@ public class Rygel.External.AlbumArtFactory {
     public async Thumbnail create (string service_name,
                                    string object_path,
                                    string host_ip) throws IOError {
-        Properties props = Bus.get_proxy_sync
+        Properties props = yield Bus.get_proxy
                                         (BusType.SESSION,
                                          service_name,
                                          object_path,
diff --git a/src/plugins/external/rygel-external-container.vala b/src/plugins/external/rygel-external-container.vala
index 2d2744e..a441f09 100644
--- a/src/plugins/external/rygel-external-container.vala
+++ b/src/plugins/external/rygel-external-container.vala
@@ -132,7 +132,7 @@ public class Rygel.External.Container : Rygel.MediaContainer {
         MediaObject media_object = null;
 
         // Create proxy to MediaObject iface
-        MediaObjectProxy actual_object = Bus.get_proxy_sync (BusType.SESSION,
+        MediaObjectProxy actual_object = yield Bus.get_proxy (BusType.SESSION,
                                                              this.service_name,
                                                              id);
 
@@ -157,7 +157,7 @@ public class Rygel.External.Container : Rygel.MediaContainer {
                                          0,
                                          null);
 
-            Properties props_iface = Bus.get_proxy_sync
+            Properties props_iface = yield Bus.get_proxy
                                         (BusType.SESSION,
                                         this.service_name,
                                         id,
diff --git a/src/plugins/external/rygel-external-icon-factory.vala b/src/plugins/external/rygel-external-icon-factory.vala
index c8f67b0..a291cdf 100644
--- a/src/plugins/external/rygel-external-icon-factory.vala
+++ b/src/plugins/external/rygel-external-icon-factory.vala
@@ -37,7 +37,7 @@ public class Rygel.External.IconFactory {
         }
 
         var icon_path = (string) value;
-        Properties props = Bus.get_proxy_sync
+        Properties props = yield Bus.get_proxy
                                         (BusType.SESSION,
                                          service_name,
                                          icon_path,
diff --git a/src/plugins/external/rygel-external-plugin-factory.vala b/src/plugins/external/rygel-external-plugin-factory.vala
index b618cee..6c7d81b 100644
--- a/src/plugins/external/rygel-external-plugin-factory.vala
+++ b/src/plugins/external/rygel-external-plugin-factory.vala
@@ -125,7 +125,7 @@ public class Rygel.External.PluginFactory {
         var root_object = "/" + service_name.replace (".", "/");
 
         // Create proxy to MediaObject iface to get the display name through
-        Properties props = Bus.get_proxy_sync
+        Properties props = yield Bus.get_proxy
                                         (BusType.SESSION,
                                          service_name,
                                          root_object,
diff --git a/src/plugins/external/rygel-external-thumbnail-factory.vala b/src/plugins/external/rygel-external-thumbnail-factory.vala
index 7966f17..37ab093 100644
--- a/src/plugins/external/rygel-external-thumbnail-factory.vala
+++ b/src/plugins/external/rygel-external-thumbnail-factory.vala
@@ -32,7 +32,7 @@ public class Rygel.External.ThumbnailFactory {
                                    string object_path,
                                    string host_ip)
                                    throws GLib.Error {
-        Properties props = Bus.get_proxy_sync
+        Properties props = yield Bus.get_proxy
                                         (BusType.SESSION,
                                          service_name,
                                          object_path,
diff --git a/src/plugins/mpris/rygel-mpris-plugin-factory.vala b/src/plugins/mpris/rygel-mpris-plugin-factory.vala
index 4284470..6d7eeee 100644
--- a/src/plugins/mpris/rygel-mpris-plugin-factory.vala
+++ b/src/plugins/mpris/rygel-mpris-plugin-factory.vala
@@ -117,7 +117,7 @@ public class Rygel.MPRIS.PluginFactory {
 
     private async void load_plugin (string service_name) throws IOError {
         // Create proxy to MediaObject iface to get the display name through
-        Properties props = Bus.get_proxy_sync
+        Properties props = yield Bus.get_proxy
                                         (BusType.SESSION,
                                          service_name,
                                          MEDIA_PLAYER_PATH,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]