[banshee] Remove commented-out custom drawing for header toolbar



commit a6c9a11f4a5264af246e6d3b1cfb2f63b06e3dd8
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sun Sep 22 19:19:24 2013 +0200

    Remove commented-out custom drawing for header toolbar
    
    The toolbar looks good with the default Adwaita theme in GNOME 3.8, so
    we won't need any custom drawing anymore.
    
    With earlier versions of GNOME 3, there was an ugly border around the
    toolbar, so I had kept the custom drawing code from GTK 2, in case we
    needed it again.

 src/Clients/Nereid/Nereid/PlayerInterface.cs       |    5 -----
 .../Banshee.Gui/BaseClientWindow.cs                |   17 -----------------
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index ffe8c04..a07c320 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -458,11 +458,6 @@ namespace Nereid
                     }
                 }
             };
-
-            if (!PlatformDetection.IsMeeGo) {
-                // FIXME: confirm that this is not needed anymore
-                //header_toolbar.ExposeEvent += OnToolbarExposeEvent;
-            }
         }
 
 #endregion
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs 
b/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
index 14eac49..a801c2f 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
@@ -211,22 +211,5 @@ namespace Banshee.Gui
 
             OnTitleChanged ();
         }
-
-        // FIXME: confirm that this is not needed anymore
-        /*protected void OnToolbarExposeEvent (object o, ExposeEventArgs args)
-        {
-            Toolbar toolbar = (Toolbar)o;
-
-            // This forces the toolbar to look like it's just a regular part
-            // of the window since the stock toolbar look makes Banshee look ugly.
-            Style.ApplyDefaultBackground (toolbar.GdkWindow, true, State,
-                args.Event.Area, toolbar.Allocation.X, toolbar.Allocation.Y,
-                toolbar.Allocation.Width, toolbar.Allocation.Height);
-
-            // Manually expose all the toolbar's children
-            foreach (Widget child in toolbar.Children) {
-                toolbar.PropagateExpose (child, args.Event);
-            }
-        }*/
     }
 }


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