ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 7日 (金) 01:17:11 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-itrsmrks ------------------------- @@ -43,7 +43,7 @@ By default, text marks are invisible within the text, however, you can make them visible by setting Gtk::TextMark#visible=(boolean) to true. -Text marks can be accessed in two ways. You can retrieve a text mark at a specific Gtk::TextIter location. It is also possible to set up text mark with a string as its name, which makes it easy to keep track of. +Text marks can be accessed in two ways. You can retrieve a text mark at a specific Gtk::TextIter location. It is also possible to set up text mark with a string as its name, which makes it easy to keep track of. Here the word retrieve is not very exact, since there realy is no way to retreive a mark at an iter location. Instead you can create a new mark for an iter, give it a name and then later you can truly retrieve it if you wish. But this detail is rally not that important, I just want to be accurate. In fact there are two default marks always provided by GTK+. They are((*selection_bound*))and((*insert.*))You can always retrieve these two marks, and of course any marks you created with your names, via Gtk::TextBuffer#get_mark(name). === Creating a Text Mark: