Merge lp:~mardy/unity-2d/launcher-bg into lp:unity-2d

Proposed by Alberto Mardegan
Status: Merged
Approved by: Florian Boucault
Approved revision: 768
Merged at revision: 767
Proposed branch: lp:~mardy/unity-2d/launcher-bg
Merge into: lp:unity-2d
Diff against target: 33 lines (+9/-3)
2 files modified
libunity-2d-private/Unity2d/GnomeBackground.qml (+6/-2)
libunity-2d-private/src/blendedimageprovider.cpp (+3/-1)
To merge this branch: bzr merge lp:~mardy/unity-2d/launcher-bg
Reviewer Review Type Date Requested Status
Florian Boucault Pending
Review via email: mp+80029@code.launchpad.net

Description of the change

[launcher] Display GNOME background when running in non composite mode

Fix the loading of the background, as well as its positioning inside of the GnomeBackground QML item.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libunity-2d-private/Unity2d/GnomeBackground.qml'
--- libunity-2d-private/Unity2d/GnomeBackground.qml 2011-09-21 12:19:17 +0000
+++ libunity-2d-private/Unity2d/GnomeBackground.qml 2011-10-21 08:40:30 +0000
@@ -82,8 +82,12 @@
82 height: screen.geometry.height82 height: screen.geometry.height
8383
84 smooth: true84 smooth: true
85 x: screen.availableGeometry.x - declarativeView.globalPosition.x85
86 y: -screen.availableGeometry.y86 /* by default, place the background on top of the desktop background,
87 no matter where the DeclarativeView or the parent object are placed.
88 */
89 x: parent.mapFromItem(null, -declarativeView.globalPosition.x, 0).x
90 y: parent.mapFromItem(null, 0, -declarativeView.globalPosition.y).y
8791
88 /* Possible modes are:92 /* Possible modes are:
89 - "wallpaper"93 - "wallpaper"
9094
=== modified file 'libunity-2d-private/src/blendedimageprovider.cpp'
--- libunity-2d-private/src/blendedimageprovider.cpp 2011-07-29 13:49:34 +0000
+++ libunity-2d-private/src/blendedimageprovider.cpp 2011-10-21 08:40:30 +0000
@@ -45,7 +45,9 @@
4545
46 /* Merge baseUrl with fileName. If fileName is an absolute path, the result46 /* Merge baseUrl with fileName. If fileName is an absolute path, the result
47 will be fileName itself. */47 will be fileName itself. */
48 fileName = m_baseUrl.resolved(QUrl::fromLocalFile(fileName)).toLocalFile();48 QUrl unresolved = fileName.startsWith("file:") ?
49 QUrl(fileName) : QUrl::fromLocalFile(fileName);
50 fileName = m_baseUrl.resolved(unresolved).toLocalFile();
4951
50 QString colorName = list[2];52 QString colorName = list[2];
51 if (!QColor::isValidColor(colorName)) {53 if (!QColor::isValidColor(colorName)) {

Subscribers

People subscribed via source and target branches