summaryrefslogtreecommitdiff
path: root/globalBuildOptions.go
diff options
context:
space:
mode:
Diffstat (limited to 'globalBuildOptions.go')
-rw-r--r--globalBuildOptions.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/globalBuildOptions.go b/globalBuildOptions.go
index 5694a70..f54e8e4 100644
--- a/globalBuildOptions.go
+++ b/globalBuildOptions.go
@@ -29,26 +29,26 @@ func globalBuildOptions(box *gui.Node) {
grid := groupvbox.NewGrid("buildOptions",2, 1)
me.mainBranch = gadgets.NewBasicCombobox(grid, "default main branch")
- me.mainBranch.Add("guimain")
- me.mainBranch.Add("gitea server default")
+ me.mainBranch.AddText("guimain")
+ me.mainBranch.AddText("gitea server default")
me.mainBranch.Disable()
me.develBranch = gadgets.NewBasicCombobox(grid, "default devel branch")
- me.develBranch.Add("devel")
+ me.develBranch.AddText("devel")
me.userBranch = gadgets.NewBasicCombobox(grid, "default user branch")
- me.userBranch.Add("jcarr")
+ me.userBranch.AddText("jcarr")
// select the branch you want to test, build and develop against
// this lets you select your user branch, but, when you are happy
// you can merge everything into the devel branch and make sure it actually
// works. Then, when that is good, merge and version everything in master
guiBranch := gadgets.NewBasicCombobox(grid, "Set Current Working Branch")
- guiBranch.Add("guimaster")
- guiBranch.Add("guidevel")
- guiBranch.Add("jcarr")
+ guiBranch.AddText("guimaster")
+ guiBranch.AddText("guidevel")
+ guiBranch.AddText("jcarr")
guiBranch.Custom = func () {
- me.toMoveToBranch = guiBranch.Get()
+ me.toMoveToBranch = guiBranch.String()
setCurrentBranch.Set("set all branches to " + me.toMoveToBranch)
me.mainBranch.Disable()
}