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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 10月 9日 (火) 02:31:06 JST


-------------------------
REMOTE_ADDR = 184.145.82.7
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-crs
-------------------------
@@ -324,6 +324,7 @@
     When user actions affect cells in different tree view rows, obviously references to their respective positions within the model need to be maintained and/or memorized. However, when all the children rows of a parent node have to be traversed you can expect some kind of 'tree view iter arithmetic' will have to be employed. This iter and path manipulation (arithmetic) is not new to us. We have already encountered it in quite a few places in section [8.4] ((<(Adding Rows and Handling Selections)|tut-gtk2-treev-addrnhs>)), particularly in the 'treev-MultiDim-loadASCItable-add-n-rm-rows.rb' example program there, and in the subsection [8.4.5] ((<(Check if children are removed along with the parent)|tut-gtk2-treev-addrnhs#Check if children are removed along with the parent:>)). 
 The first modification is found in setting up the 'Buy' column and the second one is in how the 'Count' column is set up. Let's start with the second one first. That is, where the code to set the 'Count' column is found. There we find the following new piece of code:
 
+But let's return back to our 'toggle-rndr-2.rb' example program here. The first modification is found in setting up the 'Buy' column and the second one is in how the 'Count' column is set up. Let's start with the second one first. That is, where the code to set the 'Count' column is found. There, we find the following new piece of code:
 
    column.set_cell_data_func(renderer) do |tvc, cell, model, iter|
      fix_parents_total(iter) if !iter.has_child?




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