ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 30日 (日) 12:13:39 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -52,7 +52,7 @@ -There are more ways to deal with tree view selections: either you get a list of the currently selected rows whenever you need it by obtaining Gtk::TreeSelection object via: Gtk::TreeView#selected and then traversing it by running Gtk::TreeSelection#selected_each, or you keep track of all select and unselect actions and keep a list of the currently selected rows around for whenever you need them; as a last resort, you can also traverse your list or tree and check each single row for whether it is selected or not (which you need to do if you want all rows that are not selected for example). +There are more ways to deal with tree view selections: either you get a list of the currently selected rows whenever you need it by obtaining Gtk::TreeSelection object via: Gtk::TreeView#selection and then traversing it by running on the obtained object the Gtk::TreeSelection#selected_each method, or you keep track of all selected and unselected actions and keep a list of the currently selected rows around for whenever you need them; as a last resort, you can also traverse your list or tree and check each single row for whether it is selected or not (which you need to do if you want all rows that are not selected for example). === Obtaining Gtk::TreeSelection object: