ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00108
[Bug 1207804] Re: [MainView] Need a way to dynamically alter the current global actions
** Changed in: ubuntu-ui-toolkit
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1207804
Title:
[MainView] Need a way to dynamically alter the current global actions
Status in Ubuntu UI Toolkit:
Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
Fix Released
Bug description:
The MainView current exposes an actions property (behind the scene
aliased to actionManager.actions which is a qmllistproperty) that is
used to declare static actions for the global actions context.
There is currently no ways (besides using Pages) to dynamically alter
and access those actions at runtime.
The context of the requests and the associated requests come from
WebApps where depending on what's being present on a given supported
web application (think GMail or GoogleDocs) actions are dynamically
being added (as the DOM is being parsed) at runtime. The use case is
very dynamic at its core.
The webbrowser-app will be used as a container for WebApps but it uses
a MainView (it used to use a plain ActionManager) which does not
expose ways to dynamically tweak actions.
In this very context, a simple solution would be to add
addaction/removeaction caps to the MainView, but a somewhat better one
(but trickier to get right imo) would be the capability to introduce
additional actioncontexts (*dynamic* ones i.e. w/ addaction &
removeaction capabilities) and allow them to either replace the global
one or complement it. One could still keep the static list of actions
but have some dynamic caps within the boundary of the unityactions API
w/ a bridge to the SDK MainView ...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1207804/+subscriptions