Compare commits
No commits in common. "e6e2e7a3bfc73bb0a564d46acf9f0d8c63e44b46" and "050c59d8d2f2212cbf5086d0ccf55e9feaa4b13e" have entirely different histories.
e6e2e7a3bf
...
050c59d8d2
|
@ -10,6 +10,6 @@ go.wit.com/gui/gadgets/repostatus
|
||||||
go.wit.com/gui/digitalocean
|
go.wit.com/gui/digitalocean
|
||||||
go.wit.com/gui/cloudflare
|
go.wit.com/gui/cloudflare
|
||||||
|
|
||||||
go.wit.com/apps/control-panel-dns
|
go.wit.com/apps/control-panel-dns main
|
||||||
go.wit.com/apps/control-panel-vpn
|
go.wit.com/apps/control-panel-vpn
|
||||||
go.wit.com/apps/autotypist
|
go.wit.com/apps/autotypist
|
||||||
|
|
25
repolist.go
25
repolist.go
|
@ -4,6 +4,10 @@ package main
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"go.wit.com/log"
|
||||||
|
|
||||||
|
"go.wit.com/apps/control-panel-dns/smartwindow"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (r *repo) getPath() string {
|
func (r *repo) getPath() string {
|
||||||
|
@ -29,6 +33,27 @@ func splitLine(line string) (string, string, string, string) {
|
||||||
return path, master, devel, user
|
return path, master, devel, user
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This creates a window
|
||||||
|
func hellosmart() {
|
||||||
|
win := smartwindow.New()
|
||||||
|
win.SetParent(myGui)
|
||||||
|
win.InitWindow()
|
||||||
|
win.Title("hellosmart test")
|
||||||
|
win.Vertical()
|
||||||
|
win.SetDraw(smartDraw)
|
||||||
|
win.Make()
|
||||||
|
|
||||||
|
win.Box().NewButton("test smartwindow", func () {
|
||||||
|
log.Println("smart")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func smartDraw(sw *smartwindow.SmartWindow) {
|
||||||
|
sw.Box().NewButton("hello", func () {
|
||||||
|
log.Println("smart")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
func myrepolist() []string {
|
func myrepolist() []string {
|
||||||
content, _ := ioutil.ReadFile("/home/jcarr/.config/myrepolist")
|
content, _ := ioutil.ReadFile("/home/jcarr/.config/myrepolist")
|
||||||
out := string(content)
|
out := string(content)
|
||||||
|
|
|
@ -10,6 +10,6 @@ go.wit.com/gui/gadgets/repostatus
|
||||||
go.wit.com/gui/digitalocean
|
go.wit.com/gui/digitalocean
|
||||||
go.wit.com/gui/cloudflare
|
go.wit.com/gui/cloudflare
|
||||||
|
|
||||||
go.wit.com/apps/control-panel-dns
|
go.wit.com/apps/control-panel-dns main
|
||||||
go.wit.com/apps/control-panel-vpn
|
go.wit.com/apps/control-panel-vpn
|
||||||
go.wit.com/apps/autotypist
|
go.wit.com/apps/autotypist
|
||||||
|
|
Loading…
Reference in New Issue