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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 17日 (金) 04:51:48 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts
-------------------------
@@ -353,7 +353,7 @@
 Sorting in GTK+ is define in Gtk::TreeSortable module, or as GTK+ programmers like to say, interface. This interface is implemented by all model classes, hence views can demand that model data be sorted. This is accomplished by setting Gtk::TreeStore#sort_column_id or Gtk::TreeStore#sort_column_id. However, in order to equip column headers with sorting visual indicators and triggers to initialize sorting processes, view also needs to be aware those columns. To give this information to tree view we employ Gtk::TreeViewColumn#sort_column_id=(sort_column_number).
 
 :Note:
-    Here,((*sort_column_number*))is the column number in model or store and not the view column number, though, often they do coincide. 
+    Here,((*sort_column_number*))is the column number in model or store and not the view column number, though, often they do coincide, just like in this program. However, one thing to remember is that you never directly refer to a view column number. View column numbers are implicitly defined when Gtk::TreeView#append_column(column) is executed.
 
 Following is the same program as the above "liststore.rb" but here with added sorting features. Please read the comments explaining sorting features to set visual and clickable sort items in the tree view column header.
 




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