~unity-team/unity/trunk

Viewing all changes in revision 3397.

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-07-02 07:27:48 UTC
  • mfrom: (3384.4.13 bamf-new-properties)
  • Revision ID: tarmac-20130702072748-6g2e1y6qapeo776s
ApplicationLauncherIcon: improve the way we override the Quit quicklist item

If a quit action is defined in static (desktop file action) or dynamic way we
use it to override the default one, placing it to the proper position.
Also override more labels by default and if a quicklist item has the
QuicklistMenuItem::QUIT_ACTION_PROPERTY (defined as "unity-quit-action")
property set to TRUE, then we use this item as the quit quicklist item.

Factorized the code we use to generate both static and dynamic ql items. Fixes: https://bugs.launchpad.net/bugs/876421.

Approved by PS Jenkins bot, Christopher Townsend.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: