banshee r5123 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Addins.Gui



Author: blorentz
Date: Mon Mar  9 17:25:50 2009
New Revision: 5123
URL: http://svn.gnome.org/viewvc/banshee?rev=5123&view=rev

Log:
2009-03-09  Bertrand Lorentz  <bertrand lorentz gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinView.cs: Patch
	from Alexander Kojevnikov fixing a visual glitch in the extension
	manager (BGO #531575).



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinView.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinView.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinView.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinView.cs	Mon Mar  9 17:25:50 2009
@@ -118,13 +118,14 @@
                 Allocation.Width, Parent.Allocation.Height);
             
             if (!va.Contains (ta)) {
-                double y_pos = scroll.Vadjustment.Value + (ta.Top > va.Top ? ta.Height : -ta.Height);
-                /*if (y_pos > Parent.Allocation.Height) {
-                    y_pos = scroll.Vadjustment.Upper;
-                } else if (y_pos < scroll.Vadjustment.Lower) {
-                    y_pos = scroll.Vadjustment.Lower;
-                }*/
-                scroll.Vadjustment.Value = y_pos;
+                double delta = 0.0;
+                if (ta.Bottom > va.Bottom) {
+                    delta = ta.Bottom - va.Bottom;
+                } else if (ta.Top < va.Top) {
+                    delta = ta.Top - va.Top;
+                }
+                scroll.Vadjustment.Value += delta;
+                QueueDraw();
             }
         }
         



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