ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 2日 (火) 04:59:46 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -828,5 +828,8 @@ :You can safely ignore the following comment: (If you add a child called 'Key Pad' with the additional price $20.0, to the existing leaf product 'Keyboard' which originally had the price $50.0, the insertion would simply create a single child for the newly promoted parent, correctly adding the child's price the original price of the keyboard ($50.0), so the total value of the new keyboard would now be $70.0. The value of any other higher level totals as well as the grand total for the top level product would also be correctly updated.) +The accumulative nature of the product prices is handled with the((*fix_parent_row_prices*))method, which is used for both additions and removal of products from our tree view. Programmer only needs to supply negative price argument to the method when removing a product. (Note, that the model is not effected by these price manipulation processes.) + + #### path = /(.+)(:\d+)/ =~ path ? $1 : $2 #### BUG? Gtk::TreePath#up! <<< doesn't work