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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 10月 4日 (木) 01:42:16 JST


-------------------------
REMOTE_ADDR = 184.145.80.187
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees
-------------------------
@@ -409,7 +409,7 @@
  treeview = Gtk::TreeView.new(store = Gtk::ListStore.new(Integer, String, String, String))
 
 
-Here we have the situation where along with user data to be displayed in the view there also are stored system parameters, namely, the foreground and background colours for the two view columns. As previously announced, in this  example program entire row is manipulated with their respective ((*set_cell_data_funcs'*)) blocks.  That is, all columns for all the cell renderers in this tree view (which contains only two columns/renderers) trigger execution of their pertinent ((*set_cell_data_func*)) methods and code blocks. What is also interesting is how in some of these blocks multiple data (i.e. multiple renderer's parameters) in the same row from different model columns are consulted. If you understand this program, you should also understand that model columns do not map to view columns.
+The renderer attributes here are used to store system parameters, namely, the foreground and background colours for the two tree view columns. Not only that, different rows in the model store different colours values for these two attributes. As previously announced, in this  example program entire row is manipulated with their respective ((*set_cell_data_funcs'*)) blocks in which the background and foreground attributes are set differently for each row. That is, all columns for all the cell renderers in this tree view trigger execution of their respective ((*set_cell_data_func*)) methods and code blocks. What is also interesting is how in some of these blocks multiple data (i.e. multiple renderer's parameters) in the same row from different model columns are consulted. If you understand this program, you should also understand that model columns do not map to view columns.
 
 
 




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