ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 26日 (日) 09:34:53 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -577,7 +577,6 @@ 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) qty_value = iter[QTY_INDEX] qty_value += quantity iter[QTY_INDEX] = qty_value