← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1207804] Re: [MainView] Need a way to dynamically alter the current global actions

 

This bug was fixed in the package ubuntu-ui-toolkit -
0.1.46+13.10.20130822.1-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+13.10.20130822.1-0ubuntu1) saucy; urgency=low

  [ Alexandre Abreu ]
  * Add an actionmanager property that let clients be more flexible with
    their actions at runtime. (LP: #1207804)

  [ tpeeters ]
  * Do not trigger a ToolbarButton that is not enabled. (LP: #1202245)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 707
 -- Ubuntu daily release <ps-jenkins@xxxxxxxxxxxxxxxxxxx>   Thu, 22 Aug 2013 18:55:49 +0000

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => 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 Committed
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