[gnome-shell] Always make notifications with '\n' in bannerText expandable



commit f9c5202dd14d772915be350a5560aca61c2d6e5b
Author: Florian Müllner <fmuellner src gnome org>
Date:   Mon Feb 22 22:05:42 2010 +0100

    Always make notifications with '\n' in bannerText expandable
    
    Right now notifications are expandable if the length of bannerText
    exceeds the notification's width - however, if bannerText contains
    newlines, it should be expandable regardless of the length.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=610549

 js/ui/messageTray.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 2b11387..2907f92 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -287,7 +287,8 @@ Notification.prototype = {
                 overflow = true;
         }
 
-        if (overflow && this._bannerBodyText)
+        if (this._bannerBodyText &&
+            (overflow || this._bannerBodyText.indexOf('\n') > -1))
             this._addBannerBody();
     },
 



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