@@ -36,7 +36,7 @@ Item {
36 property var hints
36 property var hints
37 property var notification
37 property var notification
38 property color color
38 property color color
39− property bool fullscreen
39+ property bool fullscreen: false
40 property int maxHeight
40 property int maxHeight
41 property int margins
41 property int margins
42 property Gradient greenGradient : Gradient {
42 property Gradient greenGradient : Gradient {
@@ -48,7 +48,6 @@ Item {
48 GradientStop { position: 1.0; color: "#4d4745" }
48 GradientStop { position: 1.0; color: "#4d4745" }
52 objectName: "background"
51 objectName: "background"
53 implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : contentColumn.height + contentColumn.spacing * 2) : 0
52 implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : contentColumn.height + contentColumn.spacing * 2) : 0
@@ -80,7 +79,7 @@ Item {
82 objectName: "sound"
81 objectName: "sound"
83− source: hints["suppress-sound"] != "" ? hints["sound-file"] : undefined
82+ source: hints["suppress-sound"] != "true" && hints["sound-file"] != undefined ? hints["sound-file"] : ""
86 onOpacityChanged: {
85 onOpacityChanged: {
@@ -159,9 +158,17 @@ Item {
159 UnityMenuModel {
158 UnityMenuModel {
160 id: unityMenuModel
159 id: unityMenuModel
161+ property string lastNameOwner: ""
162 busName: paths.busName
163 busName: paths.busName
163 actions: paths.actions
164 actions: paths.actions
164 menuObjectPath: paths.menuObjectPath
165 menuObjectPath: paths.menuObjectPath
166+ onNameOwnerChanged: {
167+ if (lastNameOwner != "" && nameOwner == "" && notification.notification != undefined) {
168+ notification.notification.close()
170+ lastNameOwner = nameOwner
167 Behavior on implicitHeight {
174 Behavior on implicitHeight {
@@ -272,14 +279,18 @@ Item {
275 objectName: "dialogListView"
283 objectName: "dialogListView"
276 spacing: units.gu(2)
284 spacing: units.gu(2)
278 visible: count > 0
286 visible: count > 0
280− anchors.left: parent.left; anchors.right: parent.right
290+ right: parent.right
281− anchors.top: fullscreen ? parent.top : undefined
291+ top: fullscreen ? parent.top : undefined
282− anchors.bottom: fullscreen ? parent.bottom : undefined
292+ bottom: fullscreen ? parent.bottom : undefined
284 Repeater {
295 Repeater {
285 model: unityMenuModel
296 model: unityMenuModel
@@ -287,7 +298,10 @@ Item {
287 NotificationMenuItemFactory {
298 NotificationMenuItemFactory {
288 id: menuItemFactory
299 id: menuItemFactory
290− anchors.left: parent.left; anchors.right: parent.right
301+ anchors {
302+ left: dialogColumn.left
303+ right: dialogColumn.right
292 menuModel: unityMenuModel
306 menuModel: unityMenuModel
293 menuData: model
307 menuData: model