gallery widget not working

Bug #1543059 reported by Michael Weimann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-js-scopes
Fix Committed
Undecided
Marcus Tomlinson

Bug Description

When I add a gallery widget like this (image uris are just examples):

var images = new scopes.lib.PreviewWidget("images", "gallery");
images.add_attribute_value("sources",
    [
        'http://.../img1.png',
        'http://.../img2.png'
    ]
);

I get this error on console:
file:///usr/share/unity8//Dash/Previews/PreviewImageGallery.qml:131:25: Unable to assign QJSValue to QUrl
file:///usr/share/unity8//Dash/Previews/PreviewImageGallery.qml:62:21: Unable to assign QJSValue to QUrl

The images are not displayed.

Code example here: http://bazaar.launchpad.net/~m982/+junk/perform-action-bug/view/head:/src/perform-action.js#L167

Using the ubuntu-sdk-15.04.4 framework.

Related branches

Revision history for this message
Michael Weimann (m982) wrote :
description: updated
Michael Weimann (m982)
description: updated
Changed in unity-js-scopes:
assignee: nobody → Marcus Tomlinson (marcustomlinson)
status: New → In Progress
Changed in unity-js-scopes:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.