[pitivi] Move to new GIO API



commit 663b8e1fdb1e8915055e2a0a4c4abb8e7a7dbfd1
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Mon Jul 2 16:36:00 2012 -0400

    Move to new GIO API

 pitivi/application.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 46b88be..53a4577 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -214,9 +214,9 @@ class Pitivi(Loggable, Signallable):
 
     # check if for version information online
     def _checkVersion(self):
-        giofile = gio.File(uri=RELEASES_URL)
+        giofile = gio.File.new_for_uri(RELEASES_URL)
         self.info("Requesting version information")
-        giofile.load_contents_async(self._versionInfoReceivedCb, None, None)
+        giofile.load_contents_async(None, self._versionInfoReceivedCb, None)
 
     def _versionInfoReceivedCb(self, giofile, result, data):
         try:



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