banshee r5019 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r5019 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- Date: Mon, 9 Feb 2009 20:56:19 +0000 (UTC)
Author: gburt
Date: Mon Feb 9 20:56:18 2009
New Revision: 5019
URL: http://svn.gnome.org/viewvc/banshee?rev=5019&view=rev
Log:
2009-02-09 Gabriel Burt <gabriel burt gmail com>
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs:
Check for a very small change in the remaining width in the column size
calculation to avoid an infinite loop.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs (original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs Mon Feb 9 20:56:18 2009
@@ -230,6 +230,10 @@
column_cache[i].ElasticWidth += delta;
}
+ if (Math.Abs (total_width - remaining_width) < 1.0) {
+ Hyena.Log.Warning ("Forcefully breaking out of RCS loop b/c change in total_width less than 1.0");
+ return 0;
+ }
return Math.Round (remaining_width);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]