start passing guipb.Widget
This commit is contained in:
parent
0c4bf8e9bb
commit
c572bb2f04
11
repo.test.go
11
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())
|
||||
|
||||
|
@ -54,9 +57,11 @@ func (mt *ReposTable) lookupByWidgetId(id int) *Repo {
|
|||
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue