[gnome-shell] Fix methods that take array arguments



commit 67736642f3cc4be3f66d22e2d4c3e508b0c46871
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Fri Jul 1 15:24:16 2011 +0200

    Fix methods that take array arguments
    
    Length parameter is no longer required in current GJS. Fix that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=654349

 js/ui/notificationDaemon.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 37009d9..19288a7 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -122,7 +122,7 @@ NotificationDaemon.prototype = {
         } else if (hints['image-data']) {
             let [width, height, rowStride, hasAlpha,
                  bitsPerSample, nChannels, data] = hints['image-data'];
-            return textureCache.load_from_raw(data, data.length, hasAlpha,
+            return textureCache.load_from_raw(data, hasAlpha,
                                               width, height, rowStride, size);
         } else {
             let stockIcon;



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