[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-treev-addrnhs

Back to archive index

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




ruby-gnome2-cvs メーリングリストの案内
Back to archive index