gtksourceview3 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/ext/gtksourceview3/extconf.rb +1 -2
  4. data/ext/gtksourceview3/rbgtksourcegutterrenderertext.c +1 -25
  5. data/ext/gtksourceview3/rbgtksourceview3conversions.h +7 -0
  6. data/ext/gtksourceview3/rbgtksourceview3private.h +0 -1
  7. data/lib/2.0/gtksourceview3.so +0 -0
  8. data/test/run-test.rb +17 -7
  9. data/test/test_mark_attributes.rb +1 -1
  10. data/test/test_source_gutter_renderer.rb +33 -0
  11. data/test/test_source_language_manager.rb +46 -0
  12. data/test/test_source_view.rb +34 -0
  13. data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
  14. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +4 -0
  15. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +28 -0
  16. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceencoding.h +54 -0
  17. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h +115 -0
  18. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefileloader.h +122 -0
  19. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefilesaver.h +147 -0
  20. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +3 -0
  21. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +48 -2
  22. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceundomanager.h +1 -3
  23. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +33 -0
  24. data/vendor/local/lib/girepository-1.0/GtkSource-3.0.typelib +0 -0
  25. data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
  26. data/vendor/local/lib/libgtksourceview-3.0.la +3 -3
  27. data/vendor/local/lib/locale/ar/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  28. data/vendor/local/lib/locale/as/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  29. data/vendor/local/lib/locale/be/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  30. data/vendor/local/lib/locale/bg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  31. data/vendor/local/lib/locale/bn_IN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  32. data/vendor/local/lib/locale/ca/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  33. data/vendor/local/lib/locale/ca@valencia/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  34. data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  35. data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  36. data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  37. data/vendor/local/lib/locale/el/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  38. data/vendor/local/lib/locale/en_GB/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  39. data/vendor/local/lib/locale/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  40. data/vendor/local/lib/locale/eu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  41. data/vendor/local/lib/locale/fa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  42. data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  43. data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  44. data/vendor/local/lib/locale/ga/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  45. data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  46. data/vendor/local/lib/locale/gu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  47. data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  48. data/vendor/local/lib/locale/hi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  49. data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  50. data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  51. data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  52. data/vendor/local/lib/locale/ja/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  53. data/vendor/local/lib/locale/kn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  54. data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  55. data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  56. data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  57. data/vendor/local/lib/locale/ml/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  58. data/vendor/local/lib/locale/mr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  59. data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  60. data/vendor/local/lib/locale/nl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  61. data/vendor/local/lib/locale/or/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  62. data/vendor/local/lib/locale/pa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  63. data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  64. data/vendor/local/lib/locale/pt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  65. data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  66. data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  67. data/vendor/local/lib/locale/sk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  68. data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  69. data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  70. data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  71. data/vendor/local/lib/locale/sv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  72. data/vendor/local/lib/locale/ta/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  73. data/vendor/local/lib/locale/te/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  74. data/vendor/local/lib/locale/th/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  75. data/vendor/local/lib/locale/tr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  76. data/vendor/local/lib/locale/ug/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  77. data/vendor/local/lib/locale/uk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  78. data/vendor/local/lib/locale/vi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  79. data/vendor/local/lib/locale/zh_CN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  80. data/vendor/local/lib/locale/zh_HK/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  81. data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  82. data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +2 -2
  83. data/vendor/local/share/gir-1.0/GtkSource-3.0.gir +2211 -330
  84. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +1682 -983
  85. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +818 -573
  86. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +267 -189
  87. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +209 -157
  88. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +247 -167
  89. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +428 -295
  90. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +558 -420
  91. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +217 -125
  92. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceEncoding.html +366 -0
  93. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFile.html +563 -0
  94. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileLoader.html +769 -0
  95. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileSaver.html +962 -0
  96. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +341 -196
  97. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +1211 -827
  98. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +327 -206
  99. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +156 -96
  100. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +431 -269
  101. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +300 -235
  102. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +203 -139
  103. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +640 -452
  104. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +1444 -1114
  105. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +794 -573
  106. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +421 -280
  107. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +232 -99
  108. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +283 -178
  109. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +326 -220
  110. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +313 -194
  111. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +1430 -924
  112. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +33 -13
  113. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +7 -7
  114. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +47 -47
  115. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-12.html +39 -0
  116. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-14.html +299 -0
  117. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +5 -5
  118. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +35 -15
  119. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +742 -430
  120. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +31 -19
  121. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +4 -4
  122. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +95 -81
  123. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +519 -463
  124. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +32 -18
  125. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +326 -153
  126. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +151 -57
  127. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +14 -17
  128. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +42 -37
  129. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +39 -8
  130. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style.css +260 -105
  131. data/vendor/local/share/gtksourceview-3.0/language-specs/actionscript.lang +1 -1
  132. data/vendor/local/share/gtksourceview-3.0/language-specs/ada.lang +1 -1
  133. data/vendor/local/share/gtksourceview-3.0/language-specs/ansforth94.lang +729 -0
  134. data/vendor/local/share/gtksourceview-3.0/language-specs/asp.lang +1 -1
  135. data/vendor/local/share/gtksourceview-3.0/language-specs/automake.lang +3 -2
  136. data/vendor/local/share/gtksourceview-3.0/language-specs/awk.lang +1 -1
  137. data/vendor/local/share/gtksourceview-3.0/language-specs/bennugd.lang +1 -1
  138. data/vendor/local/share/gtksourceview-3.0/language-specs/bluespec.lang +1 -1
  139. data/vendor/local/share/gtksourceview-3.0/language-specs/boo.lang +1 -1
  140. data/vendor/local/share/gtksourceview-3.0/language-specs/c.lang +1 -1
  141. data/vendor/local/share/gtksourceview-3.0/language-specs/cg.lang +1 -1
  142. data/vendor/local/share/gtksourceview-3.0/language-specs/changelog.lang +1 -1
  143. data/vendor/local/share/gtksourceview-3.0/language-specs/chdr.lang +1 -1
  144. data/vendor/local/share/gtksourceview-3.0/language-specs/cmake.lang +1 -1
  145. data/vendor/local/share/gtksourceview-3.0/language-specs/cobol.lang +536 -345
  146. data/vendor/local/share/gtksourceview-3.0/language-specs/cpp.lang +1 -1
  147. data/vendor/local/share/gtksourceview-3.0/language-specs/csharp.lang +1 -1
  148. data/vendor/local/share/gtksourceview-3.0/language-specs/css.lang +6 -1
  149. data/vendor/local/share/gtksourceview-3.0/language-specs/cuda.lang +1 -1
  150. data/vendor/local/share/gtksourceview-3.0/language-specs/d.lang +25 -3
  151. data/vendor/local/share/gtksourceview-3.0/language-specs/def.lang +8 -0
  152. data/vendor/local/share/gtksourceview-3.0/language-specs/desktop.lang +1 -1
  153. data/vendor/local/share/gtksourceview-3.0/language-specs/diff.lang +1 -1
  154. data/vendor/local/share/gtksourceview-3.0/language-specs/dosbatch.lang +1 -1
  155. data/vendor/local/share/gtksourceview-3.0/language-specs/dot.lang +1 -1
  156. data/vendor/local/share/gtksourceview-3.0/language-specs/dpatch.lang +2 -2
  157. data/vendor/local/share/gtksourceview-3.0/language-specs/dtd.lang +1 -1
  158. data/vendor/local/share/gtksourceview-3.0/language-specs/eiffel.lang +1 -1
  159. data/vendor/local/share/gtksourceview-3.0/language-specs/erlang.lang +1 -1
  160. data/vendor/local/share/gtksourceview-3.0/language-specs/fcl.lang +1 -3
  161. data/vendor/local/share/gtksourceview-3.0/language-specs/forth.lang +1 -1
  162. data/vendor/local/share/gtksourceview-3.0/language-specs/fortran.lang +85 -6
  163. data/vendor/local/share/gtksourceview-3.0/language-specs/fsharp.lang +1 -1
  164. data/vendor/local/share/gtksourceview-3.0/language-specs/gdb-log.lang +1 -1
  165. data/vendor/local/share/gtksourceview-3.0/language-specs/glsl.lang +1 -1
  166. data/vendor/local/share/gtksourceview-3.0/language-specs/go.lang +1 -1
  167. data/vendor/local/share/gtksourceview-3.0/language-specs/gtkrc.lang +1 -1
  168. data/vendor/local/share/gtksourceview-3.0/language-specs/haskell-literate.lang +1 -1
  169. data/vendor/local/share/gtksourceview-3.0/language-specs/haskell.lang +1 -1
  170. data/vendor/local/share/gtksourceview-3.0/language-specs/html.lang +238 -137
  171. data/vendor/local/share/gtksourceview-3.0/language-specs/idl.lang +1 -1
  172. data/vendor/local/share/gtksourceview-3.0/language-specs/ini.lang +2 -2
  173. data/vendor/local/share/gtksourceview-3.0/language-specs/j.lang +1 -1
  174. data/vendor/local/share/gtksourceview-3.0/language-specs/java.lang +1 -1
  175. data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +1 -1
  176. data/vendor/local/share/gtksourceview-3.0/language-specs/json.lang +1 -1
  177. data/vendor/local/share/gtksourceview-3.0/language-specs/latex.lang +389 -133
  178. data/vendor/local/share/gtksourceview-3.0/language-specs/lex.lang +209 -0
  179. data/vendor/local/share/gtksourceview-3.0/language-specs/libtool.lang +1 -1
  180. data/vendor/local/share/gtksourceview-3.0/language-specs/llvm.lang +315 -0
  181. data/vendor/local/share/gtksourceview-3.0/language-specs/lua.lang +1 -1
  182. data/vendor/local/share/gtksourceview-3.0/language-specs/m4.lang +4 -4
  183. data/vendor/local/share/gtksourceview-3.0/language-specs/makefile.lang +1 -1
  184. data/vendor/local/share/gtksourceview-3.0/language-specs/mediawiki.lang +16 -12
  185. data/vendor/local/share/gtksourceview-3.0/language-specs/nemerle.lang +1 -1
  186. data/vendor/local/share/gtksourceview-3.0/language-specs/netrexx.lang +1 -1
  187. data/vendor/local/share/gtksourceview-3.0/language-specs/nsis.lang +1 -1
  188. data/vendor/local/share/gtksourceview-3.0/language-specs/objc.lang +1 -1
  189. data/vendor/local/share/gtksourceview-3.0/language-specs/objj.lang +1 -1
  190. data/vendor/local/share/gtksourceview-3.0/language-specs/ocaml.lang +1 -1
  191. data/vendor/local/share/gtksourceview-3.0/language-specs/ocl.lang +1 -1
  192. data/vendor/local/share/gtksourceview-3.0/language-specs/ooc.lang +1 -1
  193. data/vendor/local/share/gtksourceview-3.0/language-specs/opal.lang +1 -1
  194. data/vendor/local/share/gtksourceview-3.0/language-specs/opencl.lang +1 -1
  195. data/vendor/local/share/gtksourceview-3.0/language-specs/pascal.lang +12 -12
  196. data/vendor/local/share/gtksourceview-3.0/language-specs/perl.lang +1 -1
  197. data/vendor/local/share/gtksourceview-3.0/language-specs/php.lang +15 -15
  198. data/vendor/local/share/gtksourceview-3.0/language-specs/pkgconfig.lang +1 -1
  199. data/vendor/local/share/gtksourceview-3.0/language-specs/po.lang +1 -1
  200. data/vendor/local/share/gtksourceview-3.0/language-specs/prolog.lang +1 -1
  201. data/vendor/local/share/gtksourceview-3.0/language-specs/protobuf.lang +2 -4
  202. data/vendor/local/share/gtksourceview-3.0/language-specs/puppet.lang +1 -1
  203. data/vendor/local/share/gtksourceview-3.0/language-specs/python.lang +62 -3
  204. data/vendor/local/share/gtksourceview-3.0/language-specs/python3.lang +1 -1
  205. data/vendor/local/share/gtksourceview-3.0/language-specs/rpmspec.lang +3 -1
  206. data/vendor/local/share/gtksourceview-3.0/language-specs/rst.lang +142 -0
  207. data/vendor/local/share/gtksourceview-3.0/language-specs/ruby.lang +2 -2
  208. data/vendor/local/share/gtksourceview-3.0/language-specs/scala.lang +1 -1
  209. data/vendor/local/share/gtksourceview-3.0/language-specs/scheme.lang +1 -1
  210. data/vendor/local/share/gtksourceview-3.0/language-specs/sh.lang +2 -2
  211. data/vendor/local/share/gtksourceview-3.0/language-specs/sml.lang +1 -1
  212. data/vendor/local/share/gtksourceview-3.0/language-specs/sparql.lang +1 -1
  213. data/vendor/local/share/gtksourceview-3.0/language-specs/sql.lang +1 -1
  214. data/vendor/local/share/gtksourceview-3.0/language-specs/sweave.lang +67 -0
  215. data/vendor/local/share/gtksourceview-3.0/language-specs/systemverilog.lang +1 -1
  216. data/vendor/local/share/gtksourceview-3.0/language-specs/tcl.lang +1 -1
  217. data/vendor/local/share/gtksourceview-3.0/language-specs/vala.lang +1 -1
  218. data/vendor/local/share/gtksourceview-3.0/language-specs/vbnet.lang +1 -1
  219. data/vendor/local/share/gtksourceview-3.0/language-specs/verilog.lang +1 -1
  220. data/vendor/local/share/gtksourceview-3.0/language-specs/vhdl.lang +1 -1
  221. data/vendor/local/share/gtksourceview-3.0/language-specs/yacc.lang +2 -2
  222. data/vendor/local/share/gtksourceview-3.0/language-specs/yaml.lang +214 -0
  223. data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +13 -2
  224. data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +16 -5
  225. data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +11 -3
  226. data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +14 -4
  227. data/vendor/local/share/gtksourceview-3.0/styles/solarized-dark.xml +101 -0
  228. data/vendor/local/share/gtksourceview-3.0/styles/solarized-light.xml +101 -0
  229. data/vendor/local/share/gtksourceview-3.0/styles/styles.rng +3 -0
  230. data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +14 -2
  231. data/vendor/local/share/license/gtksourceview/AUTHORS +1 -0
  232. data/vendor/local/share/license/gtksourceview/COPYING +415 -251
  233. metadata +31 -13
  234. data/lib/1.9/gtksourceview3.so +0 -0
  235. data/lib/2.1/gtksourceview3.so +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f00ac57899ea53168f8ea0c6ed999d4787742ce
4
- data.tar.gz: 1bd36499975c6ccba4e7cf3227ab2238ed06d75e
3
+ metadata.gz: 5843d5c4854bcda07cc61c3fab4a63df88da0feb
4
+ data.tar.gz: 8c727e597d3c59a7f0ee7d32346139c5d445151a
5
5
  SHA512:
6
- metadata.gz: 3771b410e24df495cd83600f1b2968ae3335d0803ce8a7a33cf22870b281503df861f34be2b66a15269eb17018e101665527145c274aae3be9bb43e81d01d5c3
7
- data.tar.gz: 36b6a1baac2e4aa969d08b581395b7f6ea4916f94e858dae2a8b872ff3fc009d72207c4340c689a1441811709508155401e715896564168867d3c6ddb032948b
6
+ metadata.gz: 4a80b4ad23fb1607d55d96c4c2471171990fd7a730d278b618b32ad989ae5ae7aa7439c2ff12e93884b7a0a5b8b9e39b7b6e187fd8599895762c3386c3dc4ad0
7
+ data.tar.gz: f7e729d0192b75d4a41f954383888c7ac906c202bc77782c67a4d6f27761e08a033c10482fcf6f876eb9e3a35fd2212c4fd67d329fe8a1d4c7cb964e7aa6f771
data/Rakefile CHANGED
@@ -44,7 +44,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
44
44
  :name => "gtksourceview",
