fix: Column name when adding new, better insert icon

master
Crom (Thibaut CHARLES) 8 years ago
parent f899a72a85
commit dacb8310e9
  1. 6
      source/window.d

@ -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));
}

Loading…
Cancel
Save