[gnome-boxes] media-manager: Async create_installer_media_from_media()



commit 59e7e0ada28da91aa554e06d837be7d66e14e98b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Dec 6 02:38:22 2012 +0200

    media-manager: Async create_installer_media_from_media()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676537

 src/media-manager.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/media-manager.vala b/src/media-manager.vala
index f9091a4..998cc4a 100644
--- a/src/media-manager.vala
+++ b/src/media-manager.vala
@@ -25,7 +25,7 @@ private class Boxes.MediaManager : Object {
                                                                  Cancellable? cancellable) throws GLib.Error {
         var media = yield InstallerMedia.create_for_path (path, this, cancellable);
 
-        return create_installer_media_from_media (media);
+        return yield create_installer_media_from_media (media);
     }
 
     public async InstallerMedia create_installer_media_from_config (GVirConfig.Domain config) {
@@ -54,7 +54,7 @@ private class Boxes.MediaManager : Object {
         var media = new InstallerMedia.from_iso_info (path, label, os, os_media, resources);
 
         try {
-            media = create_installer_media_from_media (media);
+            media = yield create_installer_media_from_media (media);
         } catch (GLib.Error error) {
             debug ("%s", error.message); // We just failed to create more specific media instance, no biggie!
         }
@@ -144,10 +144,10 @@ private class Boxes.MediaManager : Object {
         var resources = os_db.get_resources_for_os (os, os_media.architecture);
         var media = new InstallerMedia.from_iso_info (path, label, os, os_media, resources);
 
-        return create_installer_media_from_media (media);
+        return yield create_installer_media_from_media (media);
     }
 
-    private InstallerMedia create_installer_media_from_media (InstallerMedia media) throws GLib.Error {
+    private async InstallerMedia create_installer_media_from_media (InstallerMedia media) throws GLib.Error {
         if (media.os == null)
             return media;
 



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