~ubuntu-branches/ubuntu/natty/unity-2d/natty-updates

« back to all changes in this revision

Viewing changes to launcher/LauncherList.qml

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert, Oliver Grawert, Aurélien Gâteau
  • Date: 2011-04-08 16:03:10 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110408160310-yth7qb9kbgabkqk0
Tags: 3.8.2-0ubuntu1
[ Oliver Grawert ]
* New upstream bugfix release
 - (LP: #632526)  Dash elipsizes file and application names too soon, making them
   unreadable
 - (LP: #669926) [launcher] Web favorites support
 - (LP: #708479) Dash view should use "Prefferred Applications" icons where
   appropriate
 - (LP: #718686) [dash] Group of results sometimes badly positioned
 - (LP: #727483) unity-2d-panel crashed with SIGSEGV in g_return_if_fail_warning()
 - (LP: #731449) [launcher] Dragging a tile at the top of the launcher while
   autoscrolling makes autoscroll wrong afterwards
 - (LP: #736097) [dash] home screen misses icons for applications that are not
   installed
 - (LP: #744999) [launcher] launchers are truncated when too many items to fit
   onscreen
 - (LP: #745077) [spread] clicking launcher with open windows not working correctly
   across workspaces
 - (LP: #745237) [dash] search field default string not translated
 - (LP: #746693) [launcher] .places messages not i18nized
 - (LP: #747836) [dash] Banshee no longer works from the dash home page in 3.8.2
 - (LP: #750753) [dash] showing/hiding places causing graphical corruption
 - (LP: #670608) [dash] Home screen customization should be easy
 - (LP: #683084) Global menu doesn't work well with more than one screen
 - (LP: #714646) [launcher] icons jagged edges during animation
 - (LP: #717744) [panel] inactive menus are clickable
 - (LP: #729002) First four items in Dash begin "Find" "Find" "Find" "Find"
 - (LP: #745758) [spread] super+s should toggle the workspace switcher
 - (LP: #751284) [launcher] Escaping of title broken with webfavorites
 - (LP: #751325) [panel] circle of friends button icon needs to be updated to match
   Unity's
 - (LP: #697816) [launcher] if an urgent window is available then the spread should
   not be activated
 - (LP: #729478) [launcher] Clicking middle mouse button should launch another
   instance of application
 - (LP: #750244) [launcher] Newly installed lenses don’t appear
 - (LP: #752948) Home's "Shortcuts" not i18n/l10n

[ Aurélien Gâteau ]
* Include .mo files in unity-2d package (LP: #751425)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    /* Keep a reference to the currently visible contextual menu */
35
35
    property variant visibleMenu
36
36
 
37
 
    /* A hint for items to determine the value of their 'z' property */
38
 
    property real itemZ: 0
39
 
 
40
37
    /* Can we reorder the items in this list by means of drag and drop ? */
41
38
    property alias reorderable: reorder.enabled
42
39
 
 
40
    /* z value used by items that want to be overlaid on top of the items of the list */
 
41
    property int overlayZ: list.contentItem.z + 3
 
42
 
43
43
    ListViewDragAndDrop {
44
44
        id: reorder
45
45
        list: list
46
46
        enabled: false
 
47
        z: overlayZ
 
48
    }
 
49
 
 
50
    clip: true
 
51
 
 
52
    /* Gradients overlaid on the items indicating that there are more items offscreen */
 
53
    Image {
 
54
        id: topGradient
 
55
 
 
56
        anchors.top: list.top
 
57
        /* Take into account the one pixel border of the background */
 
58
        width: list.width - 1
 
59
        height: Math.max(0, Math.min(list.contentY, 50))
 
60
        source: "artwork/gradient_more_items_top.png"
 
61
        z: overlayZ
 
62
    }
 
63
 
 
64
    Image {
 
65
        id: bottomGradient
 
66
 
 
67
        anchors.bottom: list.bottom
 
68
        width: topGradient.width
 
69
        height: Math.max(0, Math.min(list.contentHeight * (1 - list.visibleArea.heightRatio) - list.contentY, 50))
 
70
        source: "artwork/gradient_more_items_bottom.png"
 
71
        z: overlayZ
47
72
    }
48
73
 
49
74
    /* FIXME: We need this only to workaround a problem in QT's MouseArea
118
143
                showMenu()
119
144
                item.menu.folded = false
120
145
            }
 
146
            else if (mouse.button == Qt.MidButton) {
 
147
                item.launchNewInstance()
 
148
            }
121
149
        }
122
150
 
123
151
        /* Display the tooltip when hovering the item only when the list