diff options
| author | Jeff Carr <[email protected]> | 2025-03-05 20:14:33 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-05 20:14:33 -0600 |
| commit | c572bb2f04d988ab4f988ea5cfb306e741734242 (patch) | |
| tree | 91aa7724c200cae34e9d2c1c623a6d182d41e83e /repo.test.go | |
| parent | 0c4bf8e9bb8269c357c707752d74e0e28f65ee44 (diff) | |
start passing guipb.Widget
Diffstat (limited to 'repo.test.go')
| -rw-r--r-- | repo.test.go | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/repo.test.go b/repo.test.go index 5ce8476..b970c75 100644 --- a/repo.test.go +++ b/repo.test.go @@ -10,7 +10,9 @@ package gitpb -import "go.wit.com/log" +import ( + "go.wit.com/lib/protobuf/guipb" +) /* func (mt *ReposTable) Delete() { @@ -27,6 +29,7 @@ func (mt *ReposTable) UpdateTable(pb *Repos) { // mt.parent.UpdateTable(pb) } +/* func (mt *ReposTable) lookupByWidgetId(id int) *Repo { log.Info("no shit. got to lookupWidgdetId() id =", id, "on mt", mt.GetUuid()) @@ -34,7 +37,7 @@ func (mt *ReposTable) lookupByWidgetId(id int) *Repo { for _, w := range r.Widgets { if int(w.Id) == id { log.Info("lookupByWidgetId() found id", id, w.Location) - return mt.x.Repos[w.Location.Y - 1] + return mt.x.Repos[w.Location.Y-1] } } } @@ -47,16 +50,18 @@ func (mt *ReposTable) lookupByWidgetId(id int) *Repo { log.Info("lookupByWidgetId() location was nil", id, w.Location) return nil } - return mt.x.Repos[w.Location.Y - 1] + return mt.x.Repos[w.Location.Y-1] } } } return nil } +*/ -func (mt *ReposTable) reposCustom(id int) { - repo := mt.lookupByWidgetId(id) +func (mt *ReposTable) reposCustom(w *guipb.Widget) { + // repo := mt.lookupByWidgetId(id) + repo := mt.x.Repos[w.Location.Y-1] mt.CustomFunc(repo) } |
