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
@@ -0,0 +1,239 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/************************************************
|
3
|
+
|
4
|
+
rbgtksourceview.c -
|
5
|
+
|
6
|
+
$Author: mutoh $
|
7
|
+
$Date: 2006/12/17 16:15: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::SourceView
|
15
|
+
* A view on a source.
|
16
|
+
*/
|
17
|
+
#define _SELF(self) (GTK_SOURCE_VIEW(RVAL2GOBJ(self)))
|
18
|
+
|
19
|
+
/*
|
20
|
+
* Class method: new(buffer=nil)
|
21
|
+
* buffer: a Gtk::SourceBuffer object.
|
22
|
+
*
|
23
|
+
* Creates a new Gtk::SourceView. If buffer is not provided or nil, an empty
|
24
|
+
* buffer will be created for you. Note that one buffer can be shared among
|
25
|
+
* many widgets.
|
26
|
+
*
|
27
|
+
* Returns: a newly created Gtk::SourceView object.
|
28
|
+
*/
|
29
|
+
static VALUE
|
30
|
+
sourceview_initialize(int argc, VALUE *argv, VALUE self)
|
31
|
+
{
|
32
|
+
VALUE buffer;
|
33
|
+
GtkWidget *widget;
|
34
|
+
|
35
|
+
rb_scan_args(argc, argv, "01", &buffer);
|
36
|
+
|
37
|
+
if (NIL_P(buffer))
|
38
|
+
widget = gtk_source_view_new();
|
39
|
+
else
|
40
|
+
widget = gtk_source_view_new_with_buffer(RVAL2GOBJ(buffer));
|
41
|
+
|
42
|
+
RBGTK_INITIALIZE(self, widget);
|
43
|
+
return self;
|
44
|
+
}
|
45
|
+
|
46
|
+
/* Defined as properties.
|
47
|
+
void gtk_source_view_set_auto_indent (GtkSourceView *view,
|
48
|
+
gboolean enable)
|
49
|
+
gboolean gtk_source_view_get_auto_indent (GtkSourceView *view)
|
50
|
+
void gtk_source_view_set_indent_on_tab (GtkSourceView *view,
|
51
|
+
gboolean enable)
|
52
|
+
gboolean gtk_source_view_get_indent_on_tab (GtkSourceView *view)
|
53
|
+
void gtk_source_view_set_indent_width (GtkSourceView *view,
|
54
|
+
gint width)
|
55
|
+
gint gtk_source_view_get_indent_width (GtkSourceView *view)
|
56
|
+
void gtk_source_view_set_insert_spaces_instead_of_tabs
|
57
|
+
(GtkSourceView *view,
|
58
|
+
gboolean enable)
|
59
|
+
gboolean gtk_source_view_get_insert_spaces_instead_of_tabs
|
60
|
+
(GtkSourceView *view)
|
61
|
+
void gtk_source_view_set_smart_home_end (GtkSourceView *view,
|
62
|
+
GtkSourceSmartHomeEndType smart_he)
|
63
|
+
GtkSourceSmartHomeEndType gtk_source_view_get_smart_home_end
|
64
|
+
(GtkSourceView *view)
|
65
|
+
*/
|
66
|
+
|
67
|
+
#ifdef HAVE_GTK_SOURCE_MARK_GET_TYPE
|
68
|
+
/*
|
69
|
+
* Method: set_mark_category_pixbuf(category, pixbuf)
|
70
|
+
* category: a category (as a string).
|
71
|
+
* pixbuf: a Gdk::Pixbuf object.
|
72
|
+
*
|
73
|
+
* Associates a given pixbuf with a given category.
|
74
|
+
*
|
75
|
+
* Returns: self.
|
76
|
+
*/
|
77
|
+
static VALUE
|
78
|
+
sourceview_set_mark_category_pixbuf(VALUE self, VALUE category, VALUE pixbuf)
|
79
|
+
{
|
80
|
+
gtk_source_view_set_mark_category_pixbuf(_SELF(self),
|
81
|
+
RVAL2CSTR(category),
|
82
|
+
GDK_PIXBUF(RVAL2GOBJ(pixbuf)));
|
83
|
+
return self;
|
84
|
+
}
|
85
|
+
|
86
|
+
/*
|
87
|
+
* Method: get_mark_category_pixbuf(category)
|
88
|
+
* category: a category (as a string).
|
89
|
+
*
|
90
|
+
* Gets the pixbuf which is associated with the given category.
|
91
|
+
*
|
92
|
+
* Returns: a Gdk::Pixbuf object if found, or nil if not found.
|
93
|
+
*/
|
94
|
+
static VALUE
|
95
|
+
sourceview_get_mark_category_pixbuf(VALUE self, VALUE category)
|
96
|
+
{
|
97
|
+
GdkPixbuf *pixbuf;
|
98
|
+
|
99
|
+
pixbuf = gtk_source_view_get_mark_category_pixbuf(_SELF(self),
|
100
|
+
RVAL2CSTR(category));
|
101
|
+
return GOBJ2RVAL(pixbuf);
|
102
|
+
}
|
103
|
+
|
104
|
+
/*
|
105
|
+
* Method: set_mark_category_priority(category, priority)
|
106
|
+
* category: a category (as a string).
|
107
|
+
* priority: a priority (int).
|
108
|
+
*
|
109
|
+
* Associates a given priority with a given category.
|
110
|
+
*
|
111
|
+
* Returns: self.
|
112
|
+
*/
|
113
|
+
static VALUE
|
114
|
+
sourceview_set_mark_category_priority(VALUE self, VALUE category, VALUE priority)
|
115
|
+
{
|
116
|
+
gtk_source_view_set_mark_category_priority(_SELF (self),
|
117
|
+
RVAL2CSTR(category),
|
118
|
+
NUM2INT(priority));
|
119
|
+
return self;
|
120
|
+
}
|
121
|
+
|
122
|
+
/*
|
123
|
+
* Method: get_mark_category_priority(category)
|
124
|
+
* category: a category (as a string).
|
125
|
+
*
|
126
|
+
* Gets the priority which is associated with the given category.
|
127
|
+
*
|
128
|
+
* Returns: the priority if found, or 0 if not found.
|
129
|
+
*/
|
130
|
+
static VALUE
|
131
|
+
sourceview_get_mark_category_priority(VALUE self, VALUE category)
|
132
|
+
{
|
133
|
+
gint priority;
|
134
|
+
|
135
|
+
priority = gtk_source_view_get_mark_category_priority(_SELF(self),
|
136
|
+
RVAL2CSTR(category));
|
137
|
+
return INT2NUM(priority);
|
138
|
+
}
|
139
|
+
#endif /* HAVE_GTK_SOURCE_MARK_GET_TYPE */
|
140
|
+
|
141
|
+
#ifdef HAVE_GTK_SOURCE_VIEW_GET_MARK_CATEGORY_BACKGROUND
|
142
|
+
/*
|
143
|
+
* Method: get_mark_category_background(category)
|
144
|
+
* category: a category (as a string).
|
145
|
+
*
|
146
|
+
* Gets the background color which is associated with the given category.
|
147
|
+
*
|
148
|
+
* Returns: a Gdk::Color object if found, or nil if not found.
|
149
|
+
*/
|
150
|
+
static VALUE
|
151
|
+
sourceview_get_mark_category_background(VALUE self, VALUE category)
|
152
|
+
{
|
153
|
+
GdkColor color;
|
154
|
+
gtk_source_view_get_mark_category_background(_SELF (self),
|
155
|
+
RVAL2CSTR(category),
|
156
|
+
&color);
|
157
|
+
return GDKCOLOR2RVAL(&color);
|
158
|
+
}
|
159
|
+
|
160
|
+
/*
|
161
|
+
* Method: set_mark_category_background(category, color)
|
162
|
+
* category: a category (as a string).
|
163
|
+
* color: a Gdk::Color.
|
164
|
+
*
|
165
|
+
* Sets given background color for mark category. If color is NULL,
|
166
|
+
* the background color is unset.
|
167
|
+
*
|
168
|
+
* Returns: self.
|
169
|
+
*/
|
170
|
+
static VALUE
|
171
|
+
sourceview_set_mark_category_background(VALUE self, VALUE category, VALUE color)
|
172
|
+
{
|
173
|
+
gtk_source_view_set_mark_category_background(_SELF (self),
|
174
|
+
RVAL2CSTR (category),
|
175
|
+
RVAL2GDKCOLOR((color)));
|
176
|
+
return self;
|
177
|
+
}
|
178
|
+
# endif /* HAVE_GTK_SOURCE_VIEW_GET_MARK_CATEGORY_BACKGROUND */
|
179
|
+
|
180
|
+
/* Defined as properties.
|
181
|
+
void gtk_source_view_set_highlight_current_line
|
182
|
+
(GtkSourceView *view,
|
183
|
+
gboolean show)
|
184
|
+
gboolean gtk_source_view_get_highlight_current_line
|
185
|
+
(GtkSourceView *view)
|
186
|
+
void gtk_source_view_set_show_line_marks (GtkSourceView *view,
|
187
|
+
gboolean show);
|
188
|
+
gboolean gtk_source_view_get_show_line_marks (GtkSourceView *view)
|
189
|
+
void gtk_source_view_set_show_line_numbers
|
190
|
+
(GtkSourceView *view,
|
191
|
+
gboolean show)
|
192
|
+
gboolean gtk_source_view_get_show_line_numbers
|
193
|
+
(GtkSourceView *view)
|
194
|
+
void gtk_source_view_set_show_right_margin
|
195
|
+
(GtkSourceView *view,
|
196
|
+
gboolean show)
|
197
|
+
gboolean gtk_source_view_get_show_right_margin
|
198
|
+
(GtkSourceView *view)
|
199
|
+
void gtk_source_view_set_right_margin_position
|
200
|
+
(GtkSourceView *view,
|
201
|
+
guint pos)
|
202
|
+
guint gtk_source_view_get_right_margin_position
|
203
|
+
(GtkSourceView *view)
|
204
|
+
void gtk_source_view_set_tab_width (GtkSourceView *view,
|
205
|
+
guint width)
|
206
|
+
guint gtk_source_view_get_tab_width (GtkSourceView *view)
|
207
|
+
*/
|
208
|
+
|
209
|
+
void
|
210
|
+
Init_gtk_sourceview ()
|
211
|
+
{
|
212
|
+
VALUE cSourceView = G_DEF_CLASS (GTK_TYPE_SOURCE_VIEW, "SourceView", mGtk);
|
213
|
+
|
214
|
+
rb_define_const(cSourceView, "BUILD_VERSION",
|
215
|
+
rb_ary_new3(3,
|
216
|
+
INT2FIX(GTKSOURCEVIEW2_MAJOR_VERSION),
|
217
|
+
INT2FIX(GTKSOURCEVIEW2_MINOR_VERSION),
|
218
|
+
INT2FIX(GTKSOURCEVIEW2_MICRO_VERSION)));
|
219
|
+
|
220
|
+
rb_define_method(cSourceView, "initialize", sourceview_initialize, -1);
|
221
|
+
#ifdef HAVE_GTK_SOURCE_MARK_GET_TYPE
|
222
|
+
rb_define_method(cSourceView, "get_mark_category_pixbuf", sourceview_get_mark_category_pixbuf, 1);
|
223
|
+
rb_define_method(cSourceView, "set_mark_category_pixbuf", sourceview_set_mark_category_pixbuf, 2);
|
224
|
+
rb_define_method(cSourceView, "get_mark_category_priority", sourceview_get_mark_category_priority, 1);
|
225
|
+
rb_define_method(cSourceView, "set_mark_category_priority", sourceview_set_mark_category_priority, 2);
|
226
|
+
#endif
|
227
|
+
#ifdef HAVE_GTK_SOURCE_VIEW_GET_MARK_CATEGORY_BACKGROUND
|
228
|
+
rb_define_method(cSourceView, "get_mark_category_background", sourceview_get_mark_category_background, 1);
|
229
|
+
rb_define_method(cSourceView, "set_mark_category_background", sourceview_set_mark_category_background, 2);
|
230
|
+
#endif
|
231
|
+
G_DEF_SETTERS (cSourceView);
|
232
|
+
|
233
|
+
G_DEF_CLASS(GTK_TYPE_SOURCE_SMART_HOME_END_TYPE, "SmartHomeEndType", cSourceView);
|
234
|
+
G_DEF_CONSTANTS(cSourceView, GTK_TYPE_SOURCE_SMART_HOME_END_TYPE, "GTK_SOURCE_");
|
235
|
+
#ifdef HAVE_GTK_SOURCE_VIEW_GET_MARK_CATEGORY_BACKGROUND
|
236
|
+
G_DEF_CLASS(GTK_TYPE_SOURCE_DRAW_SPACES_FLAGS, "DrawSpacesFlags", cSourceView);
|
237
|
+
G_DEF_CONSTANTS(cSourceView, GTK_TYPE_SOURCE_DRAW_SPACES_FLAGS, "GTK_SOURCE_");
|
238
|
+
#endif
|
239
|
+
}
|
data/extconf.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
require 'mkmf'
|
5
|
+
require 'rbconfig'
|
6
|
+
require 'fileutils'
|
7
|
+
|
8
|
+
package = "gtksourceview2"
|
9
|
+
|
10
|
+
base_dir = Pathname(__FILE__).dirname.expand_path
|
11
|
+
ext_dir = base_dir + "ext" + package
|
12
|
+
mkmf_gnome2_dir = base_dir + 'lib'
|
13
|
+
|
14
|
+
ruby = File.join(RbConfig::CONFIG['bindir'],
|
15
|
+
RbConfig::CONFIG['ruby_install_name'] +
|
16
|
+
RbConfig::CONFIG["EXEEXT"])
|
17
|
+
|
18
|
+
build_dir = Pathname("ext") + package
|
19
|
+
FileUtils.mkdir_p(build_dir.to_s) unless build_dir.exist?
|
20
|
+
extconf_rb_path = ext_dir + "extconf.rb"
|
21
|
+
system(ruby, "-C", build_dir.to_s, extconf_rb_path.to_s, *ARGV) || exit(false)
|
22
|
+
|
23
|
+
create_makefile(package)
|
24
|
+
FileUtils.mv("Makefile", "Makefile.lib")
|
25
|
+
|
26
|
+
File.open("Makefile", "w") do |makefile|
|
27
|
+
makefile.puts(<<-EOM)
|
28
|
+
all:
|
29
|
+
(cd ext/#{package} && $(MAKE))
|
30
|
+
$(MAKE) -f Makefile.lib
|
31
|
+
|
32
|
+
install:
|
33
|
+
(cd ext/#{package} && $(MAKE) install)
|
34
|
+
$(MAKE) -f Makefile.lib install
|
35
|
+
|
36
|
+
site-install:
|
37
|
+
(cd ext/#{package} && $(MAKE) site-install)
|
38
|
+
$(MAKE) -f Makefile.lib site-install
|
39
|
+
|
40
|
+
clean:
|
41
|
+
(cd ext/#{package} && $(MAKE) clean)
|
42
|
+
$(MAKE) -f Makefile.lib clean
|
43
|
+
|
44
|
+
distclean:
|
45
|
+
(cd ext/#{package} && $(MAKE) distclean)
|
46
|
+
$(MAKE) -f Makefile.lib distclean
|
47
|
+
@rm -f Makefile.lib
|
48
|
+
EOM
|
49
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
=begin
|
3
|
+
sourcelanguagesmanager.rb - Ruby/GtkSourceView sample script.
|
4
|
+
|
5
|
+
Copyright (c) 2006 Ruby-GNOME2 Project Team
|
6
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
7
|
+
|
8
|
+
$Id: sourcelanguagesmanager.rb,v 1.3 2007/06/03 02:11:07 mutoh Exp $
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'gtksourceview2'
|
12
|
+
|
13
|
+
s = Gtk::SourceLanguageManager.new
|
14
|
+
s.language_ids.each do |v|
|
15
|
+
puts v
|
16
|
+
end
|
17
|
+
s.search_path.each do |v|
|
18
|
+
puts v
|
19
|
+
end
|
20
|
+
puts s.get_language("html").name
|
21
|
+
|
data/sample/test.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
=begin
|
3
|
+
test.rb - Ruby/GtkSourceView2 sample script.
|
4
|
+
|
5
|
+
Copyright (c) 2006 Ruby-GNOME2 Project Team
|
6
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
7
|
+
|
8
|
+
$Id: test.rb,v 1.4 2007/06/03 02:11:07 mutoh Exp $
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'gtksourceview2'
|
12
|
+
|
13
|
+
w = Gtk::Window.new
|
14
|
+
w.signal_connect("delete-event"){Gtk::main_quit}
|
15
|
+
|
16
|
+
view = Gtk::SourceView.new
|
17
|
+
w.add(Gtk::ScrolledWindow.new.add(view))
|
18
|
+
view.show_line_numbers = true
|
19
|
+
view.insert_spaces_instead_of_tabs = true
|
20
|
+
view.indent_width = 4
|
21
|
+
view.show_right_margin = true
|
22
|
+
view.right_margin_position = 80
|
23
|
+
|
24
|
+
lang = Gtk::SourceLanguageManager.new.get_language('ruby')
|
25
|
+
view.buffer.language = lang
|
26
|
+
view.buffer.highlight_syntax = true
|
27
|
+
view.buffer.highlight_matching_brackets = true
|
28
|
+
|
29
|
+
w.set_default_size(450,300)
|
30
|
+
w.show_all
|
31
|
+
|
32
|
+
Gtk.main
|
data/test/run-test.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
|
4
|
+
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
5
|
+
|
6
|
+
glib_base = File.join(ruby_gnome2_base, "glib2")
|
7
|
+
atk_base = File.join(ruby_gnome2_base, "atk")
|
8
|
+
pango_base = File.join(ruby_gnome2_base, "pango")
|
9
|
+
gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
|
10
|
+
gtk_base = File.join(ruby_gnome2_base, "gtk2")
|
11
|
+
gtk_source_view2_base = File.join(ruby_gnome2_base, "gtksourceview2")
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(glib_base)
|
14
|
+
require 'test/glib-test-init'
|
15
|
+
|
16
|
+
[glib_base, atk_base, pango_base, gdk_pixbuf_base, gtk_base,
|
17
|
+
gtk_source_view2_base].each do |target|
|
18
|
+
if system("which make > /dev/null")
|
19
|
+
`make -C #{target.dump} > /dev/null` or exit(1)
|
20
|
+
end
|
21
|
+
$LOAD_PATH.unshift(File.join(target, "ext", File.basename(target)))
|
22
|
+
$LOAD_PATH.unshift(File.join(target, "src"))
|
23
|
+
$LOAD_PATH.unshift(File.join(target, "src", "lib"))
|
24
|
+
$LOAD_PATH.unshift(File.join(target))
|
25
|
+
$LOAD_PATH.unshift(File.join(target, "lib"))
|
26
|
+
end
|
27
|
+
|
28
|
+
$LOAD_PATH.unshift(File.join(gtk_base, "test"))
|
29
|
+
require 'gtk-test-utils'
|
30
|
+
|
31
|
+
require 'gtksourceview2'
|
32
|
+
|
33
|
+
exit Test::Unit::AutoRunner.run(true)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
class TestSourceView < Test::Unit::TestCase
|
4
|
+
def test_mark_category_background
|
5
|
+
view = Gtk::SourceView.new
|
6
|
+
|
7
|
+
red_rgb = [65535, 0, 0]
|
8
|
+
red_color = Gdk::Color.parse("red")
|
9
|
+
assert_not_equal(red_rgb, view.get_mark_category_background("XXX").to_a)
|
10
|
+
|
11
|
+
view.set_mark_category_background("XXX", red_color)
|
12
|
+
assert_equal(red_rgb, view.get_mark_category_background("XXX").to_a)
|
13
|
+
|
14
|
+
view.set_mark_category_background("XXX", nil)
|
15
|
+
assert_not_equal(red_rgb, view.get_mark_category_background("XXX").to_a)
|
16
|
+
end
|
17
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
* gtksourcecompletionproviderwords.h
|
3
|
+
* This file is part of gtksourceview
|
4
|
+
*
|
5
|
+
* Copyright (C) 2009 - Jesse van den Kieboom
|
6
|
+
*
|
7
|
+
* gtksourceview is free software; you can redistribute it and/or modify
|
8
|
+
* it under the terms of the GNU General Public License as published by
|
9
|
+
* the Free Software Foundation; either version 2 of the License, or
|
10
|
+
* (at your option) any later version.
|
11
|
+
*
|
12
|
+
* gtksourceview is distributed in the hope that it will be useful,
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
* GNU General Public License for more details.
|
16
|
+
*
|
17
|
+
* You should have received a copy of the GNU General Public License
|
18
|
+
* along with gtksourceview; if not, write to the Free Software
|
19
|
+
* Foundation, Inc., 51 Franklin St, Fifth Floor,
|
20
|
+
* Boston, MA 02110-1301 USA
|
21
|
+
*/
|
22
|
+
|
23
|
+
#ifndef __GTK_SOURCE_COMPLETION_WORDS_H__
|
24
|
+
#define __GTK_SOURCE_COMPLETION_WORDS_H__
|
25
|
+
|
26
|
+
#include <gtksourceview/gtksourcecompletionprovider.h>
|
27
|
+
#include <gtk/gtk.h>
|
28
|
+
|
29
|
+
G_BEGIN_DECLS
|
30
|
+
|
31
|
+
#define GTK_TYPE_SOURCE_COMPLETION_WORDS (gtk_source_completion_words_get_type ())
|
32
|
+
#define GTK_SOURCE_COMPLETION_WORDS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SOURCE_COMPLETION_WORDS, GtkSourceCompletionWords))
|
33
|
+
#define GTK_SOURCE_COMPLETION_WORDS_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SOURCE_COMPLETION_WORDS, GtkSourceCompletionWords const))
|
34
|
+
#define GTK_SOURCE_COMPLETION_WORDS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOURCE_COMPLETION_WORDS, GtkSourceCompletionWordsClass))
|
35
|
+
#define GTK_IS_SOURCE_COMPLETION_WORDS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SOURCE_COMPLETION_WORDS))
|
36
|
+
#define GTK_IS_SOURCE_COMPLETION_WORDS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOURCE_COMPLETION_WORDS))
|
37
|
+
#define GTK_SOURCE_COMPLETION_WORDS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SOURCE_COMPLETION_WORDS, GtkSourceCompletionWordsClass))
|
38
|
+
|
39
|
+
typedef struct _GtkSourceCompletionWords GtkSourceCompletionWords;
|
40
|
+
typedef struct _GtkSourceCompletionWordsClass GtkSourceCompletionWordsClass;
|
41
|
+
typedef struct _GtkSourceCompletionWordsPrivate GtkSourceCompletionWordsPrivate;
|
42
|
+
|
43
|
+
struct _GtkSourceCompletionWords {
|
44
|
+
GObject parent;
|
45
|
+
|
46
|
+
GtkSourceCompletionWordsPrivate *priv;
|
47
|
+
};
|
48
|
+
|
49
|
+
struct _GtkSourceCompletionWordsClass {
|
50
|
+
GObjectClass parent_class;
|
51
|
+
};
|
52
|
+
|
53
|
+
GType gtk_source_completion_words_get_type (void) G_GNUC_CONST;
|
54
|
+
|
55
|
+
GtkSourceCompletionWords *
|
56
|
+
gtk_source_completion_words_new (const gchar *name,
|
57
|
+
GdkPixbuf *icon);
|
58
|
+
|
59
|
+
void gtk_source_completion_words_register (GtkSourceCompletionWords *words,
|
60
|
+
GtkTextBuffer *buffer);
|
61
|
+
|
62
|
+
void gtk_source_completion_words_unregister (GtkSourceCompletionWords *words,
|
63
|
+
GtkTextBuffer *buffer);
|
64
|
+
|
65
|
+
G_END_DECLS
|
66
|
+
|
67
|
+
#endif /* __GTK_SOURCE_COMPLETION_WORDS_H__ */
|
@@ -0,0 +1,181 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
* gtksourcebuffer.h
|
3
|
+
*
|
4
|
+
* Copyright (C) 1999,2000,2001,2002 by:
|
5
|
+
* Mikael Hermansson <tyan@linux.se>
|
6
|
+
* Chris Phelps <chicane@reninet.com>
|
7
|
+
* Jeroen Zwartepoorte <jeroen@xs4all.nl>
|
8
|
+
*
|
9
|
+
* Copyright (C) 2003 - Paolo Maggi, Gustavo Giráldez
|
10
|
+
*
|
11
|
+
* This program is free software; you can redistribute it and/or modify
|
12
|
+
* it under the terms of the GNU Library General Public License as published by
|
13
|
+
* the Free Software Foundation; either version 2 of the License, or
|
14
|
+
* (at your option) any later version.
|
15
|
+
*
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19
|
+
* GNU Library General Public License for more details.
|
20
|
+
*
|
21
|
+
* You should have received a copy of the GNU Library General Public License
|
22
|
+
* along with this program; if not, write to the Free Software
|
23
|
+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
24
|
+
*/
|
25
|
+
|
26
|
+
#ifndef __GTK_SOURCE_BUFFER_H__
|
27
|
+
#define __GTK_SOURCE_BUFFER_H__
|
28
|
+
|
29
|
+
#include <gtk/gtk.h>
|
30
|
+
#include <gtksourceview/gtksourcelanguage.h>
|
31
|
+
#include <gtksourceview/gtksourcemark.h>
|
32
|
+
#include <gtksourceview/gtksourcestylescheme.h>
|
33
|
+
#include <gtksourceview/gtksourceundomanager.h>
|
34
|
+
|
35
|
+
G_BEGIN_DECLS
|
36
|
+
|
37
|
+
#define GTK_TYPE_SOURCE_BUFFER (gtk_source_buffer_get_type ())
|
38
|
+
#define GTK_SOURCE_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SOURCE_BUFFER, GtkSourceBuffer))
|
39
|
+
#define GTK_SOURCE_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOURCE_BUFFER, GtkSourceBufferClass))
|
40
|
+
#define GTK_IS_SOURCE_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SOURCE_BUFFER))
|
41
|
+
#define GTK_IS_SOURCE_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOURCE_BUFFER))
|
42
|
+
#define GTK_SOURCE_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SOURCE_BUFFER, GtkSourceBufferClass))
|
43
|
+
|
44
|
+
typedef struct _GtkSourceBuffer GtkSourceBuffer;
|
45
|
+
typedef struct _GtkSourceBufferClass GtkSourceBufferClass;
|
46
|
+
typedef struct _GtkSourceBufferPrivate GtkSourceBufferPrivate;
|
47
|
+
|
48
|
+
struct _GtkSourceBuffer
|
49
|
+
{
|
50
|
+
GtkTextBuffer parent_instance;
|
51
|
+
|
52
|
+
GtkSourceBufferPrivate *priv;
|
53
|
+
};
|
54
|
+
|
55
|
+
struct _GtkSourceBufferClass
|
56
|
+
{
|
57
|
+
GtkTextBufferClass parent_class;
|
58
|
+
|
59
|
+
/* Signals */
|
60
|
+
void (*undo) (GtkSourceBuffer *buffer);
|
61
|
+
void (*redo) (GtkSourceBuffer *buffer);
|
62
|
+
|
63
|
+
/* Padding for future expansion */
|
64
|
+
void (*_gtk_source_reserved1) (void);
|
65
|
+
void (*_gtk_source_reserved2) (void);
|
66
|
+
void (*_gtk_source_reserved3) (void);
|
67
|
+
void (*_gtk_source_reserved4) (void);
|
68
|
+
};
|
69
|
+
|
70
|
+
GType gtk_source_buffer_get_type (void) G_GNUC_CONST;
|
71
|
+
|
72
|
+
|
73
|
+
/* Constructor */
|
74
|
+
GtkSourceBuffer *gtk_source_buffer_new (GtkTextTagTable *table);
|
75
|
+
GtkSourceBuffer *gtk_source_buffer_new_with_language (GtkSourceLanguage *language);
|
76
|
+
|
77
|
+
/* Properties */
|
78
|
+
gboolean gtk_source_buffer_get_highlight_syntax (GtkSourceBuffer *buffer);
|
79
|
+
void gtk_source_buffer_set_highlight_syntax (GtkSourceBuffer *buffer,
|
80
|
+
gboolean highlight);
|
81
|
+
|
82
|
+
gboolean gtk_source_buffer_get_highlight_matching_brackets
|
83
|
+
(GtkSourceBuffer *buffer);
|
84
|
+
void gtk_source_buffer_set_highlight_matching_brackets
|
85
|
+
(GtkSourceBuffer *buffer,
|
86
|
+
gboolean highlight);
|
87
|
+
|
88
|
+
gint gtk_source_buffer_get_max_undo_levels (GtkSourceBuffer *buffer);
|
89
|
+
void gtk_source_buffer_set_max_undo_levels (GtkSourceBuffer *buffer,
|
90
|
+
gint max_undo_levels);
|
91
|
+
|
92
|
+
GtkSourceLanguage *gtk_source_buffer_get_language (GtkSourceBuffer *buffer);
|
93
|
+
void gtk_source_buffer_set_language (GtkSourceBuffer *buffer,
|
94
|
+
GtkSourceLanguage *language);
|
95
|
+
|
96
|
+
gboolean gtk_source_buffer_can_undo (GtkSourceBuffer *buffer);
|
97
|
+
gboolean gtk_source_buffer_can_redo (GtkSourceBuffer *buffer);
|
98
|
+
|
99
|
+
GtkSourceStyleScheme *gtk_source_buffer_get_style_scheme (GtkSourceBuffer *buffer);
|
100
|
+
void gtk_source_buffer_set_style_scheme (GtkSourceBuffer *buffer,
|
101
|
+
GtkSourceStyleScheme *scheme);
|
102
|
+
|
103
|
+
/* Force highlighting */
|
104
|
+
void gtk_source_buffer_ensure_highlight (GtkSourceBuffer *buffer,
|
105
|
+
const GtkTextIter *start,
|
106
|
+
const GtkTextIter *end);
|
107
|
+
|
108
|
+
/* Undo/redo methods */
|
109
|
+
void gtk_source_buffer_undo (GtkSourceBuffer *buffer);
|
110
|
+
void gtk_source_buffer_redo (GtkSourceBuffer *buffer);
|
111
|
+
|
112
|
+
void gtk_source_buffer_begin_not_undoable_action (GtkSourceBuffer *buffer);
|
113
|
+
void gtk_source_buffer_end_not_undoable_action (GtkSourceBuffer *buffer);
|
114
|
+
|
115
|
+
/* Mark methods */
|
116
|
+
GtkSourceMark *gtk_source_buffer_create_source_mark (GtkSourceBuffer *buffer,
|
117
|
+
const gchar *name,
|
118
|
+
const gchar *category,
|
119
|
+
const GtkTextIter *where);
|
120
|
+
gboolean gtk_source_buffer_forward_iter_to_source_mark
|
121
|
+
(GtkSourceBuffer *buffer,
|
122
|
+
GtkTextIter *iter,
|
123
|
+
const gchar *category);
|
124
|
+
gboolean gtk_source_buffer_backward_iter_to_source_mark
|
125
|
+
(GtkSourceBuffer *buffer,
|
126
|
+
GtkTextIter *iter,
|
127
|
+
const gchar *category);
|
128
|
+
GSList *gtk_source_buffer_get_source_marks_at_iter
|
129
|
+
(GtkSourceBuffer *buffer,
|
130
|
+
GtkTextIter *iter,
|
131
|
+
const gchar *category);
|
132
|
+
GSList *gtk_source_buffer_get_source_marks_at_line
|
133
|
+
(GtkSourceBuffer *buffer,
|
134
|
+
gint line,
|
135
|
+
const gchar *category);
|
136
|
+
void gtk_source_buffer_remove_source_marks (GtkSourceBuffer *buffer,
|
137
|
+
const GtkTextIter *start,
|
138
|
+
const GtkTextIter *end,
|
139
|
+
const gchar *category);
|
140
|
+
|
141
|
+
gboolean gtk_source_buffer_iter_has_context_class
|
142
|
+
(GtkSourceBuffer *buffer,
|
143
|
+
const GtkTextIter *iter,
|
144
|
+
const gchar *context_class);
|
145
|
+
|
146
|
+
gchar **gtk_source_buffer_get_context_classes_at_iter
|
147
|
+
(GtkSourceBuffer *buffer,
|
148
|
+
const GtkTextIter *iter);
|
149
|
+
|
150
|
+
gboolean gtk_source_buffer_iter_forward_to_context_class_toggle
|
151
|
+
(GtkSourceBuffer *buffer,
|
152
|
+
GtkTextIter *iter,
|
153
|
+
const gchar *context_class);
|
154
|
+
|
155
|
+
gboolean gtk_source_buffer_iter_backward_to_context_class_toggle
|
156
|
+
(GtkSourceBuffer *buffer,
|
157
|
+
GtkTextIter *iter,
|
158
|
+
const gchar *context_class);
|
159
|
+
|
160
|
+
GtkSourceUndoManager *gtk_source_buffer_get_undo_manager (GtkSourceBuffer *buffer);
|
161
|
+
void gtk_source_buffer_set_undo_manager (GtkSourceBuffer *buffer,
|
162
|
+
GtkSourceUndoManager *manager);
|
163
|
+
|
164
|
+
/* private */
|
165
|
+
void _gtk_source_buffer_update_highlight (GtkSourceBuffer *buffer,
|
166
|
+
const GtkTextIter *start,
|
167
|
+
const GtkTextIter *end,
|
168
|
+
gboolean synchronous);
|
169
|
+
|
170
|
+
GtkSourceMark *_gtk_source_buffer_source_mark_next (GtkSourceBuffer *buffer,
|
171
|
+
GtkSourceMark *mark,
|
172
|
+
const gchar *category);
|
173
|
+
GtkSourceMark *_gtk_source_buffer_source_mark_prev (GtkSourceBuffer *buffer,
|
174
|
+
GtkSourceMark *mark,
|
175
|
+
const gchar *category);
|
176
|
+
|
177
|
+
GtkTextTag *_gtk_source_buffer_get_bracket_match_tag (GtkSourceBuffer *buffer);
|
178
|
+
|
179
|
+
G_END_DECLS
|
180
|
+
|
181
|
+
#endif /* __GTK_SOURCE_BUFFER_H__ */
|