Permalink
Browse files

Reimplemented notifications

  • Loading branch information...
1 parent 5c2b928 commit c6e28411d63894ea47cc7b2a82e5d868137d8c43 @glebihan glebihan committed Dec 14, 2011
Showing with 19 additions and 690 deletions.
  1. +1 −1 js/ui/layout.js
  2. +2 −2 js/ui/main.js
  3. +15 −686 js/ui/messageTray.js
  4. +1 −1 js/ui/overview.js
View
@@ -194,7 +194,7 @@ LayoutManager.prototype = {
if (this._trayBarrier)
global.destroy_pointer_barrier(this._trayBarrier);
- if (Main.messageTray) {
+ if (Main.messageTray && Main.messageTray.actor) {
this._trayBarrier =
global.create_pointer_barrier(monitor.x + monitor.width, monitor.y,
monitor.x + monitor.width, monitor.y + Main.messageTray.actor.height,
View
@@ -214,7 +214,7 @@ function start() {
statusIconDispatcher = new StatusIconDispatcher.StatusIconDispatcher();
panel = new Panel.Panel();
wm = new WindowManager.WindowManager();
- //messageTray = new MessageTray.MessageTray();
+ messageTray = new MessageTray.MessageTray();
keyboard = new Keyboard.Keyboard();
notificationDaemon = new NotificationDaemon.NotificationDaemon();
windowAttentionHandler = new WindowAttentionHandler.WindowAttentionHandler();
@@ -480,7 +480,7 @@ function loadTheme() {
*/
function notify(msg, details) {
let source = new MessageTray.SystemNotificationSource();
- //messageTray.add(source);
+ messageTray.add(source);
let notification = new MessageTray.Notification(source, msg, details);
notification.setTransient(true);
source.notify(notification);
Oops, something went wrong.

0 comments on commit c6e2841

Please sign in to comment.