ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 26日 (日) 08:44:14 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -81,7 +81,7 @@ def traverse_list_to_print_all_rows(store) # get first row in list store - return unless iter = store.iter_first + return unless iter = store.iter_first #<-- same as: iter = store.get_iter("0") begin puts "Product: #{iter[2]} Buy:#{iter[0]}" @@ -92,7 +92,7 @@ def print_only_unselected_rows(store, treeview) # get first row in list store - return unless iter = store.iter_first + return unless iter = store.iter_first #<-- same as: iter = store.get_iter("0") all_selections = treeview.selection # <--- obtain all selections from TreeView begin