summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 15:33:17 -0500
committerJeff Carr <[email protected]>2025-09-11 15:33:17 -0500
commit7b84ddd64bb7e8a068cf5c0157bc084e1edb3ef1 (patch)
treed5591440b3217e8f916675b12f2de4ae5082c806
parent6acc0b4f8bd793ae394060981ff10c43eab0bed6 (diff)
add Namespace
-rw-r--r--structs.go1
-rw-r--r--windowControlBox.go9
2 files changed, 9 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index b648572..eee4cb1 100644
--- a/structs.go
+++ b/structs.go
@@ -30,6 +30,7 @@ type controlBox struct {
Maintainer *gadgets.OneLiner
Packager *gadgets.BasicEntry
GoPath *gadgets.BasicEntry
+ Namespace *gadgets.BasicEntry
URL *gadgets.BasicEntry
Architecture *gadgets.BasicDropdown
InstallPath *gadgets.BasicCombobox
diff --git a/windowControlBox.go b/windowControlBox.go
index c5637a2..b8d88df 100644
--- a/windowControlBox.go
+++ b/windowControlBox.go
@@ -22,7 +22,7 @@ func makebasicWindow() *gadgets.BasicWindow {
box1 := win.Box()
// me.cBox = newControl(box1)
- newControl(box1)
+ cbox := newControl(box1)
vbox := box1.Box().Horizontal()
group1 := vbox.NewGroup("controls").Horizontal() // Vertical()
@@ -38,6 +38,9 @@ func makebasicWindow() *gadgets.BasicWindow {
group1.NewButton("write control file", func() {
writeDebianControlFile(me.repo)
})
+ group1.NewButton("update gui", func() {
+ updateControl(cbox)
+ })
group1.NewButton("Make .deb", func() {
win.Disable()
@@ -98,6 +101,9 @@ func newControl(parent *gui.Node) *controlBox {
c.GoPath = gadgets.NewBasicEntry(c.grid, "GoPath")
c.grid.NextRow()
+ c.Namespace = gadgets.NewBasicEntry(c.grid, "Namespace")
+ c.grid.NextRow()
+
c.URL = gadgets.NewBasicEntry(c.grid, "URL")
c.grid.NextRow()
@@ -120,5 +126,6 @@ func newControl(parent *gui.Node) *controlBox {
}
func updateControl(c *controlBox) {
+ c.Namespace.SetText(me.repo.Namespace)
c.URL.SetText(me.repo.URL)
}