ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 16日 (木) 07:25:55 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -415,9 +415,9 @@ # -------------------------------------------------------------------- (sorting) -s- (2/2) ---- setup_tree_view(treeview, store) # NOTE: sorting requires model arrgument too - # Gtk::TreeSortable#set_sort_column_id + # You could set also this Gtk::TreeSortable#set_sort_column_id here however it is redundant # ------------------------------------ - store.set_sort_column_id(sort_column_id=PRODUCT, order = Gtk::SORT_ASCENDING) + # store.set_sort_column_id(sort_column_id=PRODUCT, order = Gtk::SORT_ASCENDING) # redundant # The following signal could have also been coded in the {{ setup_tree_view() }} store.signal_connect('sort-column-changed') { puts "Sort order has bsen reversed " }