gtksourceview3 2.2.4-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Rakefile +59 -0
- data/ext/gtksourceview3/depend +6 -0
- data/ext/gtksourceview3/extconf.rb +67 -0
- data/ext/gtksourceview3/gtksourceview3.def +2 -0
- data/ext/gtksourceview3/rbgtksource.c +53 -0
- data/ext/gtksourceview3/rbgtksourcebuffer.c +318 -0
- data/ext/gtksourceview3/rbgtksourcegutter.c +82 -0
- data/ext/gtksourceview3/rbgtksourcegutterrenderer.c +143 -0
- data/ext/gtksourceview3/rbgtksourcegutterrendererpixbuf.c +42 -0
- data/ext/gtksourceview3/rbgtksourcegutterrenderertext.c +40 -0
- data/ext/gtksourceview3/rbgtksourcelanguage.c +124 -0
- data/ext/gtksourceview3/rbgtksourcelanguagemanager.c +114 -0
- data/ext/gtksourceview3/rbgtksourcemark.c +85 -0
- data/ext/gtksourceview3/rbgtksourcemarkattributes.c +77 -0
- data/ext/gtksourceview3/rbgtksourceprintcompositor.c +171 -0
- data/ext/gtksourceview3/rbgtksourcestyle.c +42 -0
- data/ext/gtksourceview3/rbgtksourcestylescheme.c +72 -0
- data/ext/gtksourceview3/rbgtksourcestyleschememanager.c +140 -0
- data/ext/gtksourceview3/rbgtksourceundomanager.c +83 -0
- data/ext/gtksourceview3/rbgtksourceview.c +94 -0
- data/ext/gtksourceview3/rbgtksourceview3conversions.h +50 -0
- data/ext/gtksourceview3/rbgtksourceview3private.h +53 -0
- data/extconf.rb +49 -0
- data/lib/2.0/gtksourceview3.so +0 -0
- data/lib/2.1/gtksourceview3.so +0 -0
- data/lib/2.2/gtksourceview3.so +0 -0
- data/lib/gtksourceview3.rb +20 -0
- data/lib/gtksourceview3/deprecated.rb +47 -0
- data/sample/sourcelanguagemanager.rb +21 -0
- data/sample/test.rb +32 -0
- data/test/run-test.rb +44 -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 +57 -0
- data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +65 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +54 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +213 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletion.h +142 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioncontext.h +95 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioninfo.h +78 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionitem.h +70 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionproposal.h +97 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionprovider.h +137 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceencoding.h +54 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h +115 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefileloader.h +122 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefilesaver.h +147 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +90 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrenderer.h +229 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrendererpixbuf.h +87 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrenderertext.h +83 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcelanguage.h +85 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcelanguagemanager.h +84 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcemark.h +71 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcemarkattributes.h +100 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceprintcompositor.h +175 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchcontext.h +133 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchsettings.h +85 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyle.h +45 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestylescheme.h +109 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschememanager.h +86 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +101 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceundomanager.h +75 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceutils.h +34 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +88 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview.h +213 -0
- data/vendor/local/lib/girepository-1.0/GtkSource-3.0.typelib +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.la +41 -0
- data/vendor/local/lib/locale/ar/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/as/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ast/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/az/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/be/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bn_IN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca@valencia/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/cy/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/dz/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/el/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/en@shaw/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/en_CA/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/en_GB/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/eo/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/et/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/eu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ga/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/gu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ja/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/kn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mai/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ml/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ms/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ne/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/oc/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/or/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ro/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/rw/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/si/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sq/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ta/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/te/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/tg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/th/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/tr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ug/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/uk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/vi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/xh/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_CN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_HK/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +12 -0
- data/vendor/local/share/gir-1.0/GtkSource-3.0.gir +11360 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +2143 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +1129 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +397 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +348 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +367 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +572 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +750 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +345 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceEncoding.html +366 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFile.html +563 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileLoader.html +769 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileSaver.html +962 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +490 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +1700 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +468 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +228 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +584 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +476 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +310 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +897 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +2149 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +1116 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +606 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +358 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +398 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +463 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +462 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +1990 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +81 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +43 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +195 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-12.html +39 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-14.html +299 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +35 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +95 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +2187 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +119 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +47 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +154 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +601 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +146 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +882 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +873 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +654 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +71 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +283 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/up.png +0 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/R.lang +2199 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/actionscript.lang +268 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ada.lang +221 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ansforth94.lang +729 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/asp.lang +1097 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/automake.lang +330 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/awk.lang +138 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/bennugd.lang +267 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/bibtex.lang +93 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/bluespec.lang +188 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/boo.lang +257 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/c.lang +332 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cg.lang +232 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/changelog.lang +93 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/chdr.lang +43 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cmake.lang +408 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cobol.lang +647 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cpp.lang +120 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/csharp.lang +282 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/css.lang +542 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cuda.lang +292 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/d.lang +318 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/def.lang +262 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/desktop.lang +300 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/diff.lang +85 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/docbook.lang +476 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dosbatch.lang +167 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dot.lang +140 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dpatch.lang +48 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dtd.lang +140 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/eiffel.lang +239 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/erlang.lang +258 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/fcl.lang +113 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/forth.lang +235 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/fortran.lang +591 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/fsharp.lang +325 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gap.lang +85 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gdb-log.lang +152 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/glsl.lang +483 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/go.lang +275 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gtk-doc.lang +91 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gtkrc.lang +116 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/haddock.lang +162 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/haskell-literate.lang +59 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/haskell.lang +228 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/html.lang +281 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/idl-exelis.lang +620 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/idl.lang +154 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/imagej.lang +784 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ini.lang +95 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/j.lang +240 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/java.lang +190 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +339 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/json.lang +123 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/julia.lang +378 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/language.dtd +73 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/language.rng +373 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/language2.rng +482 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/latex.lang +600 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/lex.lang +209 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/libtool.lang +56 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/llvm.lang +315 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/lua.lang +157 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/m4.lang +1375 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/makefile.lang +193 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/mallard.lang +124 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/markdown.lang +402 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/matlab.lang +171 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/mediawiki.lang +327 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/modelica.lang +262 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/mxml.lang +65 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/nemerle.lang +263 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/netrexx.lang +319 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/nsis.lang +88 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/objc.lang +120 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/objj.lang +128 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ocaml.lang +302 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ocl.lang +139 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/octave.lang +859 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ooc.lang +265 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/opal.lang +343 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/opencl.lang +600 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/pascal.lang +268 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/perl.lang +1045 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/php.lang +363 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/pkgconfig.lang +62 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/po.lang +94 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/prolog.lang +249 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/protobuf.lang +101 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/puppet.lang +697 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/python.lang +472 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/python3.lang +192 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/rpmspec.lang +212 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/rst.lang +142 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ruby.lang +750 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/scala.lang +384 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/scheme.lang +302 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/scilab.lang +209 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sh.lang +499 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sml.lang +201 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sparql.lang +448 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sql.lang +618 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sweave.lang +67 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/systemverilog.lang +263 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/t2t.lang +150 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/tcl.lang +146 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/texinfo.lang +448 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/vala.lang +365 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/vbnet.lang +245 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/verilog.lang +476 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/vhdl.lang +248 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/xml.lang +220 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/xslt.lang +108 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/yacc.lang +177 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/yaml.lang +214 -0
- data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +121 -0
- data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +148 -0
- data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +171 -0
- data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +129 -0
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-dark.xml +101 -0
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-light.xml +101 -0
- data/vendor/local/share/gtksourceview-3.0/styles/styles.rng +142 -0
- data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +130 -0
- data/vendor/local/share/license/gtksourceview/AUTHORS +13 -0
- data/vendor/local/share/license/gtksourceview/COPYING +504 -0
- metadata +389 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f0b0cc674af6d2b44a3ff976b544dac8802b62a5
|
4
|
+
data.tar.gz: 8889dd39e3e3c9f8f0ea4d3378cac86691e79b12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d7dc35eab72de6f6c437d5104f9489115282a8f310f18814e1946f963cb7d00e69c41cc96bd7b0b47c82782b6bf0678dcd1434475e63c06c799d8f8f2a5bed36
|
7
|
+
data.tar.gz: 63d03448a45853e07c52c4401abeca7026849388fbc67a7d1ae3c480caabbb1d3f82b9e95502af152ff1f4e0a730205dc25a62a383d4dea153cf31e3c5fa0ba4
|
data/Rakefile
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2012-2013 Ruby-GNOME2 Project Team
|
4
|
+
#
|
5
|
+
# This library is free software; you can redistribute it and/or
|
6
|
+
# modify it under the terms of the GNU Lesser General Public
|
7
|
+
# License as published by the Free Software Foundation; either
|
8
|
+
# version 2.1 of the License, or (at your option) any later version.
|
9
|
+
#
|
10
|
+
# This library is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
# Lesser General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU Lesser General Public
|
16
|
+
# License along with this library; if not, write to the Free Software
|
17
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
|
19
|
+
$LOAD_PATH.unshift("./../glib2/lib")
|
20
|
+
require "gnome2/rake/package-task"
|
21
|
+
|
22
|
+
package_task = GNOME2::Rake::PackageTask.new do |package|
|
23
|
+
package.summary = "Ruby/GtkSourceView3 is a Ruby binding of gtksourceview-3.x."
|
24
|
+
package.description = "Ruby/GtkSourceView3 is a Ruby binding of gtksourceview-3.x."
|
25
|
+
package.dependency.gem.runtime = ["gtk3"]
|
26
|
+
package.windows.packages = []
|
27
|
+
package.windows.dependencies = []
|
28
|
+
package.windows.build_dependencies = [
|
29
|
+
"glib2",
|
30
|
+
"atk",
|
31
|
+
"pango",
|
32
|
+
"gdk_pixbuf2",
|
33
|
+
"gdk3",
|
34
|
+
"gobject-introspection",
|
35
|
+
]
|
36
|
+
package.windows.gobject_introspection_dependencies = [
|
37
|
+
"atk",
|
38
|
+
"pango",
|
39
|
+
"gdk_pixbuf2",
|
40
|
+
"gdk3",
|
41
|
+
]
|
42
|
+
package.external_packages = [
|
43
|
+
{
|
44
|
+
:name => "gtksourceview",
|
45
|
+
:download_site => :gnome,
|
46
|
+
:label => "GtkSourceView",
|
47
|
+
:version => "3.14.2",
|
48
|
+
:compression_method => "xz",
|
49
|
+
:windows => {
|
50
|
+
:configure_args => [
|
51
|
+
"--enable-introspection",
|
52
|
+
],
|
53
|
+
:built_file => "bin/libgtksourceview-3.0-1.dll",
|
54
|
+
},
|
55
|
+
}
|
56
|
+
]
|
57
|
+
end
|
58
|
+
package_task.define
|
59
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
=begin
|
2
|
+
extconf.rb for Ruby/GtkSourceView3 extension library
|
3
|
+
=end
|
4
|
+
|
5
|
+
require 'pathname'
|
6
|
+
|
7
|
+
base_dir = Pathname(__FILE__).dirname.parent.parent.expand_path
|
8
|
+
top_dir = base_dir.parent
|
9
|
+
top_build_dir = Pathname(".").parent.parent.parent.expand_path
|
10
|
+
|
11
|
+
mkmf_gnome2_dir = top_dir + "glib2" + 'lib'
|
12
|
+
version_suffix = ""
|
13
|
+
unless mkmf_gnome2_dir.exist?
|
14
|
+
if /(-\d+\.\d+\.\d+)\z/ =~ base_dir.basename.to_s
|
15
|
+
version_suffix = $1
|
16
|
+
mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + 'lib'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
$LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
|
21
|
+
|
22
|
+
module_name = "gtksourceview3"
|
23
|
+
package_id = "gtksourceview-3.0"
|
24
|
+
|
25
|
+
begin
|
26
|
+
require 'mkmf-gnome2'
|
27
|
+
rescue LoadError
|
28
|
+
require 'rubygems'
|
29
|
+
gem 'glib2'
|
30
|
+
require 'mkmf-gnome2'
|
31
|
+
end
|
32
|
+
|
33
|
+
["glib2", "atk", "pango", "gdk_pixbuf2", "gtk3"].each do |package|
|
34
|
+
directory = "#{package}#{version_suffix}"
|
35
|
+
build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
|
36
|
+
add_depend_package(package, "#{directory}/ext/#{package}",
|
37
|
+
top_dir.to_s,
|
38
|
+
:top_build_dir => top_build_dir.to_s,
|
39
|
+
:target_build_dir => build_dir)
|
40
|
+
end
|
41
|
+
|
42
|
+
unless check_cairo(:top_dir => top_dir)
|
43
|
+
exit(false)
|
44
|
+
end
|
45
|
+
|
46
|
+
setup_windows(module_name, base_dir)
|
47
|
+
|
48
|
+
unless required_pkg_config_package(package_id,
|
49
|
+
:debian => "libgtksourceview-3.0-dev",
|
50
|
+
:fedora => "gtksourceview3-devel",
|
51
|
+
:homebrew => "gtksourceview3",
|
52
|
+
:macports => "gtksourceview3")
|
53
|
+
exit(false)
|
54
|
+
end
|
55
|
+
|
56
|
+
make_version_header("GTKSOURCEVIEW3", package_id, ".")
|
57
|
+
|
58
|
+
create_pkg_config_file("Ruby/GtkSourceView3", package_id)
|
59
|
+
$defs << "-DRUBY_GTKSOURCEVIEW3_COMPILATION"
|
60
|
+
create_makefile(module_name)
|
61
|
+
pkg_config_dir = with_config("pkg-config-dir")
|
62
|
+
if pkg_config_dir.is_a?(String)
|
63
|
+
File.open("Makefile", "ab") do |makefile|
|
64
|
+
makefile.puts
|
65
|
+
makefile.puts("pkgconfigdir=#{pkg_config_dir}")
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2004,2005 Ruby-GNOME2 Project Team
|
5
|
+
* Copyright (C) 2003 Geoff Youngs, based on gtktextview.c by Masao Mutoh
|
6
|
+
*
|
7
|
+
* This library 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
|
+
* This library 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
|
18
|
+
* License along with this library; if not, write to the Free Software
|
19
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20
|
+
* MA 02110-1301 USA
|
21
|
+
*/
|
22
|
+
|
23
|
+
#include "rbgtksourceview3private.h"
|
24
|
+
|
25
|
+
#define RG_TARGET_NAMESPACE mGtkSource
|
26
|
+
|
27
|
+
void
|
28
|
+
Init_gtksourceview3 (void)
|
29
|
+
{
|
30
|
+
VALUE RG_TARGET_NAMESPACE = rb_define_module("GtkSource");
|
31
|
+
|
32
|
+
rb_define_const(RG_TARGET_NAMESPACE, "BUILD_VERSION",
|
33
|
+
rb_ary_new3(3,
|
34
|
+
INT2FIX(GTKSOURCEVIEW3_MAJOR_VERSION),
|
35
|
+
INT2FIX(GTKSOURCEVIEW3_MINOR_VERSION),
|
36
|
+
INT2FIX(GTKSOURCEVIEW3_MICRO_VERSION)));
|
37
|
+
|
38
|
+
Init_gtksource_view (RG_TARGET_NAMESPACE);
|
39
|
+
Init_gtksource_buffer (RG_TARGET_NAMESPACE);
|
40
|
+
Init_gtksource_language (RG_TARGET_NAMESPACE);
|
41
|
+
Init_gtksource_languagemanager (RG_TARGET_NAMESPACE);
|
42
|
+
Init_gtksource_mark (RG_TARGET_NAMESPACE);
|
43
|
+
Init_gtksource_printcompositor (RG_TARGET_NAMESPACE);
|
44
|
+
Init_gtksource_style (RG_TARGET_NAMESPACE);
|
45
|
+
Init_gtksource_stylescheme (RG_TARGET_NAMESPACE);
|
46
|
+
Init_gtksource_styleschememanager (RG_TARGET_NAMESPACE);
|
47
|
+
Init_gtksource_gutter(RG_TARGET_NAMESPACE);
|
48
|
+
Init_gtksource_gutterrenderer(RG_TARGET_NAMESPACE);
|
49
|
+
Init_gtksource_gutterrendererpixbuf(RG_TARGET_NAMESPACE);
|
50
|
+
Init_gtksource_gutterrenderertext(RG_TARGET_NAMESPACE);
|
51
|
+
Init_gtksource_markattributes(RG_TARGET_NAMESPACE);
|
52
|
+
Init_gtksource_undomanager(RG_TARGET_NAMESPACE);
|
53
|
+
}
|
@@ -0,0 +1,318 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2004,2005 Ruby-GNOME2 Project Team
|
5
|
+
* Copyright (C) 2003 Geoff Youngs, based on gtktextview.c by Masao Mutoh
|
6
|
+
*
|
7
|
+
* This library 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
|
+
* This library 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
|
18
|
+
* License along with this library; if not, write to the Free Software
|
19
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20
|
+
* MA 02110-1301 USA
|
21
|
+
*/
|
22
|
+
|
23
|
+
#include "rbgtksourceview3private.h"
|
24
|
+
|
25
|
+
/* Class: Gtk::SourceBuffer
|
26
|
+
* Text buffer object for Gtk::SourceView.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#define RG_TARGET_NAMESPACE cBuffer
|
30
|
+
#define _SELF(self) (RVAL2GTKSOURCEBUFFER(self))
|
31
|
+
|
32
|
+
#define RVAL2ITER(self, position) rval2iter(self, position)
|
33
|
+
#define RVAL2STARTITER(self, iter, out) \
|
34
|
+
rval2iter_with_default(&(self), &(iter), &(out), gtk_text_buffer_get_start_iter)
|
35
|
+
#define RVAL2ENDITER(self, iter, out) \
|
36
|
+
rval2iter_with_default(&(self), &(iter), &(out), gtk_text_buffer_get_end_iter)
|
37
|
+
|
38
|
+
static GtkTextIter *
|
39
|
+
rval2iter(VALUE self, VALUE position)
|
40
|
+
{
|
41
|
+
if (!g_type_is_a(RVAL2GTYPE(position), GTK_TYPE_TEXT_ITER))
|
42
|
+
position = rb_funcall(self, rb_intern("get_iter_at"), 1, position);
|
43
|
+
return RVAL2GTKTEXTITER(position);
|
44
|
+
}
|
45
|
+
|
46
|
+
static GtkTextIter *
|
47
|
+
rval2iter_with_default(VALUE *self, VALUE *iter, GtkTextIter *out,
|
48
|
+
void (*default_func)(GtkTextBuffer *, GtkTextIter *))
|
49
|
+
{
|
50
|
+
if (NIL_P(*iter)) {
|
51
|
+
default_func(RVAL2GTKTEXTBUFFER(*self), out);
|
52
|
+
return out;
|
53
|
+
} else {
|
54
|
+
return RVAL2ITER(*self, *iter);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
/*
|
59
|
+
* Class method: new(obj=nil)
|
60
|
+
* obj: either a Gtk::TextTagTable, a Gtk::SourceLanguage, or nil.
|
61
|
+
*
|
62
|
+
* Creates a new source buffer. If a Gtk::SourceTagTable is provided, the
|
63
|
+
* buffer will use it, otherwise it will create a new one.
|
64
|
+
*
|
65
|
+
* If a Gtk::SourceLanguage object is given, the buffer will be created
|
66
|
+
* using highlightings patterns in this language. This is equivalent to
|
67
|
+
* creating a new source buffer with the default tag table and then setting
|
68
|
+
* the 'language' property.
|
69
|
+
*
|
70
|
+
* Returns: a newly created Gtk::SourceBuffer object.
|
71
|
+
*/
|
72
|
+
static VALUE
|
73
|
+
rg_initialize(int argc, VALUE *argv, VALUE self)
|
74
|
+
{
|
75
|
+
VALUE val;
|
76
|
+
|
77
|
+
rb_scan_args (argc, argv, "01", &val);
|
78
|
+
if (NIL_P (val)) {
|
79
|
+
G_INITIALIZE (self, gtk_source_buffer_new (NULL));
|
80
|
+
} else
|
81
|
+
if (rb_obj_is_kind_of
|
82
|
+
(val, GTYPE2CLASS (GTK_TYPE_TEXT_TAG_TABLE))) {
|
83
|
+
G_INITIALIZE (self,
|
84
|
+
gtk_source_buffer_new(RVAL2GTKTEXTTAGTABLE(val)));
|
85
|
+
} else
|
86
|
+
if (rb_obj_is_kind_of
|
87
|
+
(val, GTYPE2CLASS (GTK_SOURCE_TYPE_LANGUAGE))) {
|
88
|
+
G_INITIALIZE (self,
|
89
|
+
gtk_source_buffer_new_with_language(RVAL2GTKSOURCELANGUAGE(val)));
|
90
|
+
} else {
|
91
|
+
rb_raise (rb_eArgError,
|
92
|
+
"invalid argument %s (expect nil, Gtk::TextTagTable or Gtk::SourceLanguage)",
|
93
|
+
rb_class2name (CLASS_OF (val)));
|
94
|
+
}
|
95
|
+
return Qnil;
|
96
|
+
}
|
97
|
+
|
98
|
+
/*
|
99
|
+
* Method: redo!
|
100
|
+
*
|
101
|
+
* Redoes the last undo operation. Use Gtk::SourceBuffer#can_redo? to check
|
102
|
+
* whether a call to this function will have any effect.
|
103
|
+
*
|
104
|
+
* Returns: self.
|
105
|
+
*/
|
106
|
+
static VALUE
|
107
|
+
rg_redo_bang(VALUE self)
|
108
|
+
{
|
109
|
+
gtk_source_buffer_redo (_SELF (self));
|
110
|
+
return self;
|
111
|
+
}
|
112
|
+
|
113
|
+
/*
|
114
|
+
* Method: undo!
|
115
|
+
*
|
116
|
+
* Undoes the last user action which modified the buffer.
|
117
|
+
* Use Gtk::SourceBuffer#can_undo? to check whether a call to this function
|
118
|
+
* will have any effect.
|
119
|
+
*
|
120
|
+
* Actions are defined as groups of operations between a call to
|
121
|
+
* Gtk::TextBuffer#begin_user_action and Gtk::TextBuffer#end_user_action,
|
122
|
+
* or sequences of similar edits (inserts or deletes) on the same line.
|
123
|
+
*
|
124
|
+
* Returns: self.
|
125
|
+
*/
|
126
|
+
static VALUE
|
127
|
+
rg_undo_bang(VALUE self)
|
128
|
+
{
|
129
|
+
gtk_source_buffer_undo (_SELF (self));
|
130
|
+
return self;
|
131
|
+
}
|
132
|
+
|
133
|
+
/*
|
134
|
+
* Method: begin_not_undoable_action
|
135
|
+
* Method: begin_not_undoable_action { ... }
|
136
|
+
*
|
137
|
+
* Marks the beginning of a not undoable action on the buffer, disabling the
|
138
|
+
* undo manager.
|
139
|
+
*
|
140
|
+
* If a block is given, the block is called after marking the beginning
|
141
|
+
* of a not undoable action on the buffer.
|
142
|
+
* At the end of the block, marks the end of a not undoable action on the
|
143
|
+
* buffer. When the last not undoable block is finished, the list of undo
|
144
|
+
* actions is cleared and the undo manager is re-enabled.
|
145
|
+
*
|
146
|
+
* Returns: self
|
147
|
+
*/
|
148
|
+
static VALUE
|
149
|
+
rg_begin_not_undoable_action(VALUE self)
|
150
|
+
{
|
151
|
+
gtk_source_buffer_begin_not_undoable_action (_SELF (self));
|
152
|
+
|
153
|
+
if (rb_block_given_p()) {
|
154
|
+
VALUE block = rb_block_proc ();
|
155
|
+
rb_funcall (block, rb_intern ("call"), 0);
|
156
|
+
gtk_source_buffer_end_not_undoable_action (_SELF (self));
|
157
|
+
}
|
158
|
+
return self;
|
159
|
+
}
|
160
|
+
|
161
|
+
/*
|
162
|
+
* Method: end_not_undoable_action
|
163
|
+
*
|
164
|
+
* Marks the end of a not undoable action on the buffer.
|
165
|
+
* When the last not undoable block is finished, the list of undo
|
166
|
+
* actions is cleared and the undo manager is re-enabled.
|
167
|
+
*
|
168
|
+
* Returns: self
|
169
|
+
*/
|
170
|
+
static VALUE
|
171
|
+
rg_end_not_undoable_action(VALUE self)
|
172
|
+
{
|
173
|
+
gtk_source_buffer_end_not_undoable_action (_SELF (self));
|
174
|
+
return self;
|
175
|
+
}
|
176
|
+
|
177
|
+
/*
|
178
|
+
* Method: create_source_mark(name=nil, category, where)
|
179
|
+
* name: the name of the mark.
|
180
|
+
* type: a string defining the mark type.
|
181
|
+
* where: a location to place the mark, as a Gtk::TreeIter object.
|
182
|
+
*
|
183
|
+
* Creates a mark in the buffer of the given type. A mark is semantically
|
184
|
+
* very similar to a Gtk::TextMark, except it has a type which is used by the
|
185
|
+
* Gtk::SourceView object displaying the buffer to show a pixmap on the left
|
186
|
+
* margin, at the line the mark is in. Because of this, a mark is generally
|
187
|
+
* associated to a line and not a character position. Marks are also
|
188
|
+
* accessible through a position or range in the buffer.
|
189
|
+
*
|
190
|
+
* Marks are implemented using Gtk::TextMark, so all characteristics and
|
191
|
+
* restrictions to marks apply to marks too. These includes life cycle issues
|
192
|
+
* and "mark-set" and "mark-deleted" signal emissions.
|
193
|
+
*
|
194
|
+
* Like a Gtk::TextMark, a Gtk::SourceMark can be anonymous if the passed
|
195
|
+
* name is nil.
|
196
|
+
*
|
197
|
+
* Marks always have left gravity and are moved to the beginning of the line
|
198
|
+
* when the user deletes the line they were in. Also, if the user deletes a
|
199
|
+
* region of text which contained lines with marks, those are deleted.
|
200
|
+
*
|
201
|
+
* Typical uses for a mark are bookmarks, breakpoints, current executing
|
202
|
+
* instruction indication in a source file, etc..
|
203
|
+
*
|
204
|
+
* Returns: a new Gtk::SourceMark object, owned by the buffer.
|
205
|
+
*/
|
206
|
+
static VALUE
|
207
|
+
rg_create_source_mark(int argc, VALUE *argv, VALUE self)
|
208
|
+
{
|
209
|
+
VALUE name, category, where;
|
210
|
+
|
211
|
+
if (argc == 2)
|
212
|
+
rb_scan_args (argc, argv, "21", &where, &category, &name);
|
213
|
+
else
|
214
|
+
rb_scan_args (argc, argv, "30", &name, &category, &where);
|
215
|
+
|
216
|
+
return GOBJ2RVAL (gtk_source_buffer_create_source_mark (_SELF (self),
|
217
|
+
RVAL2CSTR (name),
|
218
|
+
RVAL2CSTR_ACCEPT_SYMBOL (category),
|
219
|
+
RVAL2ITER (self, where)));
|
220
|
+
}
|
221
|
+
|
222
|
+
static VALUE
|
223
|
+
rg_get_source_marks_at_line(int argc, VALUE *argv, VALUE self)
|
224
|
+
{
|
225
|
+
VALUE line, category;
|
226
|
+
|
227
|
+
rb_scan_args (argc, argv, "11", &line, &category);
|
228
|
+
|
229
|
+
/* TODO: need free? */
|
230
|
+
return GOBJGSLIST2RVAL_FREE(gtk_source_buffer_get_source_marks_at_line(_SELF(self),
|
231
|
+
NUM2INT(line),
|
232
|
+
RVAL2CSTR_ACCEPT_SYMBOL_ACCEPT_NIL(category)),
|
233
|
+
g_slist_free, NULL);
|
234
|
+
}
|
235
|
+
|
236
|
+
static VALUE
|
237
|
+
rg_get_source_marks_at_iter(int argc, VALUE *argv, VALUE self)
|
238
|
+
{
|
239
|
+
VALUE iter, category;
|
240
|
+
|
241
|
+
rb_scan_args (argc, argv, "11", &iter, &category);
|
242
|
+
|
243
|
+
/* TODO: need free? */
|
244
|
+
return GOBJGSLIST2RVAL_FREE(gtk_source_buffer_get_source_marks_at_iter(_SELF(self),
|
245
|
+
RVAL2ITER(self, iter),
|
246
|
+
RVAL2CSTR_ACCEPT_SYMBOL_ACCEPT_NIL(category)),
|
247
|
+
g_slist_free, NULL);
|
248
|
+
}
|
249
|
+
|
250
|
+
static VALUE
|
251
|
+
rg_remove_source_marks(int argc, VALUE *argv, VALUE self)
|
252
|
+
{
|
253
|
+
VALUE start, end, category;
|
254
|
+
GtkTextIter start_iter, end_iter;
|
255
|
+
|
256
|
+
rb_scan_args (argc, argv, "03", &start, &end, &category);
|
257
|
+
|
258
|
+
gtk_source_buffer_remove_source_marks (_SELF (self),
|
259
|
+
RVAL2STARTITER(self, start, start_iter),
|
260
|
+
RVAL2ENDITER(self, end, end_iter),
|
261
|
+
RVAL2CSTR_ACCEPT_SYMBOL_ACCEPT_NIL (category));
|
262
|
+
|
263
|
+
return self;
|
264
|
+
}
|
265
|
+
|
266
|
+
static VALUE
|
267
|
+
rg_forward_iter_to_source_mark(int argc, VALUE *argv, VALUE self)
|
268
|
+
{
|
269
|
+
VALUE iter, category;
|
270
|
+
|
271
|
+
rb_scan_args (argc, argv, "11", &iter, &category);
|
272
|
+
|
273
|
+
return
|
274
|
+
CBOOL2RVAL (gtk_source_buffer_forward_iter_to_source_mark
|
275
|
+
(_SELF (self), RVAL2ITER (self, iter),
|
276
|
+
RVAL2CSTR_ACCEPT_SYMBOL_ACCEPT_NIL (category)));
|
277
|
+
}
|
278
|
+
|
279
|
+
static VALUE
|
280
|
+
rg_backward_iter_to_source_mark(int argc, VALUE *argv, VALUE self)
|
281
|
+
{
|
282
|
+
VALUE iter, category;
|
283
|
+
|
284
|
+
rb_scan_args (argc, argv, "11", &iter, &category);
|
285
|
+
|
286
|
+
return
|
287
|
+
CBOOL2RVAL (gtk_source_buffer_backward_iter_to_source_mark
|
288
|
+
(_SELF (self), RVAL2ITER (self, iter),
|
289
|
+
RVAL2CSTR_ACCEPT_SYMBOL_ACCEPT_NIL (category)));
|
290
|
+
}
|
291
|
+
|
292
|
+
static VALUE
|
293
|
+
rg_ensure_highlight(VALUE self, VALUE start, VALUE end)
|
294
|
+
{
|
295
|
+
gtk_source_buffer_ensure_highlight (_SELF (self), RVAL2ITER (self, start), RVAL2ITER (self, end));
|
296
|
+
|
297
|
+
return self;
|
298
|
+
}
|
299
|
+
|
300
|
+
void
|
301
|
+
Init_gtksource_buffer (VALUE mGtkSource)
|
302
|
+
{
|
303
|
+
VALUE RG_TARGET_NAMESPACE =
|
304
|
+
G_DEF_CLASS (GTK_SOURCE_TYPE_BUFFER, "Buffer", mGtkSource);
|
305
|
+
|
306
|
+
RG_DEF_METHOD(initialize, -1);
|
307
|
+
RG_DEF_METHOD_BANG(redo, 0);
|
308
|
+
RG_DEF_METHOD_BANG(undo, 0);
|
309
|
+
RG_DEF_METHOD(begin_not_undoable_action, 0);
|
310
|
+
RG_DEF_METHOD(end_not_undoable_action, 0);
|
311
|
+
RG_DEF_METHOD(create_source_mark, -1);
|
312
|
+
RG_DEF_METHOD(get_source_marks_at_line, -1);
|
313
|
+
RG_DEF_METHOD(get_source_marks_at_iter, -1);
|
314
|
+
RG_DEF_METHOD(remove_source_marks, -1);
|
315
|
+
RG_DEF_METHOD(forward_iter_to_source_mark, -1);
|
316
|
+
RG_DEF_METHOD(backward_iter_to_source_mark, -1);
|
317
|
+
RG_DEF_METHOD(ensure_highlight, 2);
|
318
|
+
}
|