From 68ffb808678159b8810c8ed093c0458316d3f8f2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 11 Aug 2018 21:29:20 -0400 Subject: More control migration. --- combobox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'combobox.go') 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 -- cgit v1.2.3