diff --git a/table.custom.go b/table.custom.go index 48eba29..abed9a5 100644 --- a/table.custom.go +++ b/table.custom.go @@ -12,22 +12,22 @@ package guipb import "go.wit.com/log" -func (pb *Tables) Custom(id int) { - log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", id) +func (pb *Tables) Custom(w *Widget) { + log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", w) if mycustom != nil { - mycustom(id) + mycustom(w) } } -func (pb *Table) Custom(id int) { - log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", id) +func (pb *Table) Custom(w *Widget) { + log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", w) if mycustom != nil { - mycustom(id) + mycustom(w) } } -var mycustom func(int) +var mycustom func(*Widget) -func (pb *Table) RegisterCustom(f func(int)) { +func (pb *Table) RegisterCustom(f func(*Widget)) { mycustom = f }