ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 5日 (水) 04:12:28 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-itrsmrks ------------------------- @@ -152,7 +152,7 @@ Back in our example program, when we've obtained the two iterators we to supply them to Gtk::TextBuffer#get_text(start, end, show_invisible=false), to retrieve the selection. :Caution: - When using the above Gtk::TextBuffer#get_text, you should be careful that there are no images or other non-textual object in the text buffer, since the character positions will because of this most likely be off. In such cases you should use Gtk::TextBuffer#get_slice instead. + When using the above Gtk::TextBuffer#get_text, you should be careful that there are no images or other non-textual object in the text buffer, since the character positions will, because of this, most likely be off. In such cases you should use Gtk::TextBuffer#get_slice instead. Also, recall that positions refer to character and not byte positions.