diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/iwidgets/combobox.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/combobox.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/combobox.rb b/ext/tk/lib/tkextlib/iwidgets/combobox.rb index ca0e57c233..1cf10b4004 100644 --- a/ext/tk/lib/tkextlib/iwidgets/combobox.rb +++ b/ext/tk/lib/tkextlib/iwidgets/combobox.rb @@ -82,7 +82,7 @@ class Tk::Iwidgets::Combobox def sort(*params, &b) # see 'lsort' man page about params if b - tk_call(@path, 'sort', *params, -'command', proc(&b)) + tk_call(@path, 'sort', '-command', proc(&b), *params) else tk_call(@path, 'sort', *params) end @@ -91,6 +91,7 @@ class Tk::Iwidgets::Combobox def sort_ascending tk_call(@path, 'sort', 'ascending') self + end def sort_descending tk_call(@path, 'sort', 'descending') self |