ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 22日 (水) 11:37:57 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees ------------------------- @@ -257,7 +257,8 @@ {{image_right("liststore-cdFunc.png")}} -Following is a simple example program demonstrating the use of ((*set_cell_data_func*)) function. Note that this function is associated with a particular cell renderer which is mapped to a tree view column via the column, associated with the renderer by Gtk::TreeViewColumn.new, and subsequently by the Gtk::TreeView#append_column(column) statement; so all ((*render, column,*)) which is associated with the ((*set_cell_data_func*)) function, and the ((*tree view*)) are all connected. The block associated with the cell data function is executed for every row for that particular view column, checking if "Buy" column contains TRUE. If it does, the background of the column is set to red. +Following is a simple example program demonstrating the use of ((*set_cell_data_func*)) function. Note that this function is associated with a particular cell renderer which is mapped to a tree view column via the column, associated with the renderer by Gtk::TreeViewColumn.new, and subsequently by the Gtk::TreeView#append_column(column) statement; so all ((*render, column,*))(which is associated with the((*set_cell_data_func*))function) and the((*tree view*))are all connected. The block associated with the cell data function is executed for every row for that particular view column, checking if "Buy" column contains TRUE. If it does, the background of the column is set to red. Note, how "Buy" column is attached the cell data function, which in turn is attached to the code block, that modifies the cell's background in accordance with the data value in the cell. This helper function and the associated code block are executed for every row in the tree store. + ((*liststore-cdFunc*))