gtksourceview2 0.90.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +57 -0
- data/README +29 -0
- data/Rakefile +14 -0
- data/ext/gtksourceview2/depend +5 -0
- data/ext/gtksourceview2/extconf.rb +73 -0
- data/ext/gtksourceview2/gtksourceview2.def +2 -0
- data/ext/gtksourceview2/rbgtksourcebuffer.c +401 -0
- data/ext/gtksourceview2/rbgtksourceiter.c +110 -0
- data/ext/gtksourceview2/rbgtksourcelanguage.c +126 -0
- data/ext/gtksourceview2/rbgtksourcelanguagemanager.c +188 -0
- data/ext/gtksourceview2/rbgtksourcemain.c +38 -0
- data/ext/gtksourceview2/rbgtksourcemain.h +32 -0
- data/ext/gtksourceview2/rbgtksourcemark.c +90 -0
- data/ext/gtksourceview2/rbgtksourceprintcompositor.c +249 -0
- data/ext/gtksourceview2/rbgtksourcestyle.c +48 -0
- data/ext/gtksourceview2/rbgtksourcestylescheme.c +71 -0
- data/ext/gtksourceview2/rbgtksourcestyleschememanager.c +211 -0
- data/ext/gtksourceview2/rbgtksourceview.c +239 -0
- data/extconf.rb +49 -0
- data/lib/1.8/gtksourceview2.so +0 -0
- data/lib/1.9/gtksourceview2.so +0 -0
- data/lib/gtksourceview2.rb +2 -0
- data/sample/sourcelanguagemanager.rb +21 -0
- data/sample/test.rb +32 -0
- data/test/run-test.rb +33 -0
- data/test/test_source_view.rb +17 -0
- data/vendor/local/bin/libgtksourceview-2.0-0.dll +0 -0
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +67 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcebuffer.h +181 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletion.h +131 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletioncontext.h +98 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletioninfo.h +82 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletionitem.h +71 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletionproposal.h +76 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletionprovider.h +119 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcegutter.h +106 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceiter.h +53 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcelanguage.h +83 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcelanguagemanager.h +86 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcemark.h +71 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceprintcompositor.h +177 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcestyle.h +41 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcestylescheme.h +91 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcestyleschememanager.h +90 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceundomanager.h +77 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceview-typebuiltins.h +44 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceview.h +272 -0
- data/vendor/local/include/libxml2/libxml/DOCBparser.h +96 -0
- data/vendor/local/include/libxml2/libxml/HTMLparser.h +304 -0
- data/vendor/local/include/libxml2/libxml/HTMLtree.h +147 -0
- data/vendor/local/include/libxml2/libxml/SAX.h +173 -0
- data/vendor/local/include/libxml2/libxml/SAX2.h +176 -0
- data/vendor/local/include/libxml2/libxml/c14n.h +126 -0
- data/vendor/local/include/libxml2/libxml/catalog.h +182 -0
- data/vendor/local/include/libxml2/libxml/chvalid.h +230 -0
- data/vendor/local/include/libxml2/libxml/debugXML.h +217 -0
- data/vendor/local/include/libxml2/libxml/dict.h +69 -0
- data/vendor/local/include/libxml2/libxml/encoding.h +226 -0
- data/vendor/local/include/libxml2/libxml/entities.h +150 -0
- data/vendor/local/include/libxml2/libxml/globals.h +502 -0
- data/vendor/local/include/libxml2/libxml/hash.h +233 -0
- data/vendor/local/include/libxml2/libxml/list.h +137 -0
- data/vendor/local/include/libxml2/libxml/nanoftp.h +143 -0
- data/vendor/local/include/libxml2/libxml/nanohttp.h +81 -0
- data/vendor/local/include/libxml2/libxml/parser.h +1235 -0
- data/vendor/local/include/libxml2/libxml/parserInternals.h +611 -0
- data/vendor/local/include/libxml2/libxml/pattern.h +100 -0
- data/vendor/local/include/libxml2/libxml/relaxng.h +213 -0
- data/vendor/local/include/libxml2/libxml/schemasInternals.h +958 -0
- data/vendor/local/include/libxml2/libxml/schematron.h +142 -0
- data/vendor/local/include/libxml2/libxml/threads.h +84 -0
- data/vendor/local/include/libxml2/libxml/tree.h +1252 -0
- data/vendor/local/include/libxml2/libxml/uri.h +94 -0
- data/vendor/local/include/libxml2/libxml/valid.h +458 -0
- data/vendor/local/include/libxml2/libxml/xinclude.h +129 -0
- data/vendor/local/include/libxml2/libxml/xlink.h +189 -0
- data/vendor/local/include/libxml2/libxml/xmlIO.h +360 -0
- data/vendor/local/include/libxml2/libxml/xmlautomata.h +146 -0
- data/vendor/local/include/libxml2/libxml/xmlerror.h +944 -0
- data/vendor/local/include/libxml2/libxml/xmlexports.h +162 -0
- data/vendor/local/include/libxml2/libxml/xmlmemory.h +224 -0
- data/vendor/local/include/libxml2/libxml/xmlmodule.h +57 -0
- data/vendor/local/include/libxml2/libxml/xmlreader.h +424 -0
- data/vendor/local/include/libxml2/libxml/xmlregexp.h +222 -0
- data/vendor/local/include/libxml2/libxml/xmlsave.h +87 -0
- data/vendor/local/include/libxml2/libxml/xmlschemas.h +218 -0
- data/vendor/local/include/libxml2/libxml/xmlschemastypes.h +151 -0
- data/vendor/local/include/libxml2/libxml/xmlstring.h +140 -0
- data/vendor/local/include/libxml2/libxml/xmlunicode.h +202 -0
- data/vendor/local/include/libxml2/libxml/xmlversion.h +458 -0
- data/vendor/local/include/libxml2/libxml/xmlwriter.h +485 -0
- data/vendor/local/include/libxml2/libxml/xpath.h +546 -0
- data/vendor/local/include/libxml2/libxml/xpathInternals.h +630 -0
- data/vendor/local/include/libxml2/libxml/xpointer.h +114 -0
- data/vendor/local/lib/libgtksourceview-2.0.dll.a +0 -0
- data/vendor/local/lib/libxml2.def +1657 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libxml2.lib +0 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-2.0.pc +12 -0
- data/vendor/local/lib/pkgconfig/libxml-2.0.pc +13 -0
- data/vendor/local/manifest/libxml2-dev_2.7.7-1_win32.mft +267 -0
- data/vendor/local/manifest/libxml2_2.7.7-1_win32.mft +2 -0
- data/vendor/local/share/aclocal/libxml.m4 +188 -0
- data/vendor/local/share/doc/libxml2-2.7.7/Copyright +27 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/testHTML.c +880 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/testSAX.c +1198 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/testXPath.c +227 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/xmllint.c +3722 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/DOM.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/FAQ.html +282 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/Libxml2-Logo-180x168.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/Libxml2-Logo-90x34.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/encoding.html +206 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/examples.xml +751 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/examples.xsl +174 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/book1.html +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/home.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/index.html +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/left.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-DOCBparser.html +51 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-HTMLparser.html +182 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-HTMLtree.html +73 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-SAX.html +125 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-SAX2.html +128 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-c14n.html +38 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-catalog.html +142 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-chvalid.html +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-debugXML.html +120 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-dict.html +49 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-encoding.html +118 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-entities.html +79 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-globals.html +152 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-hash.html +116 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-lib.html +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-list.html +120 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-nanoftp.html +92 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-nanohttp.html +65 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-parser.html +555 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-parserInternals.html +319 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-pattern.html +76 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-relaxng.html +162 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-schemasInternals.html +373 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-schematron.html +81 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-threads.html +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-tree.html +958 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-uri.html +73 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-valid.html +289 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xinclude.html +59 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xlink.html +82 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlIO.html +206 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlautomata.html +85 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlerror.html +862 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlexports.html +20 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlmemory.html +107 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlmodule.html +38 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlreader.html +327 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlregexp.html +143 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlsave.html +59 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlschemas.html +173 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlschemastypes.html +123 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlstring.html +108 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlunicode.html +512 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlversion.html +60 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlwriter.html +258 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xpath.html +307 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xpathInternals.html +394 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xpointer.html +83 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/right.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/up.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io1.c +166 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io1.res +5 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io2.c +58 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io2.res +2 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/libxml.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse1.c +56 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse2.c +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse3.c +60 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse4.c +143 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader1.c +107 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader1.res +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader2.c +122 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader3.c +120 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader3.res +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader4.c +122 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader4.res +3 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/redhat.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/smallfootonly.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/structure.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/test1.xml +1 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/test2.xml +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/test3.xml +39 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/testWriter.c +1198 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree1.c +94 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree1.res +4 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree2.c +118 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree2.res +18 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tst.xml +7 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apa.html +8 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apb.html +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apc.html +82 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apd.html +76 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ape.html +78 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apf.html +67 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apg.html +75 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/aph.html +76 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/api.html +4 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s02.html +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s03.html +47 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s04.html +54 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s05.html +55 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s06.html +35 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s07.html +30 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s08.html +38 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s09.html +63 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/blank.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/1.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/10.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/2.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/3.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/4.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/5.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/6.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/7.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/8.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/9.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/caution.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/draft.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/home.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/important.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/next.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/note.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/prev.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/tip.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/toc-blank.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/toc-minus.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/toc-plus.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/up.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/warning.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includeaddattribute.c +64 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includeaddkeyword.c +75 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includeconvert.c +73 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includegetattribute.c +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includekeyword.c +79 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includexpath.c +74 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/index.html +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ix01.html +1 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/xmltutorial.pdf +1336 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/w3c.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/writer.xml +2 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xml.html +5344 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath1.c +250 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath1.res +5 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath2.c +190 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath2.res +30 -0
- data/vendor/local/share/gtk-doc/html/libxml2/general.html +38 -0
- data/vendor/local/share/gtk-doc/html/libxml2/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/index.html +67 -0
- data/vendor/local/share/gtk-doc/html/libxml2/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html +138 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html +371 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html +172 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX.html +243 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html +247 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-c14n.html +91 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-catalog.html +278 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html +241 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html +225 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-dict.html +119 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-encoding.html +208 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-globals.html +383 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-hash.html +214 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-list.html +226 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html +177 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html +142 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parser.html +762 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html +673 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-pattern.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html +278 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html +860 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schematron.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-threads.html +161 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +1542 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-uri.html +154 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-valid.html +528 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html +169 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xlink.html +160 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html +337 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html +176 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +950 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html +87 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html +186 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html +97 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html +560 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html +280 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html +132 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html +299 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +237 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html +217 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html +887 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html +277 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html +474 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpath.html +529 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html +787 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html +171 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2.devhelp +3529 -0
- data/vendor/local/share/gtk-doc/html/libxml2/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/style.css +66 -0
- data/vendor/local/share/gtk-doc/html/libxml2/up.png +0 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/R.lang +128 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ada.lang +220 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/asp.lang +1096 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/awk.lang +137 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/bibtex.lang +92 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/boo.lang +256 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/c.lang +272 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cg.lang +231 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/changelog.lang +91 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/chdr.lang +42 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cmake.lang +407 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cpp.lang +106 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/csharp.lang +280 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/css.lang +516 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cuda.lang +288 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/d.lang +295 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/def.lang +268 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/desktop.lang +299 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/diff.lang +84 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/docbook.lang +475 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dosbatch.lang +166 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dot.lang +139 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dpatch.lang +47 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dtd.lang +139 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/eiffel.lang +238 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/erlang.lang +248 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/fcl.lang +113 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/forth.lang +234 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/fortran.lang +511 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/fsharp.lang +322 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/gap.lang +84 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/glsl.lang +482 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/gtk-doc.lang +90 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/gtkrc.lang +115 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/haddock.lang +161 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/haskell-literate.lang +58 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/haskell.lang +226 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/html.lang +160 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/idl.lang +153 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ini.lang +94 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/java.lang +208 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/javascript.lang +334 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/language.dtd +72 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/language.rng +372 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/language2.rng +490 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/latex.lang +298 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/libtool.lang +55 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/lua.lang +156 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/m4.lang +803 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/makefile.lang +195 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/mallard.lang +122 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/msil.lang +490 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/nemerle.lang +262 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/nsis.lang +87 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/objc.lang +119 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ocaml.lang +299 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ocl.lang +138 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/octave.lang +238 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ooc.lang +264 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/pascal.lang +264 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/perl.lang +1017 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/php.lang +329 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/pkgconfig.lang +61 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/po.lang +94 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/prolog.lang +248 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/python.lang +390 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/rpmspec.lang +204 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ruby.lang +588 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/scheme.lang +301 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/sh.lang +499 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/sparql.lang +447 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/sql.lang +617 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/styles.rng +138 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/t2t.lang +149 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/tcl.lang +145 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/texinfo.lang +447 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/vala.lang +227 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/vbnet.lang +244 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/verilog.lang +249 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/vhdl.lang +247 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/xml.lang +219 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/xslt.lang +107 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/yacc.lang +172 -0
- data/vendor/local/share/gtksourceview-2.0/styles/classic.xml +99 -0
- data/vendor/local/share/gtksourceview-2.0/styles/cobalt.xml +134 -0
- data/vendor/local/share/gtksourceview-2.0/styles/kate.xml +155 -0
- data/vendor/local/share/gtksourceview-2.0/styles/oblivion.xml +112 -0
- data/vendor/local/share/gtksourceview-2.0/styles/styles.rng +138 -0
- data/vendor/local/share/gtksourceview-2.0/styles/tango.xml +116 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/man/man1/xml2-config.1 +31 -0
- data/vendor/local/share/man/man1/xmlcatalog.1 +229 -0
- data/vendor/local/share/man/man1/xmllint.1 +427 -0
- data/vendor/local/share/man/man3/libxml.3 +71 -0
- data/vendor/local/src/tml/packaging/libxml2_2.7.7-1_win32.log +1244 -0
- data/vendor/local/src/tml/packaging/libxml2_2.7.7-1_win32.sh +66 -0
- metadata +567 -0
data/ChangeLog
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
2011-01-30 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
|
3
|
+
* ./: support gem build for Windows.
|
4
|
+
|
5
|
+
2011-01-22 Masaaki Aoyagi
|
6
|
+
|
7
|
+
* src/lib/: -> lib/.
|
8
|
+
|
9
|
+
* src/: -> ext/gtksourceview2/.
|
10
|
+
|
11
|
+
* extconf.rb: -> ext/gtksourceview2/extconf.rb
|
12
|
+
|
13
|
+
* ext/gtksourceview2/extconf.rb: support directory structure change.
|
14
|
+
|
15
|
+
* extconf.rb: add.
|
16
|
+
|
17
|
+
* Rakefile: add.
|
18
|
+
|
19
|
+
2010-09-28 Kouhei Sutou <kou@cozmixng.org>
|
20
|
+
|
21
|
+
* test/run-test.rb: fix path.
|
22
|
+
|
23
|
+
2010-09-23 Kouhei Sutou <kou@cozmixng.org>
|
24
|
+
|
25
|
+
* extconf.rb: support Ruby/GLib2 directory structure change.
|
26
|
+
|
27
|
+
2008-11-09 Kouhei Sutou <kou@cozmixng.org>
|
28
|
+
|
29
|
+
* src/rbgtksourcemain.h, src/rbgtksourceprintcompositor.c: remove
|
30
|
+
needless definitions.
|
31
|
+
|
32
|
+
2008-11-01 Kouhei Sutou <kou@cozmixng.org>
|
33
|
+
|
34
|
+
* src/: use RARRAY_PTR() and RARRAY_LEN().
|
35
|
+
|
36
|
+
2008-09-30 Kouhei Sutou <kou@cozmixng.org>
|
37
|
+
|
38
|
+
* src/rbgtksourceview.c: cleanup style.
|
39
|
+
|
40
|
+
* test/test_source_view.rb: add a test.
|
41
|
+
|
42
|
+
* test/run-test.rb: setup testing environment.
|
43
|
+
|
44
|
+
* src/rbgtksourceview.c, test/test_source_view.rb: fix
|
45
|
+
Gtk::SourceView#{get,set}_mark_category_background bugs.
|
46
|
+
|
47
|
+
2008-09-21 yselkowitz
|
48
|
+
|
49
|
+
Wrap new features in 2.4.0.
|
50
|
+
* extconf.rb: Test for new functions in 2.4.
|
51
|
+
* src/rbgtksourceview.c: Add Gtk::SourceView#get_mark_category_background,
|
52
|
+
#set_mark_category_background, ::DRAW_SPACES_*.
|
53
|
+
* src/rbgtksourcelanguagemanager.c: Add Gtk::SourceLanguageManager#guess_language.
|
54
|
+
|
55
|
+
2008-07-11 yselkowitz
|
56
|
+
|
57
|
+
Initial import of gtksourceview2.
|
data/README
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
Ruby/GtkSourceView2
|
2
|
+
===================
|
3
|
+
Ruby/GtkSourceView2 is a Ruby binding of gtksourceview-2.x.
|
4
|
+
|
5
|
+
Requirements
|
6
|
+
------------
|
7
|
+
Ruby: http://www.ruby-lang.org/
|
8
|
+
Ruby-GNOME2: http://ruby-gnome2.sourceforge.jp/
|
9
|
+
GtkSourceView: ftp://ftp.gnome.org/pub/GNOME/sources/gtksourceview
|
10
|
+
|
11
|
+
Install
|
12
|
+
-------
|
13
|
+
0. install ruby 1.8.0 or newer, GtkSourceView 2.0.0 or newer, Ruby/GTK2.
|
14
|
+
1. ruby extconf.rb
|
15
|
+
2. make
|
16
|
+
3. su
|
17
|
+
4. make install
|
18
|
+
|
19
|
+
Copying
|
20
|
+
-------
|
21
|
+
Copyright (c) 2008 Ruby-GNOME2 Project Team
|
22
|
+
|
23
|
+
This program is free software.
|
24
|
+
You can distribute/modify this program under the terms of
|
25
|
+
the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
|
26
|
+
|
27
|
+
Project Website
|
28
|
+
---------------
|
29
|
+
http://ruby-gnome2.sourceforge.jp/
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require './../glib2/lib/gnome2-raketask'
|
4
|
+
|
5
|
+
package = GNOME2Package.new do |_package|
|
6
|
+
_package.summary = "Ruby/GtkSourceView2 is a Ruby binding of gtksourceview-2.x."
|
7
|
+
_package.description = "Ruby/GtkSourceView2 is a Ruby binding of gtksourceview-2.x."
|
8
|
+
_package.dependency.gem.runtime = ["gtk2"]
|
9
|
+
_package.win32.packages = ["gtksourceview"]
|
10
|
+
_package.win32.dependencies = ["libxml2"]
|
11
|
+
_package.post_install_message = "This library is experimental."
|
12
|
+
end
|
13
|
+
package.define_tasks
|
14
|
+
|
@@ -0,0 +1,73 @@
|
|
1
|
+
=begin
|
2
|
+
extconf.rb for Ruby/GtkSourceView2 extension library
|
3
|
+
=end
|
4
|
+
|
5
|
+
require 'pathname'
|
6
|
+
|
7
|
+
base_dir = Pathname(__FILE__).dirname.parent.parent.expand_path
|
8
|
+
top_dir = base_dir.parent
|
9
|
+
top_build_dir = Pathname(".").parent.parent.parent.expand_path
|
10
|
+
|
11
|
+
mkmf_gnome2_dir = top_dir + "glib2" + 'lib'
|
12
|
+
version_suffix = ""
|
13
|
+
unless mkmf_gnome2_dir.exist?
|
14
|
+
if /(-\d+\.\d+\.\d+)\z/ =~ base_dir.basename.to_s
|
15
|
+
version_suffix = $1
|
16
|
+
mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + 'lib'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
$LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
|
21
|
+
|
22
|
+
module_name = "gtksourceview2"
|
23
|
+
package_id = "gtksourceview-2.0"
|
24
|
+
|
25
|
+
require 'mkmf-gnome2'
|
26
|
+
|
27
|
+
["glib2", "atk", "pango", "gdk_pixbuf2", "gtk2"].each do |package|
|
28
|
+
directory = "#{package}#{version_suffix}"
|
29
|
+
build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
|
30
|
+
add_depend_package(package, "#{directory}/ext/#{package}",
|
31
|
+
top_dir.to_s,
|
32
|
+
:top_build_dir => top_build_dir.to_s,
|
33
|
+
:target_build_dir => build_dir)
|
34
|
+
end
|
35
|
+
|
36
|
+
rcairo_options = {}
|
37
|
+
rcairo_source_dir_names = ["rcairo"]
|
38
|
+
if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
|
39
|
+
rcairo_source_dir_names.unshift("rcairo.win32")
|
40
|
+
end
|
41
|
+
rcairo_source_dir_names.each do |rcairo_source_dir_name|
|
42
|
+
rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
|
43
|
+
if rcairo_source_dir.exist?
|
44
|
+
rcairo_options[:rcairo_source_dir] = rcairo_source_dir.to_s
|
45
|
+
break
|
46
|
+
end
|
47
|
+
end
|
48
|
+
check_cairo(rcairo_options)
|
49
|
+
|
50
|
+
setup_win32(module_name, base_dir)
|
51
|
+
|
52
|
+
PKGConfig.have_package(package_id) or exit(false)
|
53
|
+
|
54
|
+
# 2.2
|
55
|
+
have_func('gtk_source_mark_get_type', "gtksourceview/gtksourcemark.h")
|
56
|
+
have_func('gtk_source_print_compositor_get_type', "gtksourceview/gtksourceprintcompositor.h")
|
57
|
+
# 2.4
|
58
|
+
have_func('gtk_source_view_get_mark_category_background', "gtksourceview/gtksourceview.h")
|
59
|
+
have_func('gtk_source_language_manager_guess_language', "gtksourceview/gtksourcelanguagemanager.h")
|
60
|
+
|
61
|
+
make_version_header("GTKSOURCEVIEW2", package_id, ".")
|
62
|
+
|
63
|
+
create_pkg_config_file("Ruby/GtkSourceView2", package_id)
|
64
|
+
$defs << "-DRUBY_GTKSOURCEVIEW2_COMPILATION"
|
65
|
+
create_makefile(module_name)
|
66
|
+
pkg_config_dir = with_config("pkg-config-dir")
|
67
|
+
if pkg_config_dir.is_a?(String)
|
68
|
+
File.open("Makefile", "ab") do |makefile|
|
69
|
+
makefile.puts
|
70
|
+
makefile.puts("pkgconfigdir=#{pkg_config_dir}")
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
@@ -0,0 +1,401 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/************************************************
|
3
|
+
|
4
|
+
rbgtksourcebuffer.c -
|
5
|
+
|
6
|
+
$Author: sakai $
|
7
|
+
$Date: 2007/07/08 03:02:28 $
|
8
|
+
|
9
|
+
Copyright (C) 2004,2005 Ruby-GNOME2 Project Team
|
10
|
+
Copyright (C) 2003 Geoff Youngs, based on gtktextview.c by Masao Mutoh
|
11
|
+
************************************************/
|
12
|
+
#include "rbgtksourcemain.h"
|
13
|
+
|
14
|
+
/* Class: Gtk::SourceBuffer
|
15
|
+
* Text buffer object for Gtk::SourceView.
|
16
|
+
*/
|
17
|
+
|
18
|
+
#define _SELF(self) (GTK_SOURCE_BUFFER(RVAL2GOBJ(self)))
|
19
|
+
#define RVAL2ITR(i) ((GtkTextIter*)RVAL2BOXED(i, GTK_TYPE_TEXT_ITER))
|
20
|
+
|
21
|
+
/*
|
22
|
+
* Class method: new(obj=nil)
|
23
|
+
* obj: either a Gtk::TextTagTable, a Gtk::SourceLanguage, or nil.
|
24
|
+
*
|
25
|
+
* Creates a new source buffer. If a Gtk::SourceTagTable is provided, the
|
26
|
+
* buffer will use it, otherwise it will create a new one.
|
27
|
+
*
|
28
|
+
* If a Gtk::SourceLanguage object is given, the buffer will be created
|
29
|
+
* using highlightings patterns in this language. This is equivalent to
|
30
|
+
* creating a new source buffer with the default tag table and then setting
|
31
|
+
* the 'language' property.
|
32
|
+
*
|
33
|
+
* Returns: a newly created Gtk::SourceBuffer object.
|
34
|
+
*/
|
35
|
+
static VALUE
|
36
|
+
sourcebuffer_new (argc, argv, self)
|
37
|
+
int argc;
|
38
|
+
VALUE *argv;
|
39
|
+
VALUE self;
|
40
|
+
{
|
41
|
+
VALUE val;
|
42
|
+
|
43
|
+
rb_scan_args (argc, argv, "01", &val);
|
44
|
+
if (NIL_P (val)) {
|
45
|
+
G_INITIALIZE (self, gtk_source_buffer_new (NULL));
|
46
|
+
} else
|
47
|
+
if (rb_obj_is_kind_of
|
48
|
+
(val, GTYPE2CLASS (GTK_TYPE_TEXT_TAG_TABLE))) {
|
49
|
+
G_INITIALIZE (self,
|
50
|
+
gtk_source_buffer_new (GTK_TEXT_TAG_TABLE
|
51
|
+
(RVAL2GOBJ (val))));
|
52
|
+
} else
|
53
|
+
if (rb_obj_is_kind_of
|
54
|
+
(val, GTYPE2CLASS (GTK_TYPE_SOURCE_LANGUAGE))) {
|
55
|
+
G_INITIALIZE (self,
|
56
|
+
gtk_source_buffer_new_with_language
|
57
|
+
(GTK_SOURCE_LANGUAGE (RVAL2GOBJ (val))));
|
58
|
+
} else {
|
59
|
+
rb_raise (rb_eArgError,
|
60
|
+
"invalid argument %s (expect nil, Gtk::TextTagTable or Gtk::SourceLanguage)",
|
61
|
+
rb_class2name (CLASS_OF (val)));
|
62
|
+
}
|
63
|
+
return Qnil;
|
64
|
+
}
|
65
|
+
|
66
|
+
/* Defined as properties.
|
67
|
+
void gtk_source_buffer_set_highlight_syntax
|
68
|
+
(GtkSourceBuffer *buffer,
|
69
|
+
gboolean highlight);
|
70
|
+
gboolean gtk_source_buffer_get_highlight_syntax
|
71
|
+
(GtkSourceBuffer *buffer);
|
72
|
+
void gtk_source_buffer_set_language (GtkSourceBuffer *buffer,
|
73
|
+
GtkSourceLanguage *language);
|
74
|
+
GtkSourceLanguage* gtk_source_buffer_get_language (GtkSourceBuffer *buffer);
|
75
|
+
void gtk_source_buffer_set_highlight_matching_brackets
|
76
|
+
(GtkSourceBuffer *buffer,
|
77
|
+
gboolean highlight);
|
78
|
+
gboolean gtk_source_buffer_get_highlight_matching_brackets
|
79
|
+
(GtkSourceBuffer *buffer);
|
80
|
+
void gtk_source_buffer_set_style_scheme (GtkSourceBuffer *buffer,
|
81
|
+
GtkSourceStyleScheme *scheme);
|
82
|
+
GtkSourceStyleScheme* gtk_source_buffer_get_style_scheme
|
83
|
+
(GtkSourceBuffer *buffer);
|
84
|
+
gint gtk_source_buffer_get_max_undo_levels
|
85
|
+
(GtkSourceBuffer *buffer);
|
86
|
+
void gtk_source_buffer_set_max_undo_levels
|
87
|
+
(GtkSourceBuffer *buffer,
|
88
|
+
gint max_undo_levels);
|
89
|
+
gboolean gtk_source_buffer_can_redo (GtkSourceBuffer *buffer);
|
90
|
+
gboolean gtk_source_buffer_can_undo (GtkSourceBuffer *buffer);
|
91
|
+
*/
|
92
|
+
|
93
|
+
/*
|
94
|
+
* Method: redo!
|
95
|
+
*
|
96
|
+
* Redoes the last undo operation. Use Gtk::SourceBuffer#can_redo? to check
|
97
|
+
* whether a call to this function will have any effect.
|
98
|
+
*
|
99
|
+
* Returns: self.
|
100
|
+
*/
|
101
|
+
static VALUE
|
102
|
+
sourcebuffer_redo (self)
|
103
|
+
VALUE self;
|
104
|
+
{
|
105
|
+
gtk_source_buffer_redo (_SELF (self));
|
106
|
+
return self;
|
107
|
+
}
|
108
|
+
|
109
|
+
/*
|
110
|
+
* Method: undo!
|
111
|
+
*
|
112
|
+
* Undoes the last user action which modified the buffer.
|
113
|
+
* Use Gtk::SourceBuffer#can_undo? to check whether a call to this function
|
114
|
+
* will have any effect.
|
115
|
+
*
|
116
|
+
* Actions are defined as groups of operations between a call to
|
117
|
+
* Gtk::TextBuffer#begin_user_action and Gtk::TextBuffer#end_user_action,
|
118
|
+
* or sequences of similar edits (inserts or deletes) on the same line.
|
119
|
+
*
|
120
|
+
* Returns: self.
|
121
|
+
*/
|
122
|
+
static VALUE
|
123
|
+
sourcebuffer_undo (self)
|
124
|
+
VALUE self;
|
125
|
+
{
|
126
|
+
gtk_source_buffer_undo (_SELF (self));
|
127
|
+
return self;
|
128
|
+
}
|
129
|
+
|
130
|
+
/*
|
131
|
+
* Method: begin_not_undoable_action
|
132
|
+
* Method: begin_not_undoable_action { ... }
|
133
|
+
*
|
134
|
+
* Marks the beginning of a not undoable action on the buffer, disabling the
|
135
|
+
* undo manager.
|
136
|
+
*
|
137
|
+
* If a block is given, the block is called after marking the beginning
|
138
|
+
* of a not undoable action on the buffer.
|
139
|
+
* At the end of the block, marks the end of a not undoable action on the
|
140
|
+
* buffer. When the last not undoable block is finished, the list of undo
|
141
|
+
* actions is cleared and the undo manager is re-enabled.
|
142
|
+
*
|
143
|
+
* Returns: self
|
144
|
+
*/
|
145
|
+
static VALUE
|
146
|
+
sourcebuffer_begin_not_undoable_action(self)
|
147
|
+
VALUE self;
|
148
|
+
{
|
149
|
+
gtk_source_buffer_begin_not_undoable_action (_SELF (self));
|
150
|
+
|
151
|
+
if (rb_block_given_p()) {
|
152
|
+
VALUE block = rb_block_proc ();
|
153
|
+
rb_funcall (block, rb_intern ("call"), 0);
|
154
|
+
gtk_source_buffer_end_not_undoable_action (_SELF (self));
|
155
|
+
}
|
156
|
+
return self;
|
157
|
+
}
|
158
|
+
|
159
|
+
/*
|
160
|
+
* Method: end_not_undoable_action
|
161
|
+
*
|
162
|
+
* Marks the end of a not undoable action on the buffer.
|
163
|
+
* When the last not undoable block is finished, the list of undo
|
164
|
+
* actions is cleared and the undo manager is re-enabled.
|
165
|
+
*
|
166
|
+
* Returns: self
|
167
|
+
*/
|
168
|
+
static VALUE
|
169
|
+
sourcebuffer_end_not_undoable_action(self)
|
170
|
+
VALUE self;
|
171
|
+
{
|
172
|
+
gtk_source_buffer_end_not_undoable_action (_SELF (self));
|
173
|
+
return self;
|
174
|
+
}
|
175
|
+
|
176
|
+
|
177
|
+
/*
|
178
|
+
* Method: not_undoable_action { ... }
|
179
|
+
*
|
180
|
+
* Marks the beginning of a not undoable action on the buffer, disabling the
|
181
|
+
* undo manager, then calls the provided block of code.
|
182
|
+
*
|
183
|
+
* At the end of the block, marks the end of a not undoable action on the
|
184
|
+
* buffer. When the last not undoable block is finished, the list of undo
|
185
|
+
* actions is cleared and the undo manager is re-enabled.
|
186
|
+
*
|
187
|
+
* ((*Deprecated*)). Use Gtk::SourceView#begin_not_undoable_action{ ... } instead.
|
188
|
+
*
|
189
|
+
* Returns: the return value of the provided block.
|
190
|
+
*/
|
191
|
+
static VALUE
|
192
|
+
sourcebuffer_not_undoable_action (self)
|
193
|
+
VALUE self;
|
194
|
+
{
|
195
|
+
VALUE block, ret;
|
196
|
+
|
197
|
+
block = rb_block_proc ();
|
198
|
+
gtk_source_buffer_begin_not_undoable_action (_SELF (self));
|
199
|
+
ret = rb_funcall (block, rb_intern ("call"), 0);
|
200
|
+
gtk_source_buffer_end_not_undoable_action (_SELF (self));
|
201
|
+
return ret;
|
202
|
+
}
|
203
|
+
|
204
|
+
#ifdef HAVE_GTK_SOURCE_MARK_GET_TYPE
|
205
|
+
/*
|
206
|
+
* Method: create_source_mark(name=nil, category, where)
|
207
|
+
* name: the name of the mark.
|
208
|
+
* type: a string defining the mark type.
|
209
|
+
* where: a location to place the mark, as a Gtk::TreeIter object.
|
210
|
+
*
|
211
|
+
* Creates a mark in the buffer of the given type. A mark is semantically
|
212
|
+
* very similar to a Gtk::TextMark, except it has a type which is used by the
|
213
|
+
* Gtk::SourceView object displaying the buffer to show a pixmap on the left
|
214
|
+
* margin, at the line the mark is in. Because of this, a mark is generally
|
215
|
+
* associated to a line and not a character position. Marks are also
|
216
|
+
* accessible through a position or range in the buffer.
|
217
|
+
*
|
218
|
+
* Marks are implemented using Gtk::TextMark, so all characteristics and
|
219
|
+
* restrictions to marks apply to marks too. These includes life cycle issues
|
220
|
+
* and "mark-set" and "mark-deleted" signal emissions.
|
221
|
+
*
|
222
|
+
* Like a Gtk::TextMark, a Gtk::SourceMark can be anonymous if the passed
|
223
|
+
* name is nil.
|
224
|
+
*
|
225
|
+
* Marks always have left gravity and are moved to the beginning of the line
|
226
|
+
* when the user deletes the line they were in. Also, if the user deletes a
|
227
|
+
* region of text which contained lines with marks, those are deleted.
|
228
|
+
*
|
229
|
+
* Typical uses for a mark are bookmarks, breakpoints, current executing
|
230
|
+
* instruction indication in a source file, etc..
|
231
|
+
*
|
232
|
+
* Returns: a new Gtk::SourceMark object, owned by the buffer.
|
233
|
+
*/
|
234
|
+
static VALUE
|
235
|
+
sourcebuffer_create_source_mark (argc, argv, self)
|
236
|
+
int argc;
|
237
|
+
VALUE *argv, self;
|
238
|
+
{
|
239
|
+
VALUE name, category, where;
|
240
|
+
|
241
|
+
if (argc == 2)
|
242
|
+
rb_scan_args (argc, argv, "21", &where, &category, &name);
|
243
|
+
else
|
244
|
+
rb_scan_args (argc, argv, "30", &name, &category, &where);
|
245
|
+
|
246
|
+
return GOBJ2RVAL (gtk_source_buffer_create_source_mark (_SELF (self),
|
247
|
+
RVAL2CSTR (name),
|
248
|
+
RVAL2CSTR (category),
|
249
|
+
RVAL2ITR (where)));
|
250
|
+
}
|
251
|
+
|
252
|
+
static VALUE
|
253
|
+
sourcebuffer_get_source_marks_at_line (argc, argv, self)
|
254
|
+
int argc;
|
255
|
+
VALUE *argv;
|
256
|
+
VALUE self;
|
257
|
+
{
|
258
|
+
GSList *list, *p;
|
259
|
+
VALUE line, category;
|
260
|
+
VALUE ary;
|
261
|
+
|
262
|
+
rb_scan_args (argc, argv, "11", &line, &category);
|
263
|
+
|
264
|
+
list =
|
265
|
+
gtk_source_buffer_get_source_marks_at_line (_SELF (self),
|
266
|
+
NUM2INT (line),
|
267
|
+
NIL_P (category) ? NULL : RVAL2CSTR (category));
|
268
|
+
ary = rb_ary_new ();
|
269
|
+
|
270
|
+
p = (GSList *) list;
|
271
|
+
while (p) {
|
272
|
+
rb_ary_push (ary, GOBJ2RVAL (p->data));
|
273
|
+
p = g_slist_next (p);
|
274
|
+
}
|
275
|
+
|
276
|
+
return ary;
|
277
|
+
}
|
278
|
+
|
279
|
+
static VALUE
|
280
|
+
sourcebuffer_get_source_marks_at_iter (argc, argv, self)
|
281
|
+
int argc;
|
282
|
+
VALUE *argv;
|
283
|
+
VALUE self;
|
284
|
+
{
|
285
|
+
GSList *list, *p;
|
286
|
+
VALUE iter, category;
|
287
|
+
VALUE ary;
|
288
|
+
|
289
|
+
rb_scan_args (argc, argv, "11", &iter, &category);
|
290
|
+
|
291
|
+
list =
|
292
|
+
gtk_source_buffer_get_source_marks_at_iter (_SELF (self),
|
293
|
+
RVAL2ITR (iter),
|
294
|
+
NIL_P (category) ? NULL : RVAL2CSTR (category));
|
295
|
+
ary = rb_ary_new ();
|
296
|
+
|
297
|
+
p = (GSList *) list;
|
298
|
+
while (p) {
|
299
|
+
rb_ary_push (ary, GOBJ2RVAL (p->data));
|
300
|
+
p = g_slist_next (p);
|
301
|
+
}
|
302
|
+
|
303
|
+
return ary;
|
304
|
+
}
|
305
|
+
|
306
|
+
static VALUE
|
307
|
+
sourcebuffer_remove_source_marks (argc, argv, self)
|
308
|
+
int argc;
|
309
|
+
VALUE *argv;
|
310
|
+
VALUE self;
|
311
|
+
{
|
312
|
+
VALUE start, end, category;
|
313
|
+
|
314
|
+
rb_scan_args (argc, argv, "21", &start, &end, &category);
|
315
|
+
|
316
|
+
gtk_source_buffer_remove_source_marks (_SELF (self),
|
317
|
+
RVAL2ITR (start),
|
318
|
+
RVAL2ITR (end),
|
319
|
+
NIL_P (category) ? NULL : RVAL2CSTR (category));
|
320
|
+
|
321
|
+
return self;
|
322
|
+
}
|
323
|
+
|
324
|
+
static VALUE
|
325
|
+
sourcebuffer_forward_iter_to_source_mark (argc, argv, self)
|
326
|
+
int argc;
|
327
|
+
VALUE *argv;
|
328
|
+
VALUE self;
|
329
|
+
{
|
330
|
+
VALUE iter, category;
|
331
|
+
|
332
|
+
rb_scan_args (argc, argv, "11", &iter, &category);
|
333
|
+
|
334
|
+
return
|
335
|
+
CBOOL2RVAL (gtk_source_buffer_forward_iter_to_source_mark
|
336
|
+
(_SELF (self), RVAL2ITR (iter),
|
337
|
+
NIL_P (category) ? NULL : RVAL2CSTR (category)));
|
338
|
+
}
|
339
|
+
|
340
|
+
static VALUE
|
341
|
+
sourcebuffer_backward_iter_to_source_mark (argc, argv, self)
|
342
|
+
int argc;
|
343
|
+
VALUE *argv;
|
344
|
+
VALUE self;
|
345
|
+
{
|
346
|
+
VALUE iter, category;
|
347
|
+
|
348
|
+
rb_scan_args (argc, argv, "11", &iter, &category);
|
349
|
+
|
350
|
+
return
|
351
|
+
CBOOL2RVAL (gtk_source_buffer_backward_iter_to_source_mark
|
352
|
+
(_SELF (self), RVAL2ITR (iter),
|
353
|
+
NIL_P (category) ? NULL : RVAL2CSTR (category)));
|
354
|
+
}
|
355
|
+
|
356
|
+
#endif /* HAVE_GTK_SOURCE_MARK_GET_TYPE */
|
357
|
+
|
358
|
+
static VALUE
|
359
|
+
sourcebuffer_ensure_highlight (self, start, end)
|
360
|
+
VALUE self, start, end;
|
361
|
+
{
|
362
|
+
gtk_source_buffer_ensure_highlight (_SELF (self), RVAL2ITR (start), RVAL2ITR (end));
|
363
|
+
|
364
|
+
return self;
|
365
|
+
}
|
366
|
+
|
367
|
+
void
|
368
|
+
Init_gtk_sourcebuffer ()
|
369
|
+
{
|
370
|
+
VALUE cbuffer =
|
371
|
+
G_DEF_CLASS (GTK_TYPE_SOURCE_BUFFER, "SourceBuffer", mGtk);
|
372
|
+
|
373
|
+
rb_define_method (cbuffer, "initialize", sourcebuffer_new, -1);
|
374
|
+
rb_define_method (cbuffer, "redo!", sourcebuffer_redo, 0);
|
375
|
+
rb_define_method (cbuffer, "undo!", sourcebuffer_undo, 0);
|
376
|
+
rb_define_method (cbuffer, "begin_not_undoable_action",
|
377
|
+
sourcebuffer_begin_not_undoable_action, 0);
|
378
|
+
rb_define_method (cbuffer, "end_not_undoable_action",
|
379
|
+
sourcebuffer_end_not_undoable_action, 0);
|
380
|
+
rb_define_method (cbuffer, "not_undoable_action",
|
381
|
+
sourcebuffer_not_undoable_action, 0);
|
382
|
+
rb_define_alias (cbuffer, "non_undoable_action", "not_undoable_action");
|
383
|
+
#ifdef HAVE_GTK_SOURCE_MARK_GET_TYPE
|
384
|
+
rb_define_method (cbuffer, "create_source_mark",
|
385
|
+
sourcebuffer_create_source_mark, -1);
|
386
|
+
rb_define_method (cbuffer, "get_source_marks_at_line",
|
387
|
+
sourcebuffer_get_source_marks_at_line, -1);
|
388
|
+
rb_define_method (cbuffer, "get_source_marks_at_iter",
|
389
|
+
sourcebuffer_get_source_marks_at_iter, -1);
|
390
|
+
rb_define_method (cbuffer, "remove_source_marks",
|
391
|
+
sourcebuffer_remove_source_marks, -1);
|
392
|
+
rb_define_method (cbuffer, "forward_iter_to_source_mark",
|
393
|
+
sourcebuffer_forward_iter_to_source_mark, -1);
|
394
|
+
rb_define_method (cbuffer, "backward_iter_to_source_mark",
|
395
|
+
sourcebuffer_backward_iter_to_source_mark, -1);
|
396
|
+
#endif
|
397
|
+
rb_define_method (cbuffer, "ensure_highlight",
|
398
|
+
sourcebuffer_ensure_highlight, 2);
|
399
|
+
|
400
|
+
G_DEF_SETTERS (cbuffer);
|
401
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/************************************************
|
3
|
+
|
4
|
+
rbgtksourceiter.c -
|
5
|
+
|
6
|
+
$Author: mutoh $
|
7
|
+
$Date: 2005/01/03 15:33:56 $
|
8
|
+
|
9
|
+
Copyright (C) 2004 Ruby-GNOME2 Project Team
|
10
|
+
************************************************/
|
11
|
+
#include "rbgtksourcemain.h"
|
12
|
+
|
13
|
+
#define _SELF(s) ((GtkTextIter*)RVAL2BOXED(s, GTK_TYPE_TEXT_ITER))
|
14
|
+
#define ITR2RVAL(i) (BOXED2RVAL(i, GTK_TYPE_TEXT_ITER))
|
15
|
+
|
16
|
+
/* Method: forward_search(str, flags, limit)
|
17
|
+
* str: the search string (string)
|
18
|
+
* flags: flags affecting the search (Gtk::SourceSearchFlags)
|
19
|
+
* limit: location of last possible match start, or NULL for start of buffer
|
20
|
+
* Returns: locations of start and end of match.
|
21
|
+
*/
|
22
|
+
static VALUE
|
23
|
+
forward_search (argc, argv, self)
|
24
|
+
int argc;
|
25
|
+
VALUE *argv;
|
26
|
+
VALUE self;
|
27
|
+
{
|
28
|
+
GtkTextIter m_start, m_end;
|
29
|
+
VALUE str, flags, limit;
|
30
|
+
VALUE ret = Qnil;
|
31
|
+
|
32
|
+
rb_scan_args (argc, argv, "21", &str, &flags, &limit);
|
33
|
+
|
34
|
+
if (rb_obj_is_kind_of
|
35
|
+
(flags, GTYPE2CLASS (GTK_TYPE_SOURCE_SEARCH_FLAGS))) {
|
36
|
+
if (gtk_source_iter_forward_search
|
37
|
+
(_SELF (self), RVAL2CSTR (str),
|
38
|
+
RVAL2GFLAGS (flags, GTK_TYPE_SOURCE_SEARCH_FLAGS),
|
39
|
+
&m_start, &m_end, NIL_P (limit) ? NULL : _SELF (limit)))
|
40
|
+
ret =
|
41
|
+
rb_ary_new3 (2, ITR2RVAL (&m_start),
|
42
|
+
ITR2RVAL (&m_end));
|
43
|
+
} else
|
44
|
+
if (rb_obj_is_kind_of
|
45
|
+
(flags, GTYPE2CLASS (GTK_TYPE_TEXT_SEARCH_FLAGS))) {
|
46
|
+
if (gtk_text_iter_forward_search
|
47
|
+
(_SELF (self), RVAL2CSTR (str),
|
48
|
+
RVAL2GFLAGS (flags, GTK_TYPE_TEXT_SEARCH_FLAGS), &m_start,
|
49
|
+
&m_end, NIL_P (limit) ? NULL : _SELF (limit)))
|
50
|
+
ret =
|
51
|
+
rb_ary_new3 (2, ITR2RVAL (&m_start),
|
52
|
+
ITR2RVAL (&m_end));
|
53
|
+
}
|
54
|
+
return ret;
|
55
|
+
}
|
56
|
+
|
57
|
+
/* Method: backward_search(str, flags, limit)
|
58
|
+
* str: the search string (string)
|
59
|
+
* flags: flags affecting the search (Gtk::SourceSearchFlags)
|
60
|
+
* limit: location of last possible match end, or NULL for end of buffer
|
61
|
+
* Returns: locations of start and end of match.
|
62
|
+
*/
|
63
|
+
static VALUE
|
64
|
+
backward_search (argc, argv, self)
|
65
|
+
int argc;
|
66
|
+
VALUE *argv;
|
67
|
+
VALUE self;
|
68
|
+
{
|
69
|
+
GtkTextIter m_start, m_end;
|
70
|
+
VALUE str, flags, limit;
|
71
|
+
VALUE ret = Qnil;
|
72
|
+
|
73
|
+
rb_scan_args (argc, argv, "21", &str, &flags, &limit);
|
74
|
+
if (rb_obj_is_kind_of
|
75
|
+
(flags, GTYPE2CLASS (GTK_TYPE_SOURCE_SEARCH_FLAGS))) {
|
76
|
+
if (gtk_source_iter_backward_search
|
77
|
+
(_SELF (self), RVAL2CSTR (str),
|
78
|
+
RVAL2GFLAGS (flags, GTK_TYPE_SOURCE_SEARCH_FLAGS),
|
79
|
+
&m_start, &m_end, NIL_P (limit) ? NULL : _SELF (limit)))
|
80
|
+
ret =
|
81
|
+
rb_ary_new3 (2, ITR2RVAL (&m_start),
|
82
|
+
ITR2RVAL (&m_end));
|
83
|
+
} else
|
84
|
+
if (rb_obj_is_kind_of
|
85
|
+
(flags, GTYPE2CLASS (GTK_TYPE_TEXT_SEARCH_FLAGS))) {
|
86
|
+
if (gtk_text_iter_backward_search
|
87
|
+
(_SELF (self), RVAL2CSTR (str),
|
88
|
+
RVAL2GFLAGS (flags, GTK_TYPE_TEXT_SEARCH_FLAGS), &m_start,
|
89
|
+
&m_end, NIL_P (limit) ? NULL : _SELF (limit)))
|
90
|
+
ret =
|
91
|
+
rb_ary_new3 (2, ITR2RVAL (&m_start),
|
92
|
+
ITR2RVAL (&m_end));
|
93
|
+
}
|
94
|
+
return ret;
|
95
|
+
}
|
96
|
+
|
97
|
+
void
|
98
|
+
Init_gtk_sourceiter ()
|
99
|
+
{
|
100
|
+
VALUE cTextIter = GTYPE2CLASS (GTK_TYPE_TEXT_ITER);
|
101
|
+
|
102
|
+
/*
|
103
|
+
* They are override original Gtk::TextIter#[for|back]ward_search
|
104
|
+
*/
|
105
|
+
rb_define_method (cTextIter, "forward_search", forward_search, -1);
|
106
|
+
rb_define_method (cTextIter, "backward_search", backward_search, -1);
|
107
|
+
|
108
|
+
G_DEF_CLASS(GTK_TYPE_SOURCE_SEARCH_FLAGS, "SourceSearchFlags", cTextIter);
|
109
|
+
G_DEF_CONSTANTS(cTextIter, GTK_TYPE_SOURCE_SEARCH_FLAGS, "GTK_");
|
110
|
+
}
|