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

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 26日 (日) 09:34:27 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs
-------------------------
@@ -574,7 +574,7 @@
 
 It is worth noticing the comment here which tells us that the Gtk::TreeIter#[column] and Gtk::TreeModel#set_value instance methods can be used interchangeably.
 
-Lastly if the user checked the "Buy the product" check button, we need to recalculate the total number of items for the parent (product category). Here we now re-use the saved "path" for this product category (parent) record, and update it with the new quantity:
+Lastly if the user checked the "Buy the product" check button, we need to recalculate the total number of items for the parent (product category). Our((*iter*))variable still points to the product category row, so we update it with the newly added value for our "Count" column, which we unfortunately call "quantity" in our code:
 
  if buy
    iter = model.get_iter(path)




ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index