ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 15日 (土) 03:54:03 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-textview ------------------------- @@ -49,7 +49,7 @@ :A Short D-tour: - If you understand the relationship between the two Gtk classes, namely between Gtk::TextView and Gtk::TextBuffer, you will not miss anything by ignoring this D-tour. But if you are not exactly sure what was just said in the above paragraph, then following short demonstration simulating how Gtk::TextView and Gtk::TextBuffer are implemented, may help you understand this relationship and show you how to exploit this design to create some text views that share the same Gtk::TextBuffer and some that do not: + If you understand the relationship between the two Gtk classes, namely between Gtk::TextView and Gtk::TextBuffer, you will not miss anything by ignoring this D-tour. But if you are not exactly sure what was just said in the above paragraph, then following short demonstration simulating how Gtk::TextView and Gtk::TextBuffer are implemented, may help you understand this relationship and show you how to exploit this design to create some text views that share the same Gtk::TextBuffer and some that do not. In tv-N-tb-example.rb sample program pay attention to three different ((*tview_instance_#*)) TextView instances. The first one, designated with number zero (0) has its own (not shared) TextBuffer, however, the other two (#1 and #2) share the TextBuffer instance: