[polari/gnotification] Use new GNotification API



commit cfbb21745826278d2200741e658eab5b0ab8c240
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Oct 10 19:13:38 2013 +0100

    Use new GNotification API

 src/chatView.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 79efec7..6c62cb0 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -384,8 +384,10 @@ const ChatView = new Lang.Class({
 
             if (!this._toplevelFocus) {
                 let summary = '%s %s'.format(this._room.display_name, nick);
-                let notification = new Notify.Notification(summary, text);
-                notification.show();
+                let notification = new Gio.Notification();
+                notification.set_title(summary);
+                notification.set_body(text);
+                this._app.send_notification(null, notification);
             }
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]