summaryrefslogtreecommitdiff
path: root/combobox.go
diff options
context:
space:
mode:
Diffstat (limited to 'combobox.go')
-rw-r--r--combobox.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/combobox.go b/combobox.go
index 5da5f35..059422d 100644
--- a/combobox.go
+++ b/combobox.go
@@ -44,10 +44,10 @@ func (c *Combobox) Selected() int {
return int(C.uiComboboxSelected(c.c))
}
-// SetChecked sets the currently select item in the Combobox
+// SetSelected sets the currently selected item in the Combobox
// to index. If index is -1 no item will be selected.
func (c *Combobox) SetSelected(index int) {
- C.uiComboboxSetSelected(c.c, C.intmax_t(index))
+ C.uiComboboxSetSelected(c.c, C.int(index))
}
// OnSelected registers f to be run when the user selects an item in