~jm-leddy/ubuntu/oneiric/unity-2d/unsetenvvariables

« back to all changes in this revision

Viewing changes to places/dash.qml

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2011-09-29 16:58:34 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: package-import@ubuntu.com-20110929165834-pwezbjplrigri3wf
Tags: 4.12.0-0ubuntu1
* New upstream release
  - unity-2d-panel assert failure: *** glibc detected *** unity-2d-panel:
    malloc(): smallbin double linked list corrupted: 0x08313b28 ***
    (LP: #845979)
  - unity-2d-panel assert failure: *** glibc detected *** unity-2d-panel:
    corrupted double-linked list: 0x094bc9b0 *** (LP: #852012)
  - unity-2d-panel crashed with SIGSEGV (LP: #843432)
  - Dragging downwards from the menu bar or double clicking on the menu bar
    should un-maximise the window (LP: #661049)
  - [dash] Dash is shown when pressing and releasing quickly super+KEY
    (LP: #801073)
  - [dash] Do search, scroll down using mouse, then maximise window. Layout
    breaks (LP: #817421)
  - F10 doesn't start keyboard navigation to the panel (LP: #839628)
  - [dash] Gridview moves to top when you open or close the "Show X more.."
    dropdown or the Filter pane (LP: #850036)
  - Impossible to navigate between panel menus when the mouse cursor is over
    the panel (LP: #834065)
  - [panel] F10 menu initially shown about half screen down (LP: #853766)
  - [dash] Filter pane doesn't clear its background when switching lenses
    (LP: #858590)
  - [shortcuts] <Super><Shift># should launch a new instance of #
    application (LP: #768006)
  - unity-2d-spread missing background images when path includes Unicode
    (LP: #855508)

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
            var lens = lenses.get(dashView.activeLens)
79
79
            lens.active = false
80
80
        }
81
 
        dashView.activeLens = ""
 
81
    }
 
82
 
 
83
    function buildLensPage(lens) {
 
84
        pageLoader.source = "LensView.qml"
 
85
        /* Take advantage of the fact that the loaded qml is local and setting
 
86
           the source loads it immediately making pageLoader.item valid */
 
87
        pageLoader.item.model = lens
 
88
        activatePage(pageLoader.item)
82
89
    }
83
90
 
84
91
    function activateLens(lensId) {
85
 
        if (lensId == dashView.activeLens) {
86
 
            return
87
 
        }
88
 
 
89
 
        deactivateActiveLens()
90
92
        var lens = lenses.get(lensId)
91
93
        if (lens == null) {
92
94
            console.log("No match for lens: %1".arg(lensId))
93
95
            return
94
96
        }
95
97
 
 
98
        if (lensId == dashView.activeLens) {
 
99
            /* we don't need to activate the lens, just show its UI */
 
100
            buildLensPage(lens)
 
101
            return
 
102
        }
 
103
 
 
104
        deactivateActiveLens()
96
105
        lens.active = true
97
 
        pageLoader.source = "LensView.qml"
98
 
        /* Take advantage of the fact that the loaded qml is local and setting
99
 
           the source loads it immediately making pageLoader.item valid */
100
 
        pageLoader.item.model = lens
101
 
        activatePage(pageLoader.item)
 
106
        buildLensPage(lens)
102
107
        dashView.activeLens = lens.id
103
108
    }
104
109