diff options
| author | Jeff Carr <[email protected]> | 2019-06-02 15:19:53 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-02 15:19:53 -0700 |
| commit | d6cc47ab94bf294b69116f9479b49f0302bfc7b5 (patch) | |
| tree | d6652d07ea5c1a9a004caa110848d1a509aad54f /tableCallbacks.go | |
| parent | 16008fefad4573af5e0c5bc9909f0e5114863ec6 (diff) | |
almost complete 'CLEAN'. yet more code refactoring
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
| -rw-r--r-- | tableCallbacks.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go index f71cabc..c4ab738 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -14,8 +14,6 @@ import "runtime" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" -// THIS IS CLEAN - func (mh *TableData) NumRows(m *ui.TableModel) int { if (Data.Debug) { log.Println("NumRows = mh.RowCount = ", mh.RowCount, "(last Row & Column =", mh.lastRow, mh.lastColumn, ")") @@ -110,11 +108,10 @@ func defaultSetCellValue(mh *TableData, row int, column int) { button := mh.Rows[row].HumanData[humanID].Button if (button != nil) { - if (Data.MouseClick != nil) { - Data.MouseClick(button) - } + guiButtonClick(button) return } + log.Println("defaultSetCellValue() ERROR: UNKNOWN BUTTON IN TABLE") if (Data.Debug) { panic("defaultSetCellValue() GOT AN UNKNOWN BUTTON CLICK IN TABLE") } |
