[gnome-boxes] downloader: Don't use deprecated libsoup API



commit 6f955b5cad16537c6606786c888cc571e811f84e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 4 20:45:46 2014 +0000

    downloader: Don't use deprecated libsoup API

 src/downloader.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/downloader.vala b/src/downloader.vala
index 486b3f7..061b1e0 100644
--- a/src/downloader.vala
+++ b/src/downloader.vala
@@ -14,7 +14,7 @@ private class Boxes.Download {
 
 private class Boxes.Downloader : GLib.Object {
     private static Downloader downloader;
-    private Soup.SessionAsync session;
+    private Soup.Session session;
 
     private GLib.HashTable<string,Download> downloads;
 
@@ -50,7 +50,7 @@ private class Boxes.Downloader : GLib.Object {
     private Downloader () {
         downloads = new GLib.HashTable <string,Download> (str_hash, str_equal);
 
-        session = new Soup.SessionAsync ();
+        session = new Soup.Session ();
         session.add_feature_by_type (typeof (Soup.ProxyResolverDefault));
     }
 
@@ -118,7 +118,7 @@ private class Boxes.Downloader : GLib.Object {
             download_from_http.callback ();
         });
         yield;
-        if (msg.status_code != Soup.KnownStatusCode.OK)
+        if (msg.status_code != Soup.Status.OK)
             throw new Boxes.Error.INVALID (msg.reason_phrase);
         yield download.cached_file.replace_contents_async (msg.response_body.data, null, false, 0, null, 
null);
     }


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