[longomatch] Reduce buttons to 5 per row
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Reduce buttons to 5 per row
- Date: Mon, 7 Jul 2014 11:28:18 +0000 (UTC)
commit 473a5f32245058d45bc7accf7cadef2f3606723b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Jun 10 11:19:02 2014 +0200
Reduce buttons to 5 per row
LongoMatch.GUI/Gui/Component/ButtonsWidget.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs b/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
index b576d2b..5761ce3 100644
--- a/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
@@ -36,6 +36,7 @@ namespace LongoMatch.Gui.Component
{
TagMode tagMode;
Dictionary<ButtonTagger, Category> buttonsDic;
+ const int N_COLUMNS = 5;
public ButtonsWidget()
{
@@ -80,8 +81,8 @@ namespace LongoMatch.Gui.Component
buttonsDic.Clear();
int sectionsCount = categories.Count;
- table1.NColumns =(uint) 10;
- table1.NRows =(uint)(sectionsCount/10);
+ table1.NColumns =(uint) N_COLUMNS;
+ table1.NRows =(uint)(sectionsCount/N_COLUMNS);
for(int i=0; i<sectionsCount; i++) {
Category cat = categories[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]