[banshee] NotificationArea: Only use supported tags in the notification message



commit 6c9a3fde6fb88a17598273364fc7eef6164a1ade
Author: Travis Glenn Hansen <travisghansen yahoo com>
Date:   Sun Oct 23 17:24:57 2011 +0200

    NotificationArea: Only use supported tags in the notification message
    
    The <span> tag is not part of the notification spec, and some
    notification servers (notably in gnome-shell) don't support it and just
    display it as-is. Use an <i> tag instead. Fixes bgo#649277
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 .../NotificationAreaService.cs                     |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
index ef510df..2e3ce0e 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
@@ -488,18 +488,11 @@ namespace Banshee.NotificationArea
             }
         }
 
-        private Cairo.Color TextLightColor {
-            get {
-                return Hyena.Gui.Theming.GtkTheme.GetCairoTextMidColor (notif_area.Widget);
-            }
-        }
-
         private string MarkupFormat (string fmt, params string [] args)
         {
             string [] new_args = new string [args.Length + 2];
-            new_args[0] = String.Format ("<span color=\"{0}\" size=\"small\">",
-                CairoExtensions.ColorGetHex (TextLightColor, false));
-            new_args[1] = "</span>";
+            new_args[0] = "<i>";
+            new_args[1] = "</i>";
 
             for (int i = 0; i < args.Length; i++) {
                 new_args[i + 2] = GLib.Markup.EscapeText (args[i]);



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