[polari/gnotification] Use new GNotification API



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

    Use new GNotification API

 src/Makefile.am |    1 -
 src/chatView.js |    6 ++-
 src/notify.js   |   89 -------------------------------------------------------
 3 files changed, 4 insertions(+), 92 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index ec8845e..e22c6ea 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -37,7 +37,6 @@ dist_js_DATA = \
        joinDialog.js \
        main.js \
        mainWindow.js \
-       notify.js \
        pasteManager.js \
        roomList.js \
        tabCompletion.js \
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]