gtksourceview4 3.2.9-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/COPYING.LIB +502 -0
- data/README.md +24 -0
- data/Rakefile +61 -0
- data/dependency-check/Rakefile +43 -0
- data/gtksourceview4.gemspec +45 -0
- data/lib/gtksourceview4.rb +56 -0
- data/lib/gtksourceview4/deprecated.rb +49 -0
- data/lib/gtksourceview4/loader.rb +49 -0
- data/lib/gtksourceview4/mark-attributes.rb +29 -0
- data/test/run-test.rb +62 -0
- data/test/test-mark-attributes.rb +26 -0
- data/test/test-source-gutter-renderer.rb +33 -0
- data/test/test-source-language-manager.rb +46 -0
- data/test/test-source-view.rb +55 -0
- data/vendor/local/bin/libgtksourceview-4-0.dll +0 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +72 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource-enumtypes.h +107 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource.h +67 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceautocleanups.h +63 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcebuffer.h +279 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletion.h +156 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioncontext.h +102 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioninfo.h +77 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionitem.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionproposal.h +126 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionprovider.h +166 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceencoding.h +74 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefile.h +195 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefileloader.h +140 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefilesaver.h +168 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutter.h +93 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderer.h +272 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrendererpixbuf.h +91 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderertext.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceinit.h +40 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguage.h +98 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguagemanager.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemap.h +70 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemark.h +79 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemarkattributes.h +112 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceprintcompositor.h +223 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceregion.h +127 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchcontext.h +161 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchsettings.h +100 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcespacedrawer.h +144 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyle.h +54 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestylescheme.h +119 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooser.h +66 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserbutton.h +64 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserwidget.h +64 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschememanager.h +100 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetag.h +54 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetypes.h +73 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceundomanager.h +90 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceutils.h +41 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceversion.h +578 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceview.h +266 -0
- data/vendor/local/lib/girepository-1.0/GtkSource-4.typelib +0 -0
- data/vendor/local/lib/libgtksourceview-4.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-4.la +41 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-4.pc +12 -0
- data/vendor/local/share/gir-1.0/GtkSource-4.gir +12999 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceBuffer.html +2421 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletion.html +1087 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionContext.html +402 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionInfo.html +207 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionItem.html +497 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProposal.html +668 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProvider.html +837 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionWords.html +343 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceEncoding.html +391 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFile.html +769 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileLoader.html +780 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileSaver.html +965 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutter.html +438 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRenderer.html +1708 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererPixbuf.html +369 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererText.html +299 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguage.html +579 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguageManager.html +473 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMap.html +254 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMark.html +307 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMarkAttributes.html +788 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourcePrintCompositor.html +2121 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceRegion.html +870 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchContext.html +1216 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchSettings.html +603 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSpaceDrawer.html +671 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyle.html +433 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleScheme.html +396 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooser.html +214 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserButton.html +127 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserWidget.html +127 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeManager.html +460 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceTag.html +179 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceUndoManager.html +460 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceView.html +2369 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annexes.html +55 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annotation-glossary.html +74 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-0.html +62 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-10.html +86 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-12.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-2.html +270 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-4.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-8.html +46 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-0.html +42 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-10.html +170 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-12.html +38 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-14.html +298 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-16.html +106 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-18.html +114 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-20.html +130 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-22.html +106 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-24.html +126 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-4.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-4-0.html +65 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-deprecated.html +30 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-full.html +2586 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-reference.html +174 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/completion.html +52 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/file-loading-and-saving.html +43 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/general.html +32 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceUtils.html +151 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceView-Initialization-and-Finalization.html +100 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-Version-Information.html +511 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0.devhelp2 +819 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gutter.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/index.html +215 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/intro.html +56 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-reference.html +946 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-tutorial.html +652 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/main-classes.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/misc.html +52 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/object-tree.html +98 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide-3-to-4.html +152 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide.html +33 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/printing.html +32 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/search-and-replace.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style-reference.html +305 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style.css +483 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/styling.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting-reference.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up.png +0 -0
- data/vendor/local/share/gtksourceview-4/language-specs/R.lang +2198 -0
- data/vendor/local/share/gtksourceview-4/language-specs/abnf.lang +109 -0
- data/vendor/local/share/gtksourceview-4/language-specs/actionscript.lang +267 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ada.lang +220 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ansforth94.lang +728 -0
- data/vendor/local/share/gtksourceview-4/language-specs/asp.lang +1096 -0
- data/vendor/local/share/gtksourceview-4/language-specs/automake.lang +329 -0
- data/vendor/local/share/gtksourceview-4/language-specs/awk.lang +137 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bennugd.lang +266 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bibtex.lang +120 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bluespec.lang +187 -0
- data/vendor/local/share/gtksourceview-4/language-specs/boo.lang +256 -0
- data/vendor/local/share/gtksourceview-4/language-specs/c.lang +343 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cg.lang +231 -0
- data/vendor/local/share/gtksourceview-4/language-specs/changelog.lang +91 -0
- data/vendor/local/share/gtksourceview-4/language-specs/chdr.lang +50 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cmake.lang +817 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cobol.lang +646 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cpp.lang +119 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cpphdr.lang +41 -0
- data/vendor/local/share/gtksourceview-4/language-specs/csharp.lang +285 -0
- data/vendor/local/share/gtksourceview-4/language-specs/css.lang +2411 -0
- data/vendor/local/share/gtksourceview-4/language-specs/csv.lang +73 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cuda.lang +281 -0
- data/vendor/local/share/gtksourceview-4/language-specs/d.lang +317 -0
- data/vendor/local/share/gtksourceview-4/language-specs/def.lang +261 -0
- data/vendor/local/share/gtksourceview-4/language-specs/desktop.lang +297 -0
- data/vendor/local/share/gtksourceview-4/language-specs/diff.lang +84 -0
- data/vendor/local/share/gtksourceview-4/language-specs/docbook.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dosbatch.lang +166 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dot.lang +139 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dpatch.lang +47 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dtd.lang +139 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dtl.lang +297 -0
- data/vendor/local/share/gtksourceview-4/language-specs/eiffel.lang +238 -0
- data/vendor/local/share/gtksourceview-4/language-specs/erlang.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fcl.lang +113 -0
- data/vendor/local/share/gtksourceview-4/language-specs/forth.lang +234 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fortran.lang +710 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fsharp.lang +324 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gap.lang +84 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gdb-log.lang +151 -0
- data/vendor/local/share/gtksourceview-4/language-specs/genie.lang +237 -0
- data/vendor/local/share/gtksourceview-4/language-specs/glsl.lang +482 -0
- data/vendor/local/share/gtksourceview-4/language-specs/go.lang +274 -0
- data/vendor/local/share/gtksourceview-4/language-specs/groovy.lang +330 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gtk-doc.lang +90 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gtkrc.lang +115 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haddock.lang +161 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haskell-literate.lang +58 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haskell.lang +227 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haxe.lang +237 -0
- data/vendor/local/share/gtksourceview-4/language-specs/html.lang +286 -0
- data/vendor/local/share/gtksourceview-4/language-specs/idl-exelis.lang +619 -0
- data/vendor/local/share/gtksourceview-4/language-specs/idl.lang +153 -0
- data/vendor/local/share/gtksourceview-4/language-specs/imagej.lang +783 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ini.lang +94 -0
- data/vendor/local/share/gtksourceview-4/language-specs/j.lang +239 -0
- data/vendor/local/share/gtksourceview-4/language-specs/jade.lang +248 -0
- data/vendor/local/share/gtksourceview-4/language-specs/java.lang +188 -0
- data/vendor/local/share/gtksourceview-4/language-specs/javascript.lang +354 -0
- data/vendor/local/share/gtksourceview-4/language-specs/json.lang +124 -0
- data/vendor/local/share/gtksourceview-4/language-specs/julia.lang +376 -0
- data/vendor/local/share/gtksourceview-4/language-specs/kotlin.lang +389 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language.dtd +72 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language.rng +372 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language2.rng +481 -0
- data/vendor/local/share/gtksourceview-4/language-specs/latex.lang +636 -0
- data/vendor/local/share/gtksourceview-4/language-specs/less.lang +793 -0
- data/vendor/local/share/gtksourceview-4/language-specs/lex.lang +208 -0
- data/vendor/local/share/gtksourceview-4/language-specs/libtool.lang +55 -0
- data/vendor/local/share/gtksourceview-4/language-specs/llvm.lang +314 -0
- data/vendor/local/share/gtksourceview-4/language-specs/logcat.lang +107 -0
- data/vendor/local/share/gtksourceview-4/language-specs/lua.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/m4.lang +1374 -0
- data/vendor/local/share/gtksourceview-4/language-specs/makefile.lang +190 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mallard.lang +123 -0
- data/vendor/local/share/gtksourceview-4/language-specs/markdown.lang +401 -0
- data/vendor/local/share/gtksourceview-4/language-specs/matlab.lang +148 -0
- data/vendor/local/share/gtksourceview-4/language-specs/maxima.lang +1864 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mediawiki.lang +326 -0
- data/vendor/local/share/gtksourceview-4/language-specs/meson.lang +132 -0
- data/vendor/local/share/gtksourceview-4/language-specs/modelica.lang +261 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mxml.lang +64 -0
- data/vendor/local/share/gtksourceview-4/language-specs/nemerle.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/netrexx.lang +318 -0
- data/vendor/local/share/gtksourceview-4/language-specs/nsis.lang +87 -0
- data/vendor/local/share/gtksourceview-4/language-specs/objc.lang +119 -0
- data/vendor/local/share/gtksourceview-4/language-specs/objj.lang +127 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ocaml.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ocl.lang +138 -0
- data/vendor/local/share/gtksourceview-4/language-specs/octave.lang +1757 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ooc.lang +264 -0
- data/vendor/local/share/gtksourceview-4/language-specs/opal.lang +342 -0
- data/vendor/local/share/gtksourceview-4/language-specs/opencl.lang +599 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pascal.lang +267 -0
- data/vendor/local/share/gtksourceview-4/language-specs/perl.lang +1044 -0
- data/vendor/local/share/gtksourceview-4/language-specs/php.lang +362 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pig.lang +292 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pkgconfig.lang +61 -0
- data/vendor/local/share/gtksourceview-4/language-specs/po.lang +93 -0
- data/vendor/local/share/gtksourceview-4/language-specs/prolog.lang +248 -0
- data/vendor/local/share/gtksourceview-4/language-specs/protobuf.lang +134 -0
- data/vendor/local/share/gtksourceview-4/language-specs/puppet.lang +696 -0
- data/vendor/local/share/gtksourceview-4/language-specs/python.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/python3.lang +198 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rpmspec.lang +215 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rst.lang +141 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ruby.lang +748 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rust.lang +334 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scala.lang +383 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scheme.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scilab.lang +208 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scss.lang +878 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sh.lang +516 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sml.lang +200 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sparql.lang +451 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sql.lang +617 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sweave.lang +66 -0
- data/vendor/local/share/gtksourceview-4/language-specs/swift.lang +440 -0
- data/vendor/local/share/gtksourceview-4/language-specs/systemverilog.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/t2t.lang +149 -0
- data/vendor/local/share/gtksourceview-4/language-specs/tcl.lang +145 -0
- data/vendor/local/share/gtksourceview-4/language-specs/tera.lang +142 -0
- data/vendor/local/share/gtksourceview-4/language-specs/texinfo.lang +447 -0
- data/vendor/local/share/gtksourceview-4/language-specs/thrift.lang +266 -0
- data/vendor/local/share/gtksourceview-4/language-specs/toml.lang +282 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vala.lang +411 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vbnet.lang +247 -0
- data/vendor/local/share/gtksourceview-4/language-specs/verilog.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vhdl.lang +247 -0
- data/vendor/local/share/gtksourceview-4/language-specs/xml.lang +219 -0
- data/vendor/local/share/gtksourceview-4/language-specs/xslt.lang +120 -0
- data/vendor/local/share/gtksourceview-4/language-specs/yacc.lang +176 -0
- data/vendor/local/share/gtksourceview-4/language-specs/yaml.lang +213 -0
- data/vendor/local/share/gtksourceview-4/styles/classic.xml +122 -0
- data/vendor/local/share/gtksourceview-4/styles/cobalt.xml +150 -0
- data/vendor/local/share/gtksourceview-4/styles/kate.xml +171 -0
- data/vendor/local/share/gtksourceview-4/styles/oblivion.xml +133 -0
- data/vendor/local/share/gtksourceview-4/styles/solarized-dark.xml +103 -0
- data/vendor/local/share/gtksourceview-4/styles/solarized-light.xml +102 -0
- data/vendor/local/share/gtksourceview-4/styles/styles.rng +139 -0
- data/vendor/local/share/gtksourceview-4/styles/tango.xml +130 -0
- data/vendor/local/share/license/gtksourceview/AUTHORS +15 -0
- data/vendor/local/share/license/gtksourceview/COPYING +504 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fur/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtksourceview-4.mo +0 -0
- metadata +437 -0
@@ -0,0 +1,279 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
*
|
3
|
+
* This file is part of GtkSourceView
|
4
|
+
*
|
5
|
+
* Copyright (C) 1999-2002 - Mikael Hermansson <tyan@linux.se>,
|
6
|
+
* Chris Phelps <chicane@reninet.com> and
|
7
|
+
* Jeroen Zwartepoorte <jeroen@xs4all.nl>
|
8
|
+
* Copyright (C) 2003 - Paolo Maggi, Gustavo Giráldez
|
9
|
+
* Copyright (C) 2014 - Sébastien Wilmet <swilmet@gnome.org>
|
10
|
+
*
|
11
|
+
* GtkSourceView is free software; you can redistribute it and/or
|
12
|
+
* modify it under the terms of the GNU Lesser General Public
|
13
|
+
* License as published by the Free Software Foundation; either
|
14
|
+
* version 2.1 of the License, or (at your option) any later version.
|
15
|
+
*
|
16
|
+
* GtkSourceView 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 GNU
|
19
|
+
* Lesser General Public License for more details.
|
20
|
+
*
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
22
|
+
* along with this library; if not, see <http://www.gnu.org/licenses/>.
|
23
|
+
*/
|
24
|
+
|
25
|
+
#ifndef GTK_SOURCE_BUFFER_H
|
26
|
+
#define GTK_SOURCE_BUFFER_H
|
27
|
+
|
28
|
+
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
|
29
|
+
#error "Only <gtksourceview/gtksource.h> can be included directly."
|
30
|
+
#endif
|
31
|
+
|
32
|
+
#include <gtk/gtk.h>
|
33
|
+
#include <gtksourceview/gtksourcetypes.h>
|
34
|
+
|
35
|
+
G_BEGIN_DECLS
|
36
|
+
|
37
|
+
#define GTK_SOURCE_TYPE_BUFFER (gtk_source_buffer_get_type ())
|
38
|
+
#define GTK_SOURCE_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_BUFFER, GtkSourceBuffer))
|
39
|
+
#define GTK_SOURCE_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_BUFFER, GtkSourceBufferClass))
|
40
|
+
#define GTK_SOURCE_IS_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_BUFFER))
|
41
|
+
#define GTK_SOURCE_IS_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_BUFFER))
|
42
|
+
#define GTK_SOURCE_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_BUFFER, GtkSourceBufferClass))
|
43
|
+
|
44
|
+
typedef struct _GtkSourceBufferClass GtkSourceBufferClass;
|
45
|
+
typedef struct _GtkSourceBufferPrivate GtkSourceBufferPrivate;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* GtkSourceBracketMatchType:
|
49
|
+
* @GTK_SOURCE_BRACKET_MATCH_NONE: there is no bracket to match.
|
50
|
+
* @GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE: matching a bracket
|
51
|
+
* failed because the maximum range was reached.
|
52
|
+
* @GTK_SOURCE_BRACKET_MATCH_NOT_FOUND: a matching bracket was not found.
|
53
|
+
* @GTK_SOURCE_BRACKET_MATCH_FOUND: a matching bracket was found.
|
54
|
+
*/
|
55
|
+
typedef enum _GtkSourceBracketMatchType
|
56
|
+
{
|
57
|
+
GTK_SOURCE_BRACKET_MATCH_NONE,
|
58
|
+
GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE,
|
59
|
+
GTK_SOURCE_BRACKET_MATCH_NOT_FOUND,
|
60
|
+
GTK_SOURCE_BRACKET_MATCH_FOUND
|
61
|
+
} GtkSourceBracketMatchType;
|
62
|
+
|
63
|
+
/**
|
64
|
+
* GtkSourceChangeCaseType:
|
65
|
+
* @GTK_SOURCE_CHANGE_CASE_LOWER: change case to lowercase.
|
66
|
+
* @GTK_SOURCE_CHANGE_CASE_UPPER: change case to uppercase.
|
67
|
+
* @GTK_SOURCE_CHANGE_CASE_TOGGLE: toggle case of each character.
|
68
|
+
* @GTK_SOURCE_CHANGE_CASE_TITLE: capitalize each word.
|
69
|
+
*
|
70
|
+
* Since: 3.12
|
71
|
+
*/
|
72
|
+
typedef enum _GtkSourceChangeCaseType
|
73
|
+
{
|
74
|
+
GTK_SOURCE_CHANGE_CASE_LOWER,
|
75
|
+
GTK_SOURCE_CHANGE_CASE_UPPER,
|
76
|
+
GTK_SOURCE_CHANGE_CASE_TOGGLE,
|
77
|
+
GTK_SOURCE_CHANGE_CASE_TITLE
|
78
|
+
} GtkSourceChangeCaseType;
|
79
|
+
|
80
|
+
/**
|
81
|
+
* GtkSourceSortFlags:
|
82
|
+
* @GTK_SOURCE_SORT_FLAGS_NONE: no flags specified
|
83
|
+
* @GTK_SOURCE_SORT_FLAGS_CASE_SENSITIVE: case sensitive sort
|
84
|
+
* @GTK_SOURCE_SORT_FLAGS_REVERSE_ORDER: sort in reverse order
|
85
|
+
* @GTK_SOURCE_SORT_FLAGS_REMOVE_DUPLICATES: remove duplicates
|
86
|
+
*
|
87
|
+
* Since: 3.18
|
88
|
+
*/
|
89
|
+
typedef enum _GtkSourceSortFlags
|
90
|
+
{
|
91
|
+
GTK_SOURCE_SORT_FLAGS_NONE = 0,
|
92
|
+
GTK_SOURCE_SORT_FLAGS_CASE_SENSITIVE = 1 << 0,
|
93
|
+
GTK_SOURCE_SORT_FLAGS_REVERSE_ORDER = 1 << 1,
|
94
|
+
GTK_SOURCE_SORT_FLAGS_REMOVE_DUPLICATES = 1 << 2,
|
95
|
+
} GtkSourceSortFlags;
|
96
|
+
|
97
|
+
struct _GtkSourceBuffer
|
98
|
+
{
|
99
|
+
GtkTextBuffer parent_instance;
|
100
|
+
|
101
|
+
GtkSourceBufferPrivate *priv;
|
102
|
+
};
|
103
|
+
|
104
|
+
struct _GtkSourceBufferClass
|
105
|
+
{
|
106
|
+
GtkTextBufferClass parent_class;
|
107
|
+
|
108
|
+
/* Signals */
|
109
|
+
void (*undo) (GtkSourceBuffer *buffer);
|
110
|
+
void (*redo) (GtkSourceBuffer *buffer);
|
111
|
+
|
112
|
+
void (*bracket_matched) (GtkSourceBuffer *buffer,
|
113
|
+
GtkTextIter *iter,
|
114
|
+
GtkSourceBracketMatchType state);
|
115
|
+
|
116
|
+
/* Padding for future expansion */
|
117
|
+
gpointer padding[20];
|
118
|
+
};
|
119
|
+
|
120
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
121
|
+
GType gtk_source_buffer_get_type (void) G_GNUC_CONST;
|
122
|
+
|
123
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
124
|
+
GtkSourceBuffer *gtk_source_buffer_new (GtkTextTagTable *table);
|
125
|
+
|
126
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
127
|
+
GtkSourceBuffer *gtk_source_buffer_new_with_language (GtkSourceLanguage *language);
|
128
|
+
|
129
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
130
|
+
gboolean gtk_source_buffer_get_highlight_syntax (GtkSourceBuffer *buffer);
|
131
|
+
|
132
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
133
|
+
void gtk_source_buffer_set_highlight_syntax (GtkSourceBuffer *buffer,
|
134
|
+
gboolean highlight);
|
135
|
+
|
136
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
137
|
+
gboolean gtk_source_buffer_get_highlight_matching_brackets (GtkSourceBuffer *buffer);
|
138
|
+
|
139
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
140
|
+
void gtk_source_buffer_set_highlight_matching_brackets (GtkSourceBuffer *buffer,
|
141
|
+
gboolean highlight);
|
142
|
+
|
143
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
144
|
+
gint gtk_source_buffer_get_max_undo_levels (GtkSourceBuffer *buffer);
|
145
|
+
|
146
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
147
|
+
void gtk_source_buffer_set_max_undo_levels (GtkSourceBuffer *buffer,
|
148
|
+
gint max_undo_levels);
|
149
|
+
|
150
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
151
|
+
GtkSourceLanguage *gtk_source_buffer_get_language (GtkSourceBuffer *buffer);
|
152
|
+
|
153
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
154
|
+
void gtk_source_buffer_set_language (GtkSourceBuffer *buffer,
|
155
|
+
GtkSourceLanguage *language);
|
156
|
+
|
157
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
158
|
+
gboolean gtk_source_buffer_can_undo (GtkSourceBuffer *buffer);
|
159
|
+
|
160
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
161
|
+
gboolean gtk_source_buffer_can_redo (GtkSourceBuffer *buffer);
|
162
|
+
|
163
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
164
|
+
GtkSourceStyleScheme *gtk_source_buffer_get_style_scheme (GtkSourceBuffer *buffer);
|
165
|
+
|
166
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
167
|
+
void gtk_source_buffer_set_style_scheme (GtkSourceBuffer *buffer,
|
168
|
+
GtkSourceStyleScheme *scheme);
|
169
|
+
|
170
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
171
|
+
void gtk_source_buffer_ensure_highlight (GtkSourceBuffer *buffer,
|
172
|
+
const GtkTextIter *start,
|
173
|
+
const GtkTextIter *end);
|
174
|
+
|
175
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
176
|
+
void gtk_source_buffer_undo (GtkSourceBuffer *buffer);
|
177
|
+
|
178
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
179
|
+
void gtk_source_buffer_redo (GtkSourceBuffer *buffer);
|
180
|
+
|
181
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
182
|
+
void gtk_source_buffer_begin_not_undoable_action (GtkSourceBuffer *buffer);
|
183
|
+
|
184
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
185
|
+
void gtk_source_buffer_end_not_undoable_action (GtkSourceBuffer *buffer);
|
186
|
+
|
187
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
188
|
+
GtkSourceMark *gtk_source_buffer_create_source_mark (GtkSourceBuffer *buffer,
|
189
|
+
const gchar *name,
|
190
|
+
const gchar *category,
|
191
|
+
const GtkTextIter *where);
|
192
|
+
|
193
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
194
|
+
gboolean gtk_source_buffer_forward_iter_to_source_mark (GtkSourceBuffer *buffer,
|
195
|
+
GtkTextIter *iter,
|
196
|
+
const gchar *category);
|
197
|
+
|
198
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
199
|
+
gboolean gtk_source_buffer_backward_iter_to_source_mark (GtkSourceBuffer *buffer,
|
200
|
+
GtkTextIter *iter,
|
201
|
+
const gchar *category);
|
202
|
+
|
203
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
204
|
+
GSList *gtk_source_buffer_get_source_marks_at_iter (GtkSourceBuffer *buffer,
|
205
|
+
GtkTextIter *iter,
|
206
|
+
const gchar *category);
|
207
|
+
|
208
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
209
|
+
GSList *gtk_source_buffer_get_source_marks_at_line (GtkSourceBuffer *buffer,
|
210
|
+
gint line,
|
211
|
+
const gchar *category);
|
212
|
+
|
213
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
214
|
+
void gtk_source_buffer_remove_source_marks (GtkSourceBuffer *buffer,
|
215
|
+
const GtkTextIter *start,
|
216
|
+
const GtkTextIter *end,
|
217
|
+
const gchar *category);
|
218
|
+
|
219
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
220
|
+
gboolean gtk_source_buffer_iter_has_context_class (GtkSourceBuffer *buffer,
|
221
|
+
const GtkTextIter *iter,
|
222
|
+
const gchar *context_class);
|
223
|
+
|
224
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
225
|
+
gchar **gtk_source_buffer_get_context_classes_at_iter (GtkSourceBuffer *buffer,
|
226
|
+
const GtkTextIter *iter);
|
227
|
+
|
228
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
229
|
+
gboolean gtk_source_buffer_iter_forward_to_context_class_toggle (GtkSourceBuffer *buffer,
|
230
|
+
GtkTextIter *iter,
|
231
|
+
const gchar *context_class);
|
232
|
+
|
233
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
234
|
+
gboolean gtk_source_buffer_iter_backward_to_context_class_toggle
|
235
|
+
(GtkSourceBuffer *buffer,
|
236
|
+
GtkTextIter *iter,
|
237
|
+
const gchar *context_class);
|
238
|
+
|
239
|
+
GTK_SOURCE_AVAILABLE_IN_3_12
|
240
|
+
void gtk_source_buffer_change_case (GtkSourceBuffer *buffer,
|
241
|
+
GtkSourceChangeCaseType case_type,
|
242
|
+
GtkTextIter *start,
|
243
|
+
GtkTextIter *end);
|
244
|
+
|
245
|
+
GTK_SOURCE_AVAILABLE_IN_3_16
|
246
|
+
void gtk_source_buffer_join_lines (GtkSourceBuffer *buffer,
|
247
|
+
GtkTextIter *start,
|
248
|
+
GtkTextIter *end);
|
249
|
+
|
250
|
+
GTK_SOURCE_AVAILABLE_IN_3_18
|
251
|
+
void gtk_source_buffer_sort_lines (GtkSourceBuffer *buffer,
|
252
|
+
GtkTextIter *start,
|
253
|
+
GtkTextIter *end,
|
254
|
+
GtkSourceSortFlags flags,
|
255
|
+
gint column);
|
256
|
+
|
257
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
258
|
+
GtkSourceUndoManager *gtk_source_buffer_get_undo_manager (GtkSourceBuffer *buffer);
|
259
|
+
|
260
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
261
|
+
void gtk_source_buffer_set_undo_manager (GtkSourceBuffer *buffer,
|
262
|
+
GtkSourceUndoManager *manager);
|
263
|
+
|
264
|
+
GTK_SOURCE_AVAILABLE_IN_3_14
|
265
|
+
void gtk_source_buffer_set_implicit_trailing_newline (GtkSourceBuffer *buffer,
|
266
|
+
gboolean implicit_trailing_newline);
|
267
|
+
|
268
|
+
GTK_SOURCE_AVAILABLE_IN_3_14
|
269
|
+
gboolean gtk_source_buffer_get_implicit_trailing_newline (GtkSourceBuffer *buffer);
|
270
|
+
|
271
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
272
|
+
GtkTextTag *gtk_source_buffer_create_source_tag (GtkSourceBuffer *buffer,
|
273
|
+
const gchar *tag_name,
|
274
|
+
const gchar *first_property_name,
|
275
|
+
...);
|
276
|
+
|
277
|
+
G_END_DECLS
|
278
|
+
|
279
|
+
#endif /* GTK_SOURCE_BUFFER_H */
|
@@ -0,0 +1,156 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
*
|
3
|
+
* This file is part of GtkSourceView
|
4
|
+
*
|
5
|
+
* Copyright (C) 2007 - 2009 Jesús Barbero Rodríguez <chuchiperriman@gmail.com>
|
6
|
+
* Copyright (C) 2009 - Jesse van den Kieboom <jessevdk@gnome.org>
|
7
|
+
*
|
8
|
+
* GtkSourceView is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU Lesser General Public
|
10
|
+
* License as published by the Free Software Foundation; either
|
11
|
+
* version 2.1 of the License, or (at your option) any later version.
|
12
|
+
*
|
13
|
+
* GtkSourceView is distributed in the hope that it will be useful,
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* Lesser General Public License for more details.
|
17
|
+
*
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
19
|
+
* along with this library; if not, see <http://www.gnu.org/licenses/>.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#ifndef GTK_SOURCE_COMPLETION_H
|
23
|
+
#define GTK_SOURCE_COMPLETION_H
|
24
|
+
|
25
|
+
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
|
26
|
+
#error "Only <gtksourceview/gtksource.h> can be included directly."
|
27
|
+
#endif
|
28
|
+
|
29
|
+
#include <gtk/gtk.h>
|
30
|
+
#include <gtksourceview/gtksourcetypes.h>
|
31
|
+
|
32
|
+
G_BEGIN_DECLS
|
33
|
+
|
34
|
+
/*
|
35
|
+
* Type checking and casting macros
|
36
|
+
*/
|
37
|
+
#define GTK_SOURCE_TYPE_COMPLETION (gtk_source_completion_get_type())
|
38
|
+
#define GTK_SOURCE_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_SOURCE_TYPE_COMPLETION, GtkSourceCompletion))
|
39
|
+
#define GTK_SOURCE_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_SOURCE_TYPE_COMPLETION, GtkSourceCompletionClass))
|
40
|
+
#define GTK_SOURCE_IS_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_SOURCE_TYPE_COMPLETION))
|
41
|
+
#define GTK_SOURCE_IS_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_COMPLETION))
|
42
|
+
#define GTK_SOURCE_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_SOURCE_TYPE_COMPLETION, GtkSourceCompletionClass))
|
43
|
+
|
44
|
+
/**
|
45
|
+
* GTK_SOURCE_COMPLETION_ERROR:
|
46
|
+
*
|
47
|
+
* Error domain for the completion. Errors in this domain will be from the
|
48
|
+
* #GtkSourceCompletionError enumeration. See #GError for more information on
|
49
|
+
* error domains.
|
50
|
+
*/
|
51
|
+
#define GTK_SOURCE_COMPLETION_ERROR (gtk_source_completion_error_quark ())
|
52
|
+
|
53
|
+
typedef struct _GtkSourceCompletionPrivate GtkSourceCompletionPrivate;
|
54
|
+
typedef struct _GtkSourceCompletionClass GtkSourceCompletionClass;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* GtkSourceCompletionError:
|
58
|
+
* @GTK_SOURCE_COMPLETION_ERROR_ALREADY_BOUND: The #GtkSourceCompletionProvider
|
59
|
+
* is already bound to the #GtkSourceCompletion object.
|
60
|
+
* @GTK_SOURCE_COMPLETION_ERROR_NOT_BOUND: The #GtkSourceCompletionProvider is
|
61
|
+
* not bound to the #GtkSourceCompletion object.
|
62
|
+
*
|
63
|
+
* An error code used with %GTK_SOURCE_COMPLETION_ERROR in a #GError returned
|
64
|
+
* from a completion-related function.
|
65
|
+
*/
|
66
|
+
typedef enum _GtkSourceCompletionError
|
67
|
+
{
|
68
|
+
GTK_SOURCE_COMPLETION_ERROR_ALREADY_BOUND = 0,
|
69
|
+
GTK_SOURCE_COMPLETION_ERROR_NOT_BOUND
|
70
|
+
} GtkSourceCompletionError;
|
71
|
+
|
72
|
+
struct _GtkSourceCompletion
|
73
|
+
{
|
74
|
+
GObject parent_instance;
|
75
|
+
|
76
|
+
GtkSourceCompletionPrivate *priv;
|
77
|
+
};
|
78
|
+
|
79
|
+
struct _GtkSourceCompletionClass
|
80
|
+
{
|
81
|
+
GObjectClass parent_class;
|
82
|
+
|
83
|
+
gboolean (* proposal_activated) (GtkSourceCompletion *completion,
|
84
|
+
GtkSourceCompletionProvider *provider,
|
85
|
+
GtkSourceCompletionProposal *proposal);
|
86
|
+
void (* show) (GtkSourceCompletion *completion);
|
87
|
+
void (* hide) (GtkSourceCompletion *completion);
|
88
|
+
void (* populate_context) (GtkSourceCompletion *completion,
|
89
|
+
GtkSourceCompletionContext *context);
|
90
|
+
|
91
|
+
/* Actions */
|
92
|
+
void (* move_cursor) (GtkSourceCompletion *completion,
|
93
|
+
GtkScrollStep step,
|
94
|
+
gint num);
|
95
|
+
void (* move_page) (GtkSourceCompletion *completion,
|
96
|
+
GtkScrollStep step,
|
97
|
+
gint num);
|
98
|
+
void (* activate_proposal) (GtkSourceCompletion *completion);
|
99
|
+
|
100
|
+
gpointer padding[20];
|
101
|
+
};
|
102
|
+
|
103
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
104
|
+
GType gtk_source_completion_get_type (void) G_GNUC_CONST;
|
105
|
+
|
106
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
107
|
+
GQuark gtk_source_completion_error_quark (void);
|
108
|
+
|
109
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
110
|
+
gboolean gtk_source_completion_add_provider (GtkSourceCompletion *completion,
|
111
|
+
GtkSourceCompletionProvider *provider,
|
112
|
+
GError **error);
|
113
|
+
|
114
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
115
|
+
gboolean gtk_source_completion_remove_provider (GtkSourceCompletion *completion,
|
116
|
+
GtkSourceCompletionProvider *provider,
|
117
|
+
GError **error);
|
118
|
+
|
119
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
120
|
+
GList *gtk_source_completion_get_providers (GtkSourceCompletion *completion);
|
121
|
+
|
122
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
123
|
+
gboolean gtk_source_completion_start (GtkSourceCompletion *completion,
|
124
|
+
GList *providers,
|
125
|
+
GtkSourceCompletionContext *context);
|
126
|
+
|
127
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
128
|
+
void gtk_source_completion_hide (GtkSourceCompletion *completion);
|
129
|
+
|
130
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
131
|
+
GtkSourceCompletionInfo *
|
132
|
+
gtk_source_completion_get_info_window (GtkSourceCompletion *completion);
|
133
|
+
|
134
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
135
|
+
GtkSourceView *gtk_source_completion_get_view (GtkSourceCompletion *completion);
|
136
|
+
|
137
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
138
|
+
GtkSourceCompletionContext *
|
139
|
+
gtk_source_completion_create_context (GtkSourceCompletion *completion,
|
140
|
+
GtkTextIter *position);
|
141
|
+
|
142
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
143
|
+
void gtk_source_completion_block_interactive (GtkSourceCompletion *completion);
|
144
|
+
|
145
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
146
|
+
void gtk_source_completion_unblock_interactive (GtkSourceCompletion *completion);
|
147
|
+
|
148
|
+
G_GNUC_INTERNAL
|
149
|
+
void _gtk_source_completion_add_proposals (GtkSourceCompletion *completion,
|
150
|
+
GtkSourceCompletionContext *context,
|
151
|
+
GtkSourceCompletionProvider *provider,
|
152
|
+
GList *proposals,
|
153
|
+
gboolean finished);
|
154
|
+
G_END_DECLS
|
155
|
+
|
156
|
+
#endif /* GTK_SOURCE_COMPLETION_H */
|
@@ -0,0 +1,102 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
*
|
3
|
+
* This file is part of GtkSourceView
|
4
|
+
*
|
5
|
+
* Copyright (C) 2009 - Jesse van den Kieboom <jessevdk@gnome.org>
|
6
|
+
*
|
7
|
+
* GtkSourceView is free software; you can redistribute it and/or
|
8
|
+
* modify it under the terms of the GNU Lesser General Public
|
9
|
+
* License as published by the Free Software Foundation; either
|
10
|
+
* version 2.1 of the License, or (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 GNU
|
15
|
+
* Lesser General Public License for more details.
|
16
|
+
*
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
18
|
+
* along with this library; if not, see <http://www.gnu.org/licenses/>.
|
19
|
+
*/
|
20
|
+
|
21
|
+
#ifndef GTK_SOURCE_COMPLETION_CONTEXT_H
|
22
|
+
#define GTK_SOURCE_COMPLETION_CONTEXT_H
|
23
|
+
|
24
|
+
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
|
25
|
+
#error "Only <gtksourceview/gtksource.h> can be included directly."
|
26
|
+
#endif
|
27
|
+
|
28
|
+
#include <gtk/gtk.h>
|
29
|
+
#include <gtksourceview/gtksourcetypes.h>
|
30
|
+
|
31
|
+
G_BEGIN_DECLS
|
32
|
+
|
33
|
+
#define GTK_SOURCE_TYPE_COMPLETION_CONTEXT (gtk_source_completion_context_get_type ())
|
34
|
+
#define GTK_SOURCE_COMPLETION_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_COMPLETION_CONTEXT, GtkSourceCompletionContext))
|
35
|
+
#define GTK_SOURCE_COMPLETION_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_COMPLETION_CONTEXT, GtkSourceCompletionContextClass))
|
36
|
+
#define GTK_SOURCE_IS_COMPLETION_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_COMPLETION_CONTEXT))
|
37
|
+
#define GTK_SOURCE_IS_COMPLETION_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_COMPLETION_CONTEXT))
|
38
|
+
#define GTK_SOURCE_COMPLETION_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_COMPLETION_CONTEXT, GtkSourceCompletionContextClass))
|
39
|
+
|
40
|
+
typedef struct _GtkSourceCompletionContextClass GtkSourceCompletionContextClass;
|
41
|
+
typedef struct _GtkSourceCompletionContextPrivate GtkSourceCompletionContextPrivate;
|
42
|
+
|
43
|
+
/**
|
44
|
+
* GtkSourceCompletionActivation:
|
45
|
+
* @GTK_SOURCE_COMPLETION_ACTIVATION_NONE: None.
|
46
|
+
* @GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE: Interactive activation. By
|
47
|
+
* default, it occurs on each insertion in the #GtkTextBuffer. This can be
|
48
|
+
* blocked temporarily with gtk_source_completion_block_interactive().
|
49
|
+
* @GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED: User requested activation.
|
50
|
+
* By default, it occurs when the user presses
|
51
|
+
* <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.
|
52
|
+
*/
|
53
|
+
typedef enum _GtkSourceCompletionActivation
|
54
|
+
{
|
55
|
+
GTK_SOURCE_COMPLETION_ACTIVATION_NONE = 0,
|
56
|
+
GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE = 1 << 0,
|
57
|
+
GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED = 1 << 1
|
58
|
+
} GtkSourceCompletionActivation;
|
59
|
+
|
60
|
+
struct _GtkSourceCompletionContext {
|
61
|
+
GInitiallyUnowned parent;
|
62
|
+
|
63
|
+
GtkSourceCompletionContextPrivate *priv;
|
64
|
+
};
|
65
|
+
|
66
|
+
struct _GtkSourceCompletionContextClass {
|
67
|
+
GInitiallyUnownedClass parent_class;
|
68
|
+
|
69
|
+
void (*cancelled) (GtkSourceCompletionContext *context);
|
70
|
+
|
71
|
+
/* Padding for future expansion */
|
72
|
+
gpointer padding[10];
|
73
|
+
};
|
74
|
+
|
75
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
76
|
+
GType gtk_source_completion_context_get_type (void) G_GNUC_CONST;
|
77
|
+
|
78
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
79
|
+
void gtk_source_completion_context_add_proposals (GtkSourceCompletionContext *context,
|
80
|
+
GtkSourceCompletionProvider *provider,
|
81
|
+
GList *proposals,
|
82
|
+
gboolean finished);
|
83
|
+
|
84
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
85
|
+
gboolean gtk_source_completion_context_get_iter (GtkSourceCompletionContext *context,
|
86
|
+
GtkTextIter *iter);
|
87
|
+
|
88
|
+
GTK_SOURCE_AVAILABLE_IN_ALL
|
89
|
+
GtkSourceCompletionActivation
|
90
|
+
gtk_source_completion_context_get_activation (GtkSourceCompletionContext *context);
|
91
|
+
|
92
|
+
G_GNUC_INTERNAL
|
93
|
+
GtkSourceCompletionContext *
|
94
|
+
_gtk_source_completion_context_new (GtkSourceCompletion *completion,
|
95
|
+
GtkTextIter *position);
|
96
|
+
|
97
|
+
G_GNUC_INTERNAL
|
98
|
+
void _gtk_source_completion_context_cancel (GtkSourceCompletionContext *context);
|
99
|
+
|
100
|
+
G_END_DECLS
|
101
|
+
|
102
|
+
#endif /* GTK_SOURCE_COMPLETION_CONTEXT_H */
|