45
45
  :download_site => :gnome,
46
46
  :label => "GtkSourceView",
47
- :version => "3.10.2",
47
+ :version => "3.14.0",
48
48
  :compression_method => "xz",
49
49
  :windows => {
50
50
  :configure_args => [
@@ -30,7 +30,7 @@ rescue LoadError
30
30
  require 'mkmf-gnome2'
31
31
  end
32
32
 
33
- ["glib2", "atk", "pango", "gdk_pixbuf2", "gdk3", "gtk3"].each do |package|
33
+ ["glib2", "atk", "pango", "gdk_pixbuf2", "gtk3"].each do |package|
34
34
  directory = "#{package}#{version_suffix}"
35
35
  build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
36
36
  add_depend_package(package, "#{directory}/ext/#{package}",
@@ -78,4 +78,3 @@ if pkg_config_dir.is_a?(String)
78
78
  makefile.puts("pkgconfigdir=#{pkg_config_dir}")
79
79
  end
80
80
  end
81
-
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2014 Ruby-GNOME2 Project Team
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
6
6
  * modify it under the terms of the GNU Lesser General Public
@@ -31,34 +31,10 @@ rg_initialize(VALUE self)
31
31
  return Qnil;
32
32
  }
33
33
 
34
- static VALUE
35
- rg_set_markup(VALUE self, VALUE markup)
36
- {
37
- StringValue(markup);
38
- gtk_source_gutter_renderer_text_set_markup(_SELF(self),
39
- RSTRING_PTR(markup),
40
- RSTRING_LEN(markup));
41
-
42
- return self;
43
- }
44
-
45
- static VALUE
46
- rg_set_text(VALUE self, VALUE text)
47
- {
48
- StringValue(text);
49
- gtk_source_gutter_renderer_text_set_text(_SELF(self),
50
- RSTRING_PTR(text),
51
- RSTRING_LEN(text));
52
-
53
- return self;
54
- }
55
-
56
34
  void
57
35
  Init_gtksource_gutterrenderertext(VALUE mGtkSource)
58
36
  {
59
37
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_SOURCE_TYPE_GUTTER_RENDERER_TEXT, "GutterRendererText", mGtkSource);
60
38
 
61
39
  RG_DEF_METHOD(initialize, 0);
62
- RG_DEF_METHOD(set_markup, 1);
63
- RG_DEF_METHOD(set_text, 1);
64
40
  }
@@ -40,4 +40,11 @@
40
40
  #define RVAL2GTKSOURCEGUTTERRENDERERSTATE(o) (RVAL2GFLAGS(o, GTK_SOURCE_TYPE_GUTTER_RENDERER_STATE))
41
41
  #define GTKSOURCEGUTTERRENDERERSTATE2RVAL(o) (GFLAGS2RVAL(o, GTK_SOURCE_TYPE_GUTTER_RENDERER_STATE))
42
42
 
43
+ /* For GDK3. They are temporary. They will be needless after Ruby/SourceView3
44
+ * is based on Ruby/GObjectIntrospection.
45
+ */
46
+ #define RVAL2GDKRECTANGLE(o) ((GdkRectangle*)RVAL2BOXED(o, GDK_TYPE_RECTANGLE))
47
+ #define RVAL2GDKRGBA(o) ((GdkRGBA*)RVAL2BOXED(o, GDK_TYPE_RGBA))
48
+ #define GDKRGBA2RVAL(o) (BOXED2RVAL(o, GDK_TYPE_RGBA))
49
+
43
50
  #endif /* __RBGTKSOURCEVIEW3CONVERSIONS_H__ */
@@ -28,7 +28,6 @@
28
28
 
29
29
  #include <ruby.h>
30
30
  #include <rb_cairo.h>
31
- #include <rbgdk3.h>
32
31
  #include <rbgtk3.h>
33
32
  #include "rbgtksourceview3conversions.h"
34
33
  #include "rbgtksourceview3version.h"
Binary file
data/test/run-test.rb CHANGED
@@ -5,8 +5,10 @@ ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
5
5
 
6
6
  glib_base = File.join(ruby_gnome2_base, "glib2")
7
7
  atk_base = File.join(ruby_gnome2_base, "atk")
8
+ cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
8
9
  pango_base = File.join(ruby_gnome2_base, "pango")
9
10
  gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
11
+ gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
10
12
  gdk3_base = File.join(ruby_gnome2_base, "gdk3")
11
13
  gtk3_base = File.join(ruby_gnome2_base, "gtk3")
12
14
  gtk_source_view3_base = File.join(ruby_gnome2_base, "gtksourceview3")
@@ -14,15 +16,23 @@ gtk_source_view3_base = File.join(ruby_gnome2_base, "gtksourceview3")
14
16
  $LOAD_PATH.unshift(glib_base)
15
17
  require 'test/glib-test-init'
16
18
 
17
- [glib_base, atk_base, pango_base, gdk_pixbuf_base, gdk3_base, gtk3_base,
18
- gtk_source_view3_base].each do |target|
19
- if system("which make > /dev/null")
20
- `make -C #{target.dump} > /dev/null` or exit(1)
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)
21
34
  end
