gtksourceview3 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- 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
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2008-2011 Ruby-GNOME2 Project Team
|
3
|
+
This program is licensed under the same licence as Ruby-GNOME2.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'gtk3'
|
7
|
+
|
8
|
+
base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
|
9
|
+
vendor_dir = base_dir + "vendor" + "local"
|
10
|
+
vendor_bin_dir = vendor_dir + "bin"
|
11
|
+
GLib.prepend_dll_path(vendor_bin_dir)
|
12
|
+
begin
|
13
|
+
major, minor, = RUBY_VERSION.split(/\./)
|
14
|
+
require "#{major}.#{minor}/gtksourceview3.so"
|
15
|
+
rescue LoadError
|
16
|
+
require "gtksourceview3.so"
|
17
|
+
end
|
18
|
+
|
19
|
+
require 'gtksourceview3/deprecated'
|
20
|
+
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Gtk
|
2
|
+
extend GLib::Deprecatable
|
3
|
+
define_deprecated_const :SourceBuffer, 'GtkSource::Buffer'
|
4
|
+
define_deprecated_const :SourceLanguage, 'GtkSource::Language'
|
5
|
+
define_deprecated_const :SourceLanguageManager, 'GtkSource::LanguageManager'
|
6
|
+
define_deprecated_const :SourceMark, 'GtkSource::Mark'
|
7
|
+
define_deprecated_const :SourcePrintCompositor, 'GtkSource::PrintCompositor'
|
8
|
+
define_deprecated_const :SourceStyle, 'GtkSource::Style'
|
9
|
+
define_deprecated_const :SourceStyleScheme, 'GtkSource::StyleScheme'
|
10
|
+
define_deprecated_const :SourceStyleSchemeManager, 'GtkSource::StyleSchemeManager'
|
11
|
+
define_deprecated_const :SourceView, 'GtkSource::View'
|
12
|
+
end
|
13
|
+
|
14
|
+
module GtkSource
|
15
|
+
class Buffer
|
16
|
+
extend GLib::Deprecatable
|
17
|
+
define_deprecated_method :not_undoable_action, :begin_not_undoable_action
|
18
|
+
define_deprecated_method :non_undoable_action, :begin_not_undoable_action
|
19
|
+
end
|
20
|
+
|
21
|
+
class View
|
22
|
+
extend GLib::Deprecatable
|
23
|
+
define_deprecated_flags :DrawSpacesFlags, 'DRAW_SPACES'
|
24
|
+
define_deprecated_enums :SmartHomeEndType, 'SMART_HOME_END'
|
25
|
+
define_deprecated_const :BUILD_VERSION, 'GtkSource::BUILD_VERSION'
|
26
|
+
define_deprecated_method :set_mark_category_background, :warn => "Use 'GtkSource::MarkAttributes#set_background'." do |_self, category, background|
|
27
|
+
_self.get_mark_attributes(category).first.set_background(background) # TODO
|
28
|
+
end
|
29
|
+
define_deprecated_method :get_mark_category_background, :warn => "Use 'GtkSource::MarkAttributes#background'." do |_self, category|
|
30
|
+
_self.get_mark_attributes(category).first.background # TODO
|
31
|
+
end
|
32
|
+
define_deprecated_method :set_mark_category_pixbuf, :warn => "Use 'GtkSource::MarkAttributes#set_pixbuf'." do |_self, category, pixbuf|
|
33
|
+
_self.get_mark_attributes(category).first.set_pixbuf(pixbuf) # TODO
|
34
|
+
end
|
35
|
+
define_deprecated_method :get_mark_category_pixbuf, :warn => "Use 'GtkSource::MarkAttributes#pixbuf'." do |_self, category|
|
36
|
+
_self.get_mark_attributes(category).first.pixbuf # TODO
|
37
|
+
end
|
38
|
+
define_deprecated_method :set_mark_category_priority, :warn => "Use '#{self}#set_mark_attributes'." do |_self, category, priority|
|
39
|
+
attributes = _self.get_mark_attributes(category).first # TODO
|
40
|
+
_self.set_mark_attributes(category, attributes, priority)
|
41
|
+
end
|
42
|
+
define_deprecated_method :get_mark_category_priority, :warn => "Use '#{self}#get_mark_attributes'." do |_self, category|
|
43
|
+
_self.get_mark_attributes(category).last # TODO
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
=begin
|
3
|
+
sourcelanguagesmanager.rb - Ruby/GtkSourceView3 sample script.
|
4
|
+
|
5
|
+
Copyright (c) 2006-2014 Ruby-GNOME2 Project Team
|
6
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
7
|
+
|
8
|
+
$Id: sourcelanguagesmanager.rb,v 1.3 2007/06/03 02:11:07 mutoh Exp $
|
9
|
+
=end
|
10
|
+
|
11
|
+
require "gtksourceview3"
|
12
|
+
|
13
|
+
s = GtkSource::LanguageManager.new
|
14
|
+
s.language_ids.each do |v|
|
15
|
+
puts v
|
16
|
+
end
|
17
|
+
s.search_path.each do |v|
|
18
|
+
puts v
|
19
|
+
end
|
20
|
+
puts s.get_language("html").name
|
21
|
+
|
data/sample/test.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
=begin
|
3
|
+
test.rb - Ruby/GtkSourceView3 sample script.
|
4
|
+
|
5
|
+
Copyright (c) 2006-2014 Ruby-GNOME2 Project Team
|
6
|
+
This program is licenced under the same licence as Ruby-GNOME2.
|
7
|
+
|
8
|
+
$Id: test.rb,v 1.4 2007/06/03 02:11:07 mutoh Exp $
|
9
|
+
=end
|
10
|
+
|
11
|
+
require "gtksourceview3"
|
12
|
+
|
13
|
+
window = Gtk::Window.new
|
14
|
+
window.signal_connect("delete-event") {Gtk.main_quit}
|
15
|
+
|
16
|
+
view = GtkSource::View.new
|
17
|
+
window.add(Gtk::ScrolledWindow.new.add(view))
|
18
|
+
view.show_line_numbers = true
|
19
|
+
view.insert_spaces_instead_of_tabs = true
|
20
|
+
view.indent_width = 4
|
21
|
+
view.show_right_margin = true
|
22
|
+
view.right_margin_position = 80
|
23
|
+
|
24
|
+
lang = GtkSource::LanguageManager.new.get_language("ruby")
|
25
|
+
view.buffer.language = lang
|
26
|
+
view.buffer.highlight_syntax = true
|
27
|
+
view.buffer.highlight_matching_brackets = true
|
28
|
+
|
29
|
+
window.set_default_size(450, 300)
|
30
|
+
window.show_all
|
31
|
+
|
32
|
+
Gtk.main
|
data/test/run-test.rb
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
|
4
|
+
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
5
|
+
|
6
|
+
glib_base = File.join(ruby_gnome2_base, "glib2")
|
7
|
+
atk_base = File.join(ruby_gnome2_base, "atk")
|
8
|
+
cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
|
9
|
+
pango_base = File.join(ruby_gnome2_base, "pango")
|
10
|
+
gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
|
11
|
+
gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
|
12
|
+
gdk3_base = File.join(ruby_gnome2_base, "gdk3")
|
13
|
+
gtk3_base = File.join(ruby_gnome2_base, "gtk3")
|
14
|
+
gtk_source_view3_base = File.join(ruby_gnome2_base, "gtksourceview3")
|
15
|
+
|
16
|
+
$LOAD_PATH.unshift(glib_base)
|
17
|
+
require 'test/glib-test-init'
|
18
|
+
|
19
|
+
dependencies = [
|
20
|
+
glib_base,
|
21
|
+
atk_base,
|
22
|
+
cairo_gobject_base,
|
23
|
+
pango_base,
|
24
|
+
gdk_pixbuf_base,
|
25
|
+
gobject_introspection_base,
|
26
|
+
gdk3_base,
|
27
|
+
gtk3_base,
|
28
|
+
gtk_source_view3_base,
|
29
|
+
]
|
30
|
+
dependencies.each do |target|
|
31
|
+
makefile = File.join(target, "Makefile")
|
32
|
+
if File.exist?(makefile) and system("which make > /dev/null")
|
33
|
+
`make -C #{target.dump} > /dev/null` or exit(false)
|
34
|
+
end
|
35
|
+
$LOAD_PATH.unshift(File.join(target, "ext", File.basename(target)))
|
36
|
+
$LOAD_PATH.unshift(File.join(target, "lib"))
|
37
|
+
end
|
38
|
+
|
39
|
+
$LOAD_PATH.unshift(File.join(gtk3_base, "test"))
|
40
|
+
require 'gtk-test-utils'
|
41
|
+
|
42
|
+
require 'gtksourceview3'
|
43
|
+
|
44
|
+
exit Test::Unit::AutoRunner.run(true)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Copyright (C) 2014 Ruby-GNOME2 Project Team
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
class TestMarkAttributes < Test::Unit::TestCase
|
18
|
+
def setup
|
19
|
+
@mark_attributes = GtkSource::MarkAttributes.new
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_background
|
23
|
+
@mark_attributes.background = Gdk::RGBA.new(1, 0, 0, 0)
|
24
|
+
assert_equal("rgba(255,0,0,0)", @mark_attributes.background.to_s)
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Copyright (C) 2014 Ruby-GNOME2 Project Team
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
class TestGutterRendererText < Test::Unit::TestCase
|
18
|
+
def setup
|
19
|
+
@renderer = GtkSource::GutterRendererText.new
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_markup
|
23
|
+
markup_text = "ruby"
|
24
|
+
@renderer.markup = markup_text
|
25
|
+
assert_equal(markup_text, @renderer.markup)
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_text
|
29
|
+
render_text = "gtksourceview"
|
30
|
+
@renderer.text = render_text
|
31
|
+
assert_equal(render_text, @renderer.text)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Copyright (C) 2014 Ruby-GNOME2 Project Team
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
class TestLanguageManager < Test::Unit::TestCase
|
18
|
+
def setup
|
19
|
+
@lang = GtkSource::LanguageManager.new
|
20
|
+
@view = GtkSource::View.new
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_language
|
24
|
+
language = @lang.get_language("ruby")
|
25
|
+
@view.buffer.language = language
|
26
|
+
assert_equal(language, @view.buffer.language)
|
27
|
+
|
28
|
+
highlight = true
|
29
|
+
@view.buffer.highlight_syntax = highlight
|
30
|
+
assert_true(@view.buffer.highlight_syntax?)
|
31
|
+
|
32
|
+
@view.buffer.highlight_matching_brackets = highlight
|
33
|
+
assert_true(@view.buffer.highlight_matching_brackets?)
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_language_ids
|
37
|
+
ids = @lang.language_ids
|
38
|
+
assert_include(ids, "ruby")
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_search_path
|
42
|
+
custom_path = "/path/to/search"
|
43
|
+
@lang.search_path = custom_path
|
44
|
+
assert_equal([custom_path], @lang.search_path)
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2011-2014 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
|
+
class TestSourceView < Test::Unit::TestCase
|
20
|
+
def setup
|
21
|
+
@view = GtkSource::View.new
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_auto_indent
|
25
|
+
@view.auto_indent = true
|
26
|
+
assert_true(@view.auto_indent?)
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_line_number
|
30
|
+
@view.show_line_numbers = true
|
31
|
+
assert_true(@view.show_line_numbers?)
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_indent_width
|
35
|
+
indent = 4
|
36
|
+
@view.indent_width = indent
|
37
|
+
assert_equal(indent, @view.indent_width)
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_insert_spaces_instead_of_tabs
|
41
|
+
insert_spaces = true
|
42
|
+
@view.insert_spaces_instead_of_tabs = insert_spaces
|
43
|
+
assert_true(@view.insert_spaces_instead_of_tabs?)
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_right_margin_position
|
47
|
+
margin = 100
|
48
|
+
@view.right_margin_position = margin
|
49
|
+
assert_equal(margin, @view.right_margin_position)
|
50
|
+
end
|
51
|
+
|
52
|
+
def test_show_right_margin
|
53
|
+
show = true
|
54
|
+
@view.show_right_margin = show
|
55
|
+
assert_true(@view.show_right_margin?)
|
56
|
+
end
|
57
|
+
end
|
Binary file
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
* gtksourcecompletionproviderwords.h
|
3
|
+
* This file is part of GtkSourceView
|
4
|
+
*
|
5
|
+
* Copyright (C) 2009 - Jesse van den Kieboom
|
6
|
+
*
|
7
|
+
* gtksourceview is free software; you can redistribute it and/or
|
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
|
18
|
+
* License along with this library; if not, write to the Free Software
|
19
|
+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#ifndef __GTK_SOURCE_COMPLETION_WORDS_H__
|
23
|
+
#define __GTK_SOURCE_COMPLETION_WORDS_H__
|
24
|
+
|
25
|
+
#include <gtksourceview/gtksourcecompletionprovider.h>
|
26
|
+
#include <gtk/gtk.h>
|
27
|
+
|
28
|
+
G_BEGIN_DECLS
|
29
|
+
|
30
|
+
#define GTK_SOURCE_TYPE_COMPLETION_WORDS (gtk_source_completion_words_get_type ())
|
31
|
+
#define GTK_SOURCE_COMPLETION_WORDS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_COMPLETION_WORDS, GtkSourceCompletionWords))
|
32
|
+
#define GTK_SOURCE_COMPLETION_WORDS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_COMPLETION_WORDS, GtkSourceCompletionWordsClass))
|
33
|
+
#define GTK_SOURCE_IS_COMPLETION_WORDS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_COMPLETION_WORDS))
|
34
|
+
#define GTK_SOURCE_IS_COMPLETION_WORDS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_COMPLETION_WORDS))
|
35
|
+
#define GTK_SOURCE_COMPLETION_WORDS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_COMPLETION_WORDS, GtkSourceCompletionWordsClass))
|
36
|
+
|
37
|
+
typedef struct _GtkSourceCompletionWords GtkSourceCompletionWords;
|
38
|
+
typedef struct _GtkSourceCompletionWordsClass GtkSourceCompletionWordsClass;
|
39
|
+
typedef struct _GtkSourceCompletionWordsPrivate GtkSourceCompletionWordsPrivate;
|
40
|
+
|
41
|
+
struct _GtkSourceCompletionWords {
|
42
|
+
GObject parent;
|
43
|
+
|
44
|
+
GtkSourceCompletionWordsPrivate *priv;
|
45
|
+
};
|
46
|
+
|
47
|
+
struct _GtkSourceCompletionWordsClass {
|
48
|
+
GObjectClass parent_class;
|
49
|
+
};
|
50
|
+
|
51
|
+
GType gtk_source_completion_words_get_type (void) G_GNUC_CONST;
|
52
|
+
|
53
|
+
GtkSourceCompletionWords *
|
54
|
+
gtk_source_completion_words_new (const gchar *name,
|
55
|
+
GdkPixbuf *icon);
|
56
|
+
|
57
|
+
void gtk_source_completion_words_register (GtkSourceCompletionWords *words,
|
58
|
+
GtkTextBuffer *buffer);
|
59
|
+
|
60
|
+
void gtk_source_completion_words_unregister (GtkSourceCompletionWords *words,
|
61
|
+
GtkTextBuffer *buffer);
|
62
|
+
|
63
|
+
G_END_DECLS
|
64
|
+
|
65
|
+
#endif /* __GTK_SOURCE_COMPLETION_WORDS_H__ */
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/*
|
2
|
+
* gtksource.h
|
3
|
+
* This file is part of gtksourceview
|
4
|
+
*
|
5
|
+
* gtksourceview 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
|
+
* gtksourceview 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 St, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
*/
|
19
|
+
|
20
|
+
#ifndef __GTK_SOURCE_H__
|
21
|
+
#define __GTK_SOURCE_H__
|
22
|
+
|
23
|
+
#include <gtksourceview/gtksourcetypes.h>
|
24
|
+
#include <gtksourceview/gtksourcebuffer.h>
|
25
|
+
#include <gtksourceview/gtksourcecompletioncontext.h>
|
26
|
+
#include <gtksourceview/gtksourcecompletion.h>
|
27
|
+
#include <gtksourceview/gtksourcecompletioninfo.h>
|
28
|
+
#include <gtksourceview/gtksourcecompletionitem.h>
|
29
|
+
#include <gtksourceview/gtksourcecompletionproposal.h>
|
30
|
+
#include <gtksourceview/gtksourcecompletionprovider.h>
|
31
|
+
#include <gtksourceview/gtksourceencoding.h>
|
32
|
+
#include <gtksourceview/gtksourcefile.h>
|
33
|
+
#include <gtksourceview/gtksourcefileloader.h>
|
34
|
+
#include <gtksourceview/gtksourcefilesaver.h>
|
35
|
+
#include <gtksourceview/gtksourcegutter.h>
|
36
|
+
#include <gtksourceview/gtksourcegutterrenderer.h>
|
37
|
+
#include <gtksourceview/gtksourcegutterrenderertext.h>
|
38
|
+
#include <gtksourceview/gtksourcegutterrendererpixbuf.h>
|
39
|
+
#include <gtksourceview/gtksourcelanguage.h>
|
40
|
+
#include <gtksourceview/gtksourcelanguagemanager.h>
|
41
|
+
#include <gtksourceview/gtksourcemark.h>
|
42
|
+
#include <gtksourceview/gtksourcemarkattributes.h>
|
43
|
+
#include <gtksourceview/gtksourceprintcompositor.h>
|
44
|
+
#include <gtksourceview/gtksourcesearchcontext.h>
|
45
|
+
#include <gtksourceview/gtksourcesearchsettings.h>
|
46
|
+
#include <gtksourceview/gtksourcestyle.h>
|
47
|
+
#include <gtksourceview/gtksourcestylescheme.h>
|
48
|
+
#include <gtksourceview/gtksourcestyleschememanager.h>
|
49
|
+
#include <gtksourceview/gtksourceundomanager.h>
|
50
|
+
#include <gtksourceview/gtksourceutils.h>
|
51
|
+
#include <gtksourceview/gtksourceview.h>
|
52
|
+
#include <gtksourceview/gtksourceview-typebuiltins.h>
|
53
|
+
|
54
|
+
#endif /* __GTK_SOURCE_H__ */
|