banshee r4572 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4572 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- Date: Fri, 19 Sep 2008 01:23:53 +0000 (UTC)
Author: abock
Date: Fri Sep 19 01:23:53 2008
New Revision: 4572
URL: http://svn.gnome.org/viewvc/banshee?rev=4572&view=rev
Log:
2008-09-18 Aaron Bockover <abock gnome org>
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs:
Fix math for choosing the number of rows to influence the number of
columns for aesthetic column menu
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 Fri Sep 19 01:23:53 2008
@@ -257,10 +257,10 @@
}
uint max_items_per_column = 15;
- if (items > max_items_per_column) {
- if (items % 2 == 0 && items / 2 <= max_items_per_column) {
- max_items_per_column = items / 2;
- }
+ if (items >= max_items_per_column * 2) {
+ max_items_per_column = (uint)Math.Ceiling (items / 3.0);
+ } else if (items >= max_items_per_column) {
+ max_items_per_column = (uint)Math.Ceiling (items / 2.0);
}
uint column_count = (uint)Math.Ceiling (items / (double)max_items_per_column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]