banshee r5020 - in branches/banshee/stable: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r5020 - in branches/banshee/stable: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- Date: Mon, 9 Feb 2009 20:59:03 +0000 (UTC)
Author: gburt
Date: Mon Feb 9 20:59:03 2009
New Revision: 5020
URL: http://svn.gnome.org/viewvc/banshee?rev=5020&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:
branches/banshee/stable/ (props changed)
branches/banshee/stable/ChangeLog
branches/banshee/stable/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
Modified: branches/banshee/stable/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
==============================================================================
--- branches/banshee/stable/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs (original)
+++ branches/banshee/stable/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs Mon Feb 9 20:59:03 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]