@@ -16,7 +16,7 @@
17import QtQuick 2.0
17import QtQuick 2.0
18import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
19−import NotificationsBackend 1.0
19+import Unity.Notifications 1.0
21UbuntuShape {
21UbuntuShape {
22 id: notification
22 id: notification
@@ -28,7 +28,7 @@ UbuntuShape {
28 property var actions
28 property var actions
29 property var notificationId
29 property var notificationId
30 property var type
30 property var type
31− property var notification
31+ property var notificationobj
33 signal actionInvoked(string buttonId)
33 signal actionInvoked(string buttonId)
@@ -47,7 +47,7 @@ UbuntuShape {
47 anchors.fill: contentColumn
47 anchors.fill: contentColumn
48 objectName: "interactiveArea"
48 objectName: "interactiveArea"
49 enabled: notification.type == Notification.Interactive
49 enabled: notification.type == Notification.Interactive
50− onClicked: notificationRenderer.model.triggerAction(notificationId, actionRepeater.model.actionId(0))
50+ onClicked: notification.notificationobj.invokeAction(actionRepeater.model.actionId(0))
@@ -153,7 +153,7 @@ UbuntuShape {
153 width: (buttonRow.width - buttonRow.spacing) / 2
153 width: (buttonRow.width - buttonRow.spacing) / 2
154 height: units.gu(4)
154 height: units.gu(4)
155 text: label
155 text: label
156− onClicked: notificationRenderer.model.triggerAction(notificationId, id)
156+ onClicked: notification.notificationobj.invokeAction(id)