[sushi] image: update for introspection changes



commit a7dc9927fb052857292335f8d7215efdb67a3f9b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Jul 2 00:44:47 2011 -0400

    image: update for introspection changes
    
    A callback is now required here

 src/js/viewers/image.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/js/viewers/image.js b/src/js/viewers/image.js
index 2691e9b..c04cf5c 100644
--- a/src/js/viewers/image.js
+++ b/src/js/viewers/image.js
@@ -57,7 +57,13 @@ ImageRenderer.prototype = {
              this._callback();
 
              stream.close_async(GLib.PRIORITY_DEFAULT,
-                                null, null, null);
+                                null, function(object, res) {
+                                    try {
+                                        object.close_finish(res);
+                                    } catch (e) {
+                                        log("Unable to close the stream " + e.toString());
+                                    }
+                                });
          }));
     },
 



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