Fix: Windows build

master
Crom (Thibaut CHARLES) 8 years ago
parent df832b023b
commit b14dc6b44f
  1. 22
      source/app.d

@ -34,17 +34,27 @@ void main(string[] args)
window.add(cont);
cont.setSizeRequest(300, 200);
auto buttonSave = new Button("document-save-symbolic", GtkIconSize.MENU);
version(Windows){
auto buttonSave = new Button(StockID.SAVE, true);
auto buttonOpen = new Button(StockID.OPEN, true);
auto buttonInsert = new Button(StockID.JUMP_TO, true);
auto buttonDelete = new Button(StockID.DELETE, true);
auto buttonRenumber = new Button(StockID.INDEX, true);
auto buttonNewCol = new Button(StockID.NEW, true);
}
else{
auto buttonSave = new Button("document-save-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 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);
}
buttonSave.setTooltipText("Save");
auto buttonOpen = new Button("document-open-symbolic", GtkIconSize.MENU);
buttonOpen.setTooltipText("Open 2DA");
auto buttonInsert = new Button("format-text-direction-ltr-symbolic", GtkIconSize.SMALL_TOOLBAR);
buttonInsert.setTooltipText("Insert row after");
auto buttonDelete = new Button("user-trash-symbolic", GtkIconSize.SMALL_TOOLBAR);
buttonDelete.setTooltipText("Delete row");
auto buttonRenumber = new Button("view-list-symbolic", GtkIconSize.SMALL_TOOLBAR);
buttonRenumber.setTooltipText("Renumber all rows");
auto buttonNewCol = new Button("tab-new-symbolic", GtkIconSize.SMALL_TOOLBAR);
buttonNewCol.setTooltipText("Add new column");
version(Windows){

Loading…
Cancel
Save