[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-txtw-ttags

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2009年 2月 7日 (土) 06:22:53 JST


-------------------------
REMOTE_ADDR = 74.15.84.244
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-ttags
-------------------------
@@ -141,7 +141,7 @@
                    "background" => "#000000" }
  )
 
-Once you created a tag with its properties you retrieve it from the text buffer's tag table by specifying its tag_name. At the same time you apply it to a segment or portion of the text bufer defined by star and end iterators. In the following snippet of code we create a an entry in tag table for the Gtk::TextBuffer object called buff. We create tag called "bold" and add for it a property name/value pair as hash {"weight" => Pango::WEIGHT_BOLD}. Subsequently (later in the program; in our case in a callback) we extract the property value pair for this tag:
+Once you created a tag with its properties you retrieve it from the text buffer's tag table by specifying its tag_name. At the same time you apply it to a segment or portion of the text buffer defined by star and end iterators. In the following snippet of code we create a an entry in tag table for the Gtk::TextBuffer object called buff. We create tag called "bold" and add for it a property name/value pair as hash {"weight" => Pango::WEIGHT_BOLD}. Subsequently (later in the program; in our case in a callback) we extract the property value pair for this tag:
 
  buff.create_tag("bold",   {"weight" => Pango::WEIGHT_BOLD})
       ...




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る