diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-11 21:29:20 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-11 21:29:20 -0400 |
| commit | 68ffb808678159b8810c8ed093c0458316d3f8f2 (patch) | |
| tree | 5bda3855b4b6cafc1f39bdbc66204a44493896e3 /combobox.go | |
| parent | 5ab5777d4cbfe6490760ef4e618bd5fe80a20bea (diff) | |
More control migration.
Diffstat (limited to 'combobox.go')
| -rw-r--r-- | combobox.go | 4 |
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 |
