diff --git a/action.go b/action.go index 4ea2d85..31ed5ab 100644 --- a/action.go +++ b/action.go @@ -47,7 +47,7 @@ type Action struct { type ActionType int // Add, SetText, Click, Hide, Append, Delete, etc const ( - Add ActionType = iota + Add ActionType = iota + 1 Delete SetText AddText diff --git a/widget.go b/widget.go index 2ff7773..e80d113 100644 --- a/widget.go +++ b/widget.go @@ -16,7 +16,7 @@ package widget type WidgetType int // Button, Menu, Checkbox, etc. const ( - Unknown WidgetType = iota + Unknown WidgetType = iota + 1 Root // the master 'root' node of the binary tree Flag // used to send configuration values to plugins Window // in certain gui's (ncurses), these are tabs