diff options
| author | Jeff Carr <[email protected]> | 2019-05-21 14:48:15 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-21 14:48:15 -0700 |
| commit | c3ba0117dfaeb2ba74a3abc5146e6cb8fcfac8e1 (patch) | |
| tree | cae472a486244fc16c79d44d4df4e3aa99e9267c /table.go | |
| parent | 7d01a72e590cd007129cd2379ccf4cc23a3ca4de (diff) | |
remove libui dependancy on ui.TableString type
Use standard golang 'string' instead of requiring every external
function that manipulates the UI actually need to import the libui
toolkit. This hopefully seperates the GUI from the data the GUI
displays. The libui code actually scans through the data and
updates the cells based on what is stored in memory so this
makes this seperation clean.
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -29,7 +29,8 @@ type RowData struct { // hmm. will this stand the test of time? type HumanCellData struct { Name string // what kind of row is this? - Text ui.TableString + // Text ui.TableString + Text string TextID int Color ui.TableColor ColorID int |
