[chronojump] Fixed checkboxes in genericWin
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed checkboxes in genericWin
- Date: Fri, 15 Mar 2013 08:25:36 +0000 (UTC)
commit 89b67818dcf87d0a9ec9c52e1d65586df78d08e9
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Mar 15 09:25:20 2013 +0100
Fixed checkboxes in genericWin
src/gui/genericWindow.cs | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/gui/genericWindow.cs b/src/gui/genericWindow.cs
index 849d044..1035fec 100644
--- a/src/gui/genericWindow.cs
+++ b/src/gui/genericWindow.cs
@@ -334,9 +334,11 @@ public class GenericWindow
prepareHeaders(columnsString, addCheckbox);
nonSensitiveRows = myNonSensitiveRows;
-
+
+Log.WriteLine("aaaaaaaaaaaaaaaa1");
foreach (string [] line in data)
store.AppendValues (line);
+Log.WriteLine("aaaaaaaaaaaaaaaa2");
treeview.CursorChanged += on_treeview_cursor_changed;
if(contextMenu) {
@@ -361,9 +363,6 @@ public class GenericWindow
private TreeStore getStore (int columns, bool addCheckbox)
{
- //if(addCheckbox)
- // columns++;
-
//prepares the TreeStore for required columns
Type [] types = new Type [columns];
@@ -383,7 +382,7 @@ public class GenericWindow
treeview.HeadersVisible=true;
int i=0;
//bool visible = false;
- bool visible = true;
+bool visible = true;
foreach(string myCol in columnsString) {
if(addCheckbox && i == 1)
createCheckboxes(treeview);
@@ -430,7 +429,7 @@ public class GenericWindow
crt.Active = true;
crt.Toggled += ItemToggled;
- TreeViewColumn column = new TreeViewColumn ("", crt, "active", 0);
+ TreeViewColumn column = new TreeViewColumn ("", crt, "active", 1);
column.Clickable = true;
tv.AppendColumn (column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]