22
35
  $LOAD_PATH.unshift(File.join(target, "ext", File.basename(target)))
23
- $LOAD_PATH.unshift(File.join(target, "src"))
24
- $LOAD_PATH.unshift(File.join(target, "src", "lib"))
25
- $LOAD_PATH.unshift(File.join(target))
26
36
  $LOAD_PATH.unshift(File.join(target, "lib"))
27
37
  end
28
38
 
@@ -21,6 +21,6 @@ class TestMarkAttributes < Test::Unit::TestCase
21
21
 
22
22
  def test_background
23
23
  @mark_attributes.background = Gdk::RGBA.new(1, 0, 0, 0)
24
- assert_equal(Gdk::RGBA.new(1, 0, 0, 0), @mark_attributes.background)
24
+ assert_equal("rgba(255,0,0,0)", @mark_attributes.background.to_s)
25
25
  end
26
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
@@ -20,4 +20,38 @@ class TestSourceView < Test::Unit::TestCase
20
20
  def setup
21
21
  @view = GtkSource::View.new
22
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
23
57
  end
@@ -28,6 +28,10 @@
28
28
  #include <gtksourceview/gtksourcecompletionitem.h>
29
29
  #include <gtksourceview/gtksourcecompletionproposal.h>
30
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>
31
35
  #include <gtksourceview/gtksourcegutter.h>
32
36
  #include <gtksourceview/gtksourcegutterrenderer.h>
33
37
  #include <gtksourceview/gtksourcegutterrenderertext.h>
@@ -6,6 +6,7 @@
6
6
  * Chris Phelps <chicane@reninet.com> and
7
7
  * Jeroen Zwartepoorte <jeroen@xs4all.nl>
8
8
  * Copyright (C) 2003 - Paolo Maggi, Gustavo Giráldez
9
+ * Copyright (C) 2014 - Sébastien Wilmet <swilmet@gnome.org>
9
10
  *
10
11
  * GtkSourceView is free software; you can redistribute it and/or
11
12
  * modify it under the terms of the GNU Lesser General Public
@@ -56,6 +57,23 @@ typedef enum
56
57
  GTK_SOURCE_BRACKET_MATCH_FOUND
57
58
  } GtkSourceBracketMatchType;
58
59
 
60
+ /**
61
+ * GtkSourceChangeCaseType:
62
+ * @GTK_SOURCE_CHANGE_CASE_LOWER: change case to lowercase.
63
+ * @GTK_SOURCE_CHANGE_CASE_UPPER: change case to uppercase.
64
+ * @GTK_SOURCE_CHANGE_CASE_TOGGLE: toggle case of each character.
65
+ * @GTK_SOURCE_CHANGE_CASE_TITLE: capitalize each word.
66
+ *
67
+ * Since: 3.12
68
+ */
69
+ typedef enum
70
+ {
71
+ GTK_SOURCE_CHANGE_CASE_LOWER,
72
+ GTK_SOURCE_CHANGE_CASE_UPPER,
73
+ GTK_SOURCE_CHANGE_CASE_TOGGLE,
74
+ GTK_SOURCE_CHANGE_CASE_TITLE
75
+ } GtkSourceChangeCaseType;
76
+
59
77
  struct _GtkSourceBuffer
60
78
  {
61
79
  GtkTextBuffer parent_instance;
@@ -175,11 +193,21 @@ gboolean gtk_source_buffer_iter_backward_to_context_class_toggle
175
193
  GtkTextIter *iter,
176
194
  const gchar *context_class);
177
195
 
196
+ void gtk_source_buffer_change_case (GtkSourceBuffer *buffer,
197
+ GtkSourceChangeCaseType case_type,
198
+ GtkTextIter *start,
199
+ GtkTextIter *end);
200
+
178
201
  GtkSourceUndoManager *gtk_source_buffer_get_undo_manager (GtkSourceBuffer *buffer);
179
202
 
180
203
  void gtk_source_buffer_set_undo_manager (GtkSourceBuffer *buffer,
181
204
  GtkSourceUndoManager *manager);
182
205
 
206
+ void gtk_source_buffer_set_implicit_trailing_newline (GtkSourceBuffer *buffer,
207
+ gboolean implicit_trailing_newline);
208
+
209
+ gboolean gtk_source_buffer_get_implicit_trailing_newline (GtkSourceBuffer *buffer);
210
+
183
211
  G_END_DECLS
184
212
 
185
213
  #endif /* __GTK_SOURCE_BUFFER_H__ */
@@ -0,0 +1,54 @@
1
+ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
2
+ /* gtksourceencoding.h
3
+ * This file is part of GtkSourceView
4
+ *
5
+ * Copyright (C) 2002-2005 - Paolo Maggi
6
+ * Copyright (C) 2014 - Sébastien Wilmet <swilmet@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
19
+ * License along with this library; if not, write to the Free Software
20
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
+ */
22
+
23
+ #ifndef __GTK_SOURCE_ENCODING_H__
24
+ #define __GTK_SOURCE_ENCODING_H__
25
+
26
+ #include <glib.h>
27
+ #include <glib-object.h>
28
+ #include <gtksourceview/gtksourcetypes.h>
29
+
30
+ G_BEGIN_DECLS
31
+
32
+ #define GTK_SOURCE_TYPE_ENCODING (gtk_source_encoding_get_type ())
33
+
34
+ GType gtk_source_encoding_get_type (void) G_GNUC_CONST;
35
+
36
+ const GtkSourceEncoding *gtk_source_encoding_get_from_charset (const gchar *charset);
37
+
38
+ gchar *gtk_source_encoding_to_string (const GtkSourceEncoding *enc);
39
+
40
+ const gchar *gtk_source_encoding_get_name (const GtkSourceEncoding *enc);
41
+ const gchar *gtk_source_encoding_get_charset (const GtkSourceEncoding *enc);
42
+
43
+ const GtkSourceEncoding *gtk_source_encoding_get_utf8 (void);
44
+ const GtkSourceEncoding *gtk_source_encoding_get_current (void);
45
+
46
+ GSList *gtk_source_encoding_get_all (void);
47
+
48
+ /* These should not be used, they are just to make python bindings happy */
49
+ GtkSourceEncoding *gtk_source_encoding_copy (const GtkSourceEncoding *enc);
50
+ void gtk_source_encoding_free (GtkSourceEncoding *enc);
51
+
52
+ G_END_DECLS
53
+
54
+ #endif /* __GTK_SOURCE_ENCODING_H__ */
@@ -0,0 +1,115 @@
1
+ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
2
+ /* gtksourcefile.h
3
+ * This file is part of GtkSourceView
4
+ *
5
+ * Copyright (C) 2014 - Sébastien Wilmet <swilmet@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
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_FILE_H__
23
+ #define __GTK_SOURCE_FILE_H__
24
+
25
+ #include <gtk/gtk.h>
26
+ #include <gtksourceview/gtksourcetypes.h>
27
+
28
+ G_BEGIN_DECLS
29
+
30
+ #define GTK_SOURCE_TYPE_FILE (gtk_source_file_get_type ())
31
+ #define GTK_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_FILE, GtkSourceFile))
32
+ #define GTK_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_FILE, GtkSourceFileClass))
33
+ #define GTK_SOURCE_IS_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_FILE))
34
+ #define GTK_SOURCE_IS_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_FILE))
35
+ #define GTK_SOURCE_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_FILE, GtkSourceFileClass))
36
+
37
+ typedef struct _GtkSourceFileClass GtkSourceFileClass;
38
+ typedef struct _GtkSourceFilePrivate GtkSourceFilePrivate;
39
+
40
+ /**
41
+ * GtkSourceMountOperationFactory:
42
+ * @file: a #GtkSourceFile.
43
+ * @userdata: user data
44
+ *
45
+ * Type definition for a function that will be called to create a
46
+ * #GMountOperation. This is useful for creating a #GtkMountOperation.
47
+ *
48
+ * Since: 3.14
49
+ */
50
+ typedef GMountOperation *(*GtkSourceMountOperationFactory) (GtkSourceFile *file,
51
+ gpointer userdata);
52
+
53
+ struct _GtkSourceFile
54
+ {
55
+ GObject parent;
56
+
57
+ GtkSourceFilePrivate *priv;
58
+ };
59
+
60
+ struct _GtkSourceFileClass
61
+ {
62
+ GObjectClass parent_class;
63
+
64
+ gpointer padding[10];
65
+ };
66
+
67
+ GType gtk_source_file_get_type (void) G_GNUC_CONST;
68
+
69
+ GtkSourceFile *gtk_source_file_new (void);
70
+
71
+ GFile *gtk_source_file_get_location (GtkSourceFile *file);
72
+
73
+ void gtk_source_file_set_location (GtkSourceFile *file,
74
+ GFile *location);
75
+
76
+ const GtkSourceEncoding *
77
+ gtk_source_file_get_encoding (GtkSourceFile *file);
78
+
79
+ GtkSourceNewlineType
80
+ gtk_source_file_get_newline_type (GtkSourceFile *file);
81
+
82
+ GtkSourceCompressionType
83
+ gtk_source_file_get_compression_type (GtkSourceFile *file);
84
+
85
+ void gtk_source_file_set_mount_operation_factory (GtkSourceFile *file,
86
+ GtkSourceMountOperationFactory callback,
87
+ gpointer user_data,
88
+ GDestroyNotify notify);
89
+
90
+ G_GNUC_INTERNAL
91
+ void _gtk_source_file_set_encoding (GtkSourceFile *file,
92
+ const GtkSourceEncoding *encoding);
93
+
94
+ G_GNUC_INTERNAL
95
+ void _gtk_source_file_set_newline_type (GtkSourceFile *file,
96
+ GtkSourceNewlineType newline_type);
97
+
98
+ G_GNUC_INTERNAL
99
+ void _gtk_source_file_set_compression_type (GtkSourceFile *file,
100
+ GtkSourceCompressionType compression_type);
101
+
102
+ G_GNUC_INTERNAL
103
+ GMountOperation *_gtk_source_file_create_mount_operation (GtkSourceFile *file);
104
+
105
+ G_GNUC_INTERNAL
106
+ gboolean _gtk_source_file_get_modification_time (GtkSourceFile *file,
107
+ GTimeVal *modification_time);
108
+
109
+ G_GNUC_INTERNAL
110
+ void _gtk_source_file_set_modification_time (GtkSourceFile *file,
111
+ GTimeVal modification_time);
112
+
113
+ G_END_DECLS
114
+
115
+ #endif /* __GTK_SOURCE_FILE_H__ */
@@ -0,0 +1,122 @@
1
+ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
2
+ /* gtksourcefileloader.h
3
+ * This file is part of GtkSourceView
4
+ *
5
+ * Copyright (C) 2005 - Paolo Maggi
6
+ * Copyright (C) 2007 - Paolo Maggi, Steve Frécinaux
7
+ * Copyright (C) 2008 - Jesse van den Kieboom
8
+ * Copyright (C) 2014 - Sébastien Wilmet
9
+ *
10
+ * GtkSourceView is free software; you can redistribute it and/or
11
+ * modify it under the terms of the GNU Lesser General Public
12
+ * License as published by the Free Software Foundation; either
13
+ * version 2.1 of the License, or (at your option) any later version.
14
+ *
15
+ * GtkSourceView is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
+ * Lesser General Public License for more details.
19
+ *
20
+ * You should have received a copy of the GNU Lesser General Public
21
+ * License along with this library; if not, write to the Free Software
22
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
+ */
24
+
25
+ #ifndef __GTK_SOURCE_FILE_LOADER_H__
26
+ #define __GTK_SOURCE_FILE_LOADER_H__
27
+
28
+ #include <gtk/gtk.h>
29
+ #include <gtksourceview/gtksourcetypes.h>
30
+
31
+ G_BEGIN_DECLS
32
+
33
+ #define GTK_SOURCE_TYPE_FILE_LOADER (gtk_source_file_loader_get_type())
34
+ #define GTK_SOURCE_FILE_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_SOURCE_TYPE_FILE_LOADER, GtkSourceFileLoader))
35
+ #define GTK_SOURCE_FILE_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_SOURCE_TYPE_FILE_LOADER, GtkSourceFileLoaderClass))
36
+ #define GTK_SOURCE_IS_FILE_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_SOURCE_TYPE_FILE_LOADER))
37
+ #define GTK_SOURCE_IS_FILE_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_FILE_LOADER))
38
+ #define GTK_SOURCE_FILE_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_SOURCE_TYPE_FILE_LOADER, GtkSourceFileLoaderClass))
39
+
40
+ typedef struct _GtkSourceFileLoaderClass GtkSourceFileLoaderClass;
41
+ typedef struct _GtkSourceFileLoaderPrivate GtkSourceFileLoaderPrivate;
42
+
43
+ #define GTK_SOURCE_FILE_LOADER_ERROR gtk_source_file_loader_error_quark ()
44
+
45
+ /**
46
+ * GtkSourceFileLoaderError:
47
+ * @GTK_SOURCE_FILE_LOADER_ERROR_TOO_BIG: The file is too big.
48
+ * @GTK_SOURCE_FILE_LOADER_ERROR_ENCODING_AUTO_DETECTION_FAILED: It is not
49
+ * possible to detect the encoding automatically.
50
+ * @GTK_SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK: There was an encoding
51
+ * conversion error and it was needed to use a fallback character.
52
+ *
53
+ * An error code used with the %GTK_SOURCE_FILE_LOADER_ERROR domain.
54
+ */
55
+ typedef enum
56
+ {
57
+ GTK_SOURCE_FILE_LOADER_ERROR_TOO_BIG,
58
+ GTK_SOURCE_FILE_LOADER_ERROR_ENCODING_AUTO_DETECTION_FAILED,
59
+ GTK_SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK
60
+ } GtkSourceFileLoaderError;
61
+
62
+ struct _GtkSourceFileLoader
63
+ {
64
+ GObject parent;
65
+
66
+ GtkSourceFileLoaderPrivate *priv;
67
+ };
68
+
69
+ struct _GtkSourceFileLoaderClass
70
+ {
71
+ GObjectClass parent_class;
72
+
73
+ gpointer padding[10];
74
+ };
75
+
76
+ GType gtk_source_file_loader_get_type (void) G_GNUC_CONST;
77
+
78
+ GQuark gtk_source_file_loader_error_quark (void);
79
+
80
+ GtkSourceFileLoader *gtk_source_file_loader_new (GtkSourceBuffer *buffer,
81
+ GtkSourceFile *file);
82
+
83
+ GtkSourceFileLoader *gtk_source_file_loader_new_from_stream (GtkSourceBuffer *buffer,
84
+ GtkSourceFile *file,
85
+ GInputStream *stream);
86
+
87
+ void gtk_source_file_loader_set_candidate_encodings
88
+ (GtkSourceFileLoader *loader,
89
+ GSList *candidate_encodings);
90
+
91
+ GtkSourceBuffer *gtk_source_file_loader_get_buffer (GtkSourceFileLoader *loader);
92
+
93
+ GtkSourceFile *gtk_source_file_loader_get_file (GtkSourceFileLoader *loader);
94
+
95
+ GFile *gtk_source_file_loader_get_location (GtkSourceFileLoader *loader);
96
+
97
+ GInputStream *gtk_source_file_loader_get_input_stream
98
+ (GtkSourceFileLoader *loader);
99
+
100
+ void gtk_source_file_loader_load_async (GtkSourceFileLoader *loader,
101
+ gint io_priority,
102
+ GCancellable *cancellable,
103
+ GFileProgressCallback progress_callback,
104
+ gpointer progress_callback_data,
105
+ GDestroyNotify progress_callback_notify,
106
+ GAsyncReadyCallback callback,
107
+ gpointer user_data);
108
+
109
+ gboolean gtk_source_file_loader_load_finish (GtkSourceFileLoader *loader,
110
+ GAsyncResult *result,
111
+ GError **error);
112
+
113
+ const GtkSourceEncoding *gtk_source_file_loader_get_encoding (GtkSourceFileLoader *loader);
114
+
115
+ GtkSourceNewlineType gtk_source_file_loader_get_newline_type (GtkSourceFileLoader *loader);
116
+
117
+ GtkSourceCompressionType gtk_source_file_loader_get_compression_type
118
+ (GtkSourceFileLoader *loader);
119
+
120
+ G_END_DECLS
121
+
122
+ #endif /* __GTK_SOURCE_FILE_LOADER_H__ */