ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 12日 (水) 00:33:34 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -95,6 +95,8 @@ return unless iter = store.iter_first #<-- same as: iter = store.get_iter("0") all_selections = treeview.selection # <--- obtain all selections from TreeView + # --- better name than {{ all_selections }} would + # --- be {{ treeview_selection_obj }} begin puts "Product: #{iter[2]} Buy:#{iter[0]}" if ! all_selections.iter_is_selected?(iter) end while iter.next! # =-==============-=======================