banshee r5060 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Sources.Gui



Author: blorentz
Date: Mon Feb 23 10:55:41 2009
New Revision: 5060
URL: http://svn.gnome.org/viewvc/banshee?rev=5060&view=rev

Log:
2009-02-23  Bertrand Lorentz  <bertrand lorentz gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs:
	Fix a visual glitch when sidebar is very narrow. Patch from Neil Loknath
	with code formatting fixes by me (BGO #524705).



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs	Mon Feb 23 10:55:41 2009
@@ -168,6 +168,10 @@
 
             max_title_layout_width = cell_area.Width - (icon == null ? 0 : icon.Width) - count_layout_width - 10;
             
+            if (!hide_counts && max_title_layout_width < 0) {
+                hide_counts = true;
+            }
+			
             title_layout.FontDescription = fd;
             title_layout.Width = (int)(max_title_layout_width * Pango.Scale.PangoScale);
             title_layout.Ellipsize = EllipsizeMode.End;



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