ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 2日 (木) 05:08:01 JST
------------------------- REMOTE_ADDR = 184.145.84.152 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-itrsmrks ------------------------- @@ -121,9 +121,6 @@ When you have the two iterators you have to supply them to Gtk::TextBuffer#get_text(start, end, show_invisible=false), to retrieve the selection. -{{image_right("dialog-warning.png")}} - -Unfortunately Gtk::TextBuffer#get_text currently does not work as expected. Those of you who wish to see the identical C GTK+ program, that does work, can click on this link ((<"C GTK+ program: Using Text Iterators"|tut-gtk2-txtw-itrsmrks-cgtk-01>)) (you will be making a short detour into C GTK+). :Caution: When the above Gtk::TextBuffer#get_text will work, 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.