fix: Column name when adding new, better insert icon

This commit is contained in:
Crom (Thibaut CHARLES) 2015-03-13 10:04:47 +01:00
parent f899a72a85
commit dacb8310e9
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class Window : MainWindow{
auto buttonSave = new Button("document-save-symbolic", GtkIconSize.MENU);
auto buttonSaveAs = new Button("document-save-as-symbolic", GtkIconSize.MENU);
auto buttonOpen = new Button("document-open-symbolic", GtkIconSize.MENU);
auto buttonInsert = new Button("format-text-direction-ltr-symbolic", GtkIconSize.SMALL_TOOLBAR);
auto buttonInsert = new Button("list-add-symbolic", GtkIconSize.SMALL_TOOLBAR);
auto buttonDelete = new Button("user-trash-symbolic", GtkIconSize.SMALL_TOOLBAR);
auto buttonRenumber = new Button("view-list-symbolic", GtkIconSize.SMALL_TOOLBAR);
auto buttonNewCol = new Button("tab-new-symbolic", GtkIconSize.SMALL_TOOLBAR);
@ -187,7 +187,7 @@ class Window : MainWindow{
foreach(i ; 0..tree.getNColumns){
auto col = tree.getColumn(i);
writeln("col",i,"=",col, "(", col is null? "" : col.getTitle, ")");
writeln("col",i,"=",col, "(", col is null? "" : col.getTitle.replace("__", "_"), ")");
}
@ -202,7 +202,7 @@ class Window : MainWindow{
storeIndex~= getColumnStoreIndex(tree, 0)>=0?getColumnStoreIndex(tree, 0):0;
auto col = tree.getColumn(0);
if(col !is null) titles~= tree.getColumn(0).getTitle;
if(col !is null) titles~= tree.getColumn(0).getTitle.replace("__", "_");
else titles~= "ERR";
tree.removeColumn(tree.getColumn(0));
}