glib2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (540) hide show
  1. data/ext/glib2/extconf.rb +1 -0
  2. data/ext/glib2/glib2.def +23 -0
  3. data/ext/glib2/rbgcompat.h +19 -5
  4. data/ext/glib2/rbglib.c +607 -160
  5. data/ext/glib2/rbglib.h +81 -26
  6. data/ext/glib2/rbglib2conversions.h +57 -0
  7. data/ext/glib2/rbglib_bookmarkfile.c +117 -107
  8. data/ext/glib2/rbglib_completion.c +37 -26
  9. data/ext/glib2/rbglib_convert.c +42 -30
  10. data/ext/glib2/rbglib_error.c +20 -10
  11. data/ext/glib2/rbglib_fileutils.c +48 -37
  12. data/ext/glib2/rbglib_i18n.c +24 -14
  13. data/ext/glib2/rbglib_int64.c +24 -16
  14. data/ext/glib2/rbglib_iochannel.c +146 -204
  15. data/ext/glib2/rbglib_iochannel_win32_socket.c +56 -0
  16. data/ext/glib2/rbglib_iochannelerror.c +49 -0
  17. data/ext/glib2/rbglib_keyfile.c +171 -182
  18. data/ext/glib2/rbglib_maincontext.c +107 -92
  19. data/ext/glib2/rbglib_mainloop.c +34 -21
  20. data/ext/glib2/rbglib_messages.c +53 -44
  21. data/ext/glib2/rbglib_pollfd.c +37 -26
  22. data/ext/glib2/rbglib_shell.c +29 -22
  23. data/ext/glib2/rbglib_shellerror.c +34 -0
  24. data/ext/glib2/rbglib_source.c +49 -36
  25. data/ext/glib2/rbglib_spawn.c +50 -61
  26. data/ext/glib2/rbglib_spawnerror.c +53 -0
  27. data/ext/glib2/rbglib_threads.c +28 -16
  28. data/ext/glib2/rbglib_timer.c +35 -24
  29. data/ext/glib2/rbglib_ucs4.c +79 -0
  30. data/ext/glib2/rbglib_unichar.c +209 -0
  31. data/ext/glib2/rbglib_unicode.c +34 -584
  32. data/ext/glib2/rbglib_utf16.c +78 -0
  33. data/ext/glib2/rbglib_utf8.c +259 -0
  34. data/ext/glib2/rbglib_utils.c +95 -91
  35. data/ext/glib2/rbglib_win32.c +52 -45
  36. data/ext/glib2/rbglibdeprecated.c +56 -0
  37. data/ext/glib2/rbglibdeprecated.h +34 -0
  38. data/ext/glib2/rbgobj_boxed.c +40 -33
  39. data/ext/glib2/rbgobj_closure.c +45 -34
  40. data/ext/glib2/rbgobj_convert.c +19 -9
  41. data/ext/glib2/rbgobj_enumflags.c +109 -0
  42. data/ext/glib2/rbgobj_enums.c +67 -646
  43. data/ext/glib2/rbgobj_flags.c +522 -0
  44. data/ext/glib2/rbgobj_fundamental.c +19 -6
  45. data/ext/glib2/rbgobj_object.c +90 -81
  46. data/ext/glib2/rbgobj_param.c +78 -83
  47. data/ext/glib2/rbgobj_paramspecs.c +20 -12
  48. data/ext/glib2/rbgobj_signal.c +248 -193
  49. data/ext/glib2/rbgobj_strv.c +20 -10
  50. data/ext/glib2/rbgobj_type.c +153 -149
  51. data/ext/glib2/rbgobj_typeinstance.c +49 -39
  52. data/ext/glib2/rbgobj_typeinterface.c +37 -27
  53. data/ext/glib2/rbgobj_typemodule.c +39 -29
  54. data/ext/glib2/rbgobj_typeplugin.c +36 -26
  55. data/ext/glib2/rbgobj_value.c +41 -11
  56. data/ext/glib2/rbgobj_valuearray.c +59 -23
  57. data/ext/glib2/rbgobj_valuetypes.c +27 -17
  58. data/ext/glib2/rbgobject.c +26 -40
  59. data/ext/glib2/rbgobject.h +38 -20
  60. data/ext/glib2/rbgprivate.h +87 -5
  61. data/ext/glib2/rbgutil.c +52 -238
  62. data/ext/glib2/rbgutil.h +55 -42
  63. data/ext/glib2/rbgutil_callback.c +47 -12
  64. data/ext/glib2/rbgutil_list.c +173 -0
  65. data/ext/glib2/rbgutil_list.h +85 -0
  66. data/ext/glib2/rbgutildeprecated.c +252 -0
  67. data/ext/glib2/rbgutildeprecated.h +63 -0
  68. data/lib/1.8/glib2.so +0 -0
  69. data/lib/1.9/glib2.so +0 -0
  70. data/lib/glib-mkenums.rb +2 -2
  71. data/lib/glib2.rb +2 -25
  72. data/lib/glib2/deprecatable.rb +149 -0
  73. data/lib/gnome2-raketask.rb +45 -15
  74. data/lib/gnome2-win32-binary-downloader.rb +1 -1
  75. data/lib/mkmf-gnome2.rb +37 -18
  76. data/test/test_flags.rb +129 -0
  77. data/test/test_key_file.rb +6 -2
  78. data/test/test_spawn.rb +33 -0
  79. data/vendor/local/bin/gdbus.exe +0 -0
  80. data/vendor/local/bin/gio-querymodules.exe +0 -0
  81. data/vendor/local/bin/glib-compile-schemas.exe +0 -0
  82. data/vendor/local/bin/glib-genmarshal.exe +0 -0
  83. data/vendor/local/bin/glib-gettextize +2 -2
  84. data/vendor/local/bin/glib-mkenums +1 -1
  85. data/vendor/local/bin/gobject-query.exe +0 -0
  86. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  87. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  88. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  89. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  90. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  91. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  92. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  93. data/vendor/local/etc/bash_completion.d/gdbus-bash-completion.sh +33 -0
  94. data/vendor/local/etc/bash_completion.d/gsettings-bash-completion.sh +67 -0
  95. data/vendor/local/include/gio-win32-2.0/gio/gwin32inputstream.h +79 -0
  96. data/vendor/local/include/gio-win32-2.0/gio/gwin32outputstream.h +78 -0
  97. data/vendor/local/include/glib-2.0/gio/gapplication.h +13 -7
  98. data/vendor/local/include/glib-2.0/gio/gioenums.h +16 -5
  99. data/vendor/local/include/glib-2.0/glib/gconvert.h +2 -0
  100. data/vendor/local/include/glib-2.0/glib/gdir.h +2 -0
  101. data/vendor/local/include/glib-2.0/glib/gfileutils.h +2 -0
  102. data/vendor/local/include/glib-2.0/glib/giochannel.h +1 -1
  103. data/vendor/local/include/glib-2.0/glib/gspawn.h +2 -0
  104. data/vendor/local/include/glib-2.0/glib/gutils.h +6 -2
  105. data/vendor/local/include/glib-2.0/glib/gvarianttype.h +10 -10
  106. data/vendor/local/include/glib-2.0/gobject/gtype.h +1 -1
  107. data/vendor/local/include/glib-2.0/gobject/gvalue.h +9 -1
  108. data/vendor/local/lib/gio-2.0.lib +0 -0
  109. data/vendor/local/lib/glib-2.0.def +1 -0
  110. data/vendor/local/lib/glib-2.0.lib +0 -0
  111. data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
  112. data/vendor/local/lib/gmodule-2.0.lib +0 -0
  113. data/vendor/local/lib/gobject-2.0.lib +0 -0
  114. data/vendor/local/lib/gthread-2.0.lib +0 -0
  115. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  116. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  117. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  118. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  119. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  120. data/vendor/local/lib/pkgconfig/gio-2.0.pc +1 -1
  121. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
  122. data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
  123. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
  124. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  125. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
  126. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
  127. data/vendor/local/manifest/{glib-dev_2.28.1-1_win32.mft → glib-dev_2.28.8-1_win32.mft} +33 -20
  128. data/vendor/local/manifest/{glib_2.28.1-1_win32.mft → glib_2.28.8-1_win32.mft} +3 -3
  129. data/vendor/local/share/aclocal/gsettings.m4 +83 -0
  130. data/vendor/local/share/doc/{glib-2.28.1 → glib-2.28.8}/COPYING +0 -0
  131. data/vendor/local/share/doc/{glib-dev-2.28.1 → glib-dev-2.28.8}/COPYING +0 -0
  132. data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +0 -0
  133. data/vendor/local/share/gtk-doc/html/gio/GAction.html +3 -3
  134. data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +2 -2
  135. data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +3 -3
  136. data/vendor/local/share/gtk-doc/html/gio/GApplication.html +115 -32
  137. data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +329 -312
  138. data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +2 -2
  139. data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +2 -2
  140. data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +2 -2
  141. data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +2 -2
  142. data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +2 -2
  143. data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +2 -2
  144. data/vendor/local/share/gtk-doc/html/gio/GConverter.html +2 -2
  145. data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +2 -2
  146. data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +2 -2
  147. data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +95 -40
  148. data/vendor/local/share/gtk-doc/html/gio/GDBusError.html +2 -2
  149. data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +4 -4
  150. data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +6 -4
  151. data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +21 -11
  152. data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +3 -4
  153. data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +2 -2
  154. data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +2 -2
  155. data/vendor/local/share/gtk-doc/html/gio/GDrive.html +2 -2
  156. data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +2 -2
  157. data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +2 -2
  158. data/vendor/local/share/gtk-doc/html/gio/GFile.html +9 -7
  159. data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +2 -2
  160. data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +3 -3
  161. data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +2 -2
  162. data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +2 -2
  163. data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +3 -3
  164. data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +2 -2
  165. data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +2 -2
  166. data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +2 -2
  167. data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +2 -2
  168. data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +4 -4
  169. data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +2 -2
  170. data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +2 -2
  171. data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +2 -2
  172. data/vendor/local/share/gtk-doc/html/gio/GIcon.html +2 -2
  173. data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +2 -2
  174. data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +2 -2
  175. data/vendor/local/share/gtk-doc/html/gio/GInitable.html +2 -2
  176. data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +2 -2
  177. data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +2 -2
  178. data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +2 -2
  179. data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +2 -2
  180. data/vendor/local/share/gtk-doc/html/gio/GMount.html +2 -2
  181. data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +6 -6
  182. data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +2 -2
  183. data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +2 -2
  184. data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +2 -2
  185. data/vendor/local/share/gtk-doc/html/gio/GPermission.html +2 -2
  186. data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +2 -2
  187. data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +2 -2
  188. data/vendor/local/share/gtk-doc/html/gio/GProxy.html +2 -2
  189. data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +2 -2
  190. data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +2 -2
  191. data/vendor/local/share/gtk-doc/html/gio/GResolver.html +2 -2
  192. data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +2 -2
  193. data/vendor/local/share/gtk-doc/html/gio/GSettings.html +11 -4
  194. data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +2 -2
  195. data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +3 -3
  196. data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +2 -2
  197. data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +2 -2
  198. data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +2 -2
  199. data/vendor/local/share/gtk-doc/html/gio/GSocket.html +2 -2
  200. data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +2 -2
  201. data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +2 -2
  202. data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +2 -2
  203. data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +2 -2
  204. data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +2 -2
  205. data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +2 -2
  206. data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +2 -2
  207. data/vendor/local/share/gtk-doc/html/gio/GSrvTarget.html +2 -2
  208. data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +2 -2
  209. data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +2 -2
  210. data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +3 -3
  211. data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +2 -2
  212. data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +2 -2
  213. data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +2 -2
  214. data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +2 -2
  215. data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +2 -2
  216. data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +2 -2
  217. data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +2 -2
  218. data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +2 -2
  219. data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +2 -2
  220. data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +2 -2
  221. data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +2 -2
  222. data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +2 -2
  223. data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +2 -2
  224. data/vendor/local/share/gtk-doc/html/gio/GVfs.html +2 -2
  225. data/vendor/local/share/gtk-doc/html/gio/GVolume.html +2 -2
  226. data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +2 -2
  227. data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +2 -2
  228. data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +2 -2
  229. data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +2 -2
  230. data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +2 -2
  231. data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +2 -2
  232. data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +2 -2
  233. data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +2 -2
  234. data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +2 -2
  235. data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +2 -2
  236. data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +2 -2
  237. data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +2 -2
  238. data/vendor/local/share/gtk-doc/html/gio/application.html +2 -2
  239. data/vendor/local/share/gtk-doc/html/gio/async.html +2 -2
  240. data/vendor/local/share/gtk-doc/html/gio/ch01.html +3 -3
  241. data/vendor/local/share/gtk-doc/html/gio/ch02.html +4 -4
  242. data/vendor/local/share/gtk-doc/html/gio/ch03.html +3 -3
  243. data/vendor/local/share/gtk-doc/html/gio/ch26.html +3 -3
  244. data/vendor/local/share/gtk-doc/html/gio/ch27.html +5 -5
  245. data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +3 -3
  246. data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +3 -3
  247. data/vendor/local/share/gtk-doc/html/gio/ch28.html +5 -5
  248. data/vendor/local/share/gtk-doc/html/gio/ch28s02.html +3 -3
  249. data/vendor/local/share/gtk-doc/html/gio/ch28s03.html +3 -3
  250. data/vendor/local/share/gtk-doc/html/gio/ch28s04.html +3 -3
  251. data/vendor/local/share/gtk-doc/html/gio/ch28s05.html +3 -3
  252. data/vendor/local/share/gtk-doc/html/gio/ch28s06.html +4 -4
  253. data/vendor/local/share/gtk-doc/html/gio/ch28s07.html +3 -3
  254. data/vendor/local/share/gtk-doc/html/gio/ch29.html +5 -5
  255. data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +3 -3
  256. data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +3 -3
  257. data/vendor/local/share/gtk-doc/html/gio/ch29s04.html +3 -3
  258. data/vendor/local/share/gtk-doc/html/gio/ch29s05.html +5 -5
  259. data/vendor/local/share/gtk-doc/html/gio/ch29s06.html +4 -4
  260. data/vendor/local/share/gtk-doc/html/gio/conversion.html +2 -2
  261. data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +2 -2
  262. data/vendor/local/share/gtk-doc/html/gio/extending.html +2 -2
  263. data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +2 -2
  264. data/vendor/local/share/gtk-doc/html/gio/file_mon.html +2 -2
  265. data/vendor/local/share/gtk-doc/html/gio/file_ops.html +2 -2
  266. data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +2 -2
  267. data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +2 -2
  268. data/vendor/local/share/gtk-doc/html/gio/gdbus.html +9 -9
  269. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +2 -2
  270. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +2 -2
  271. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +2 -2
  272. data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +2 -2
  273. data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +2 -2
  274. data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +6 -5
  275. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +2 -2
  276. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +2 -2
  277. data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +4 -4
  278. data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +2 -2
  279. data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +2 -2
  280. data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +2 -2
  281. data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +2 -2
  282. data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +2 -2
  283. data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +2 -2
  284. data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +2 -2
  285. data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +3 -3
  286. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +8 -8
  287. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +8 -8
  288. data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +7 -5
  289. data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +4 -4
  290. data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +2 -2
  291. data/vendor/local/share/gtk-doc/html/gio/icons.html +2 -2
  292. data/vendor/local/share/gtk-doc/html/gio/index.html +6 -6
  293. data/vendor/local/share/gtk-doc/html/gio/migrating.html +5 -5
  294. data/vendor/local/share/gtk-doc/html/gio/networking.html +2 -2
  295. data/vendor/local/share/gtk-doc/html/gio/permissions.html +2 -2
  296. data/vendor/local/share/gtk-doc/html/gio/pt01.html +3 -3
  297. data/vendor/local/share/gtk-doc/html/gio/pt02.html +3 -3
  298. data/vendor/local/share/gtk-doc/html/gio/resolver.html +2 -2
  299. data/vendor/local/share/gtk-doc/html/gio/settings.html +2 -2
  300. data/vendor/local/share/gtk-doc/html/gio/streaming.html +2 -2
  301. data/vendor/local/share/gtk-doc/html/gio/tls.html +2 -2
  302. data/vendor/local/share/gtk-doc/html/gio/tools.html +2 -2
  303. data/vendor/local/share/gtk-doc/html/gio/types.html +2 -2
  304. data/vendor/local/share/gtk-doc/html/gio/utils.html +2 -2
  305. data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +2 -2
  306. data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -2
  307. data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +2 -2
  308. data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +2 -2
  309. data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +2 -2
  310. data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +2 -2
  311. data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +2 -2
  312. data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +2 -2
  313. data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +2 -2
  314. data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +2 -2
  315. data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +2 -2
  316. data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +2 -2
  317. data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +2 -2
  318. data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +4 -4
  319. data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +2 -2
  320. data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +2 -2
  321. data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +2 -2
  322. data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +26 -26
  323. data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +4 -4
  324. data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +2 -2
  325. data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +2 -2
  326. data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +2 -2
  327. data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +2 -2
  328. data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +2 -2
  329. data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +2 -2
  330. data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +2 -2
  331. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +3 -3
  332. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +2 -2
  333. data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +4 -4
  334. data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +99 -19
  335. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +4 -4
  336. data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +2 -2
  337. data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +2 -2
  338. data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +4 -4
  339. data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +2 -2
  340. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +2 -2
  341. data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +3 -3
  342. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +5 -5
  343. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +147 -49
  344. data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +2 -2
  345. data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +2 -2
  346. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +123 -94
  347. data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +52 -47
  348. data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +2 -2
  349. data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +4 -3
  350. data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +2 -2
  351. data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +2 -2
  352. data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +5 -4
  353. data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +3 -3
  354. data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +2 -2
  355. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +2 -2
  356. data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +2 -2
  357. data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +2 -2
  358. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +2 -2
  359. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +2 -2
  360. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +4 -4
  361. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +6 -6
  362. data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +5 -5
  363. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +2 -2
  364. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +83 -48
  365. data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +2 -2
  366. data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +2 -2
  367. data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +2 -2
  368. data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +3 -3
  369. data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +2 -2
  370. data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +2 -2
  371. data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +2 -2
  372. data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +2 -2
  373. data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +6 -4
  374. data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +2 -2
  375. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +2 -2
  376. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +287 -52
  377. data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +2 -2
  378. data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +2 -2
  379. data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +2 -2
  380. data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +2 -2
  381. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +2 -2
  382. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +19 -14
  383. data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +2 -2
  384. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +17 -14
  385. data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +2 -2
  386. data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +2 -2
  387. data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +2 -2
  388. data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +16 -8
  389. data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +2 -2
  390. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +6 -6
  391. data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +4 -4
  392. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +2 -2
  393. data/vendor/local/share/gtk-doc/html/glib/glib-building.html +3 -3
  394. data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +4 -4
  395. data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +3 -3
  396. data/vendor/local/share/gtk-doc/html/glib/glib-core.html +2 -2
  397. data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +2 -2
  398. data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +2 -2
  399. data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +2 -2
  400. data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +5 -5
  401. data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +47 -47
  402. data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +5 -5
  403. data/vendor/local/share/gtk-doc/html/glib/glib-running.html +8 -8
  404. data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +2 -2
  405. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +49 -49
  406. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +49 -49
  407. data/vendor/local/share/gtk-doc/html/glib/glib.html +2 -2
  408. data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +5 -5
  409. data/vendor/local/share/gtk-doc/html/glib/gtester.html +5 -5
  410. data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +35 -35
  411. data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +4 -4
  412. data/vendor/local/share/gtk-doc/html/glib/index.html +3 -3
  413. data/vendor/local/share/gtk-doc/html/glib/index.sgml +1 -0
  414. data/vendor/local/share/gtk-doc/html/glib/tools.html +2 -2
  415. data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +2 -2
  416. data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +2 -2
  417. data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +2 -2
  418. data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +2 -2
  419. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +2 -2
  420. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +2 -2
  421. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +2 -2
  422. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +2 -2
  423. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +2 -2
  424. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +2 -2
  425. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +2 -2
  426. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +2 -2
  427. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +2 -2
  428. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +2 -2
  429. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +2 -2
  430. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +2 -2
  431. data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +2 -2
  432. data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +2 -2
  433. data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +6 -6
  434. data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +3 -3
  435. data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +2 -2
  436. data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +4 -4
  437. data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +4 -4
  438. data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +10 -10
  439. data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +11 -11
  440. data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +8 -8
  441. data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +2 -2
  442. data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +2 -2
  443. data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +2 -2
  444. data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +2 -2
  445. data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +2 -2
  446. data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +5 -5
  447. data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +2 -2
  448. data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +7 -7
  449. data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +8 -3
  450. data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +5 -3
  451. data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +2 -2
  452. data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +2 -2
  453. data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +6 -6
  454. data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +5 -5
  455. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +8 -8
  456. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -8
  457. data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +4 -4
  458. data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +2 -2
  459. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +2 -2
  460. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +2 -2
  461. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +4 -4
  462. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +2 -2
  463. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +2 -2
  464. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +2 -2
  465. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +5 -5
  466. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +5 -5
  467. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +2 -2
  468. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +6 -6
  469. data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +2 -2
  470. data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +4 -4
  471. data/vendor/local/share/gtk-doc/html/gobject/index.html +9 -9
  472. data/vendor/local/share/gtk-doc/html/gobject/pr01.html +3 -3
  473. data/vendor/local/share/gtk-doc/html/gobject/pt01.html +6 -6
  474. data/vendor/local/share/gtk-doc/html/gobject/pt02.html +6 -6
  475. data/vendor/local/share/gtk-doc/html/gobject/pt03.html +3 -3
  476. data/vendor/local/share/gtk-doc/html/gobject/rn01.html +3 -3
  477. data/vendor/local/share/gtk-doc/html/gobject/rn02.html +3 -3
  478. data/vendor/local/share/gtk-doc/html/gobject/signal.html +6 -6
  479. data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +2 -2
  480. data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +2 -2
  481. data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +2 -2
  482. data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +2 -2
  483. data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +2 -2
  484. data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
  485. data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
  486. data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
  487. data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
  488. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
  489. data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
  490. data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
  491. data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
  492. data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
  493. data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
  494. data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
  495. data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
  496. data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
  497. data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
  498. data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
  499. data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
  500. data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
  501. data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
  502. data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
  503. data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
  504. data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
  505. data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
  506. data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
  507. data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
  508. data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
  509. data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
  510. data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
  511. data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
  512. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  513. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
  514. data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
  515. data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
  516. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  517. data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
  518. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
  519. data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
  520. data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
  521. data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
  522. data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
  523. data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
  524. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
  525. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
  526. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
  527. data/vendor/local/share/man/man1/gdbus.1 +249 -0
  528. data/vendor/local/share/man/man1/gio-querymodules.1 +44 -0
  529. data/vendor/local/share/man/man1/glib-compile-schemas.1 +86 -0
  530. data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
  531. data/vendor/local/share/man/man1/glib-gettextize.1 +80 -0
  532. data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
  533. data/vendor/local/share/man/man1/gobject-query.1 +2 -2
  534. data/vendor/local/share/man/man1/gsettings.1 +153 -0
  535. data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.log +2919 -0
  536. data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.sh +157 -0
  537. metadata +45 -13
  538. data/ChangeLog +0 -3513
  539. data/vendor/local/src/tml/packaging/glib_2.28.1-1_win32.log +0 -2775
  540. data/vendor/local/src/tml/packaging/glib_2.28.1-1_win32.sh +0 -62
@@ -1,10 +1,23 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /************************************************
3
-
4
- rbgobj_fundamental.c -
5
-
6
- Copyright (C) 2007 Ruby-GNOME2 Project Team
7
- ************************************************/
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2007 Ruby-GNOME2 Project Team
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
8
21
 
9
22
  #include "rbgobject.h"
10
23
  #include "rbgprivate.h"
@@ -1,36 +1,44 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /**********************************************************************
3
-
4
- rbgobj_object.c -
5
-
6
- $Author: sakai $
7
- $Date: 2007/07/19 22:03:44 $
8
-
9
- Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
10
- Copyright (C) 2002-2003 Masahiro Sakai
11
-
12
- This file is derived from rbgtkobject.c in Ruby/Gtk distribution.
13
- rbgtkobject.c -
14
- Copyright (C) 1998-2000 Yukihiro Matsumoto,
15
- Daisuke Kanda,
16
- Hiroshi Igarashi
17
-
18
- **********************************************************************/
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
5
+ * Copyright (C) 2002-2003 Masahiro Sakai
6
+ * Copyright (C) 1998-2000 Yukihiro Matsumoto,
7
+ * Daisuke Kanda,
8
+ * Hiroshi Igarashi
9
+ *
10
+ * This library 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
+ * This library 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 Street, Fifth Floor, Boston,
23
+ * MA 02110-1301 USA
24
+ */
19
25
 
20
26
  #include "rbgprivate.h"
21
27
 
22
- VALUE rbgobj_cObject;
28
+ #define RG_TARGET_NAMESPACE rbgobj_cObject
29
+
30
+ VALUE RG_TARGET_NAMESPACE;
23
31
  static VALUE eNoPropertyError;
24
32
  static GQuark RUBY_GOBJECT_OBJ_KEY;
25
33
 
26
34
  /* deperecated */
27
35
  void
28
- rbgobj_add_abstract_but_create_instance_class(GType gtype)
36
+ rbgobj_add_abstract_but_create_instance_class(G_GNUC_UNUSED GType gtype)
29
37
  {
30
38
  }
31
39
 
32
40
  static void
33
- weak_notify(gpointer data, GObject *where_the_object_was)
41
+ weak_notify(gpointer data, G_GNUC_UNUSED GObject *where_the_object_was)
34
42
  {
35
43
  gobj_holder *holder = data;
36
44
 
@@ -56,7 +64,7 @@ holder_free(gobj_holder *holder)
56
64
  if (!holder->destroyed) {
57
65
  g_object_set_qdata(holder->gobj, RUBY_GOBJECT_OBJ_KEY, NULL);
58
66
  g_object_weak_unref(holder->gobj, (GWeakNotify)weak_notify, holder);
59
- weak_notify(holder, holder->gobj);
67
+ weak_notify(holder, holder->gobj);
60
68
  }
61
69
  holder->gobj = NULL;
62
70
  }
@@ -121,7 +129,7 @@ rbgobj_get_ruby_object_from_gobject(GObject* gobj, gboolean alloc)
121
129
  } else if (alloc) {
122
130
  VALUE obj;
123
131
 
124
- obj = gobj_s_allocate(GTYPE2CLASS(G_OBJECT_TYPE(gobj)));
132
+ obj = gobj_s_allocate(GTYPE2CLASS(G_OBJECT_TYPE(gobj)));
125
133
  gobj = g_object_ref(gobj);
126
134
  rbgobj_gobject_initialize(obj, (gpointer)gobj);
127
135
  return obj;
@@ -183,7 +191,7 @@ gobj_mark(gpointer ptr)
183
191
  GObject* gobj = ptr;
184
192
  guint n_properties;
185
193
  GParamSpec** properties;
186
- GValue gval = {0,};
194
+ GValue gval = G_VALUE_INIT;
187
195
  guint i;
188
196
 
189
197
  properties = g_object_class_list_properties(G_OBJECT_GET_CLASS(gobj), &n_properties);
@@ -207,7 +215,7 @@ gobj_mark(gpointer ptr)
207
215
  }
208
216
 
209
217
  static VALUE
210
- gobj_s_gobject_new(int argc, VALUE *argv, VALUE self)
218
+ rg_s_new_bang(int argc, VALUE *argv, VALUE self)
211
219
  {
212
220
  const RGObjClassInfo* cinfo = rbgobj_lookup_class(self);
213
221
  VALUE params_hash;
@@ -337,7 +345,7 @@ rbgobj_gobject_new(GType gtype, VALUE params_hash)
337
345
  }
338
346
 
339
347
  static VALUE
340
- gobj_s_install_property(int argc, VALUE* argv, VALUE self)
348
+ rg_s_install_property(int argc, VALUE* argv, VALUE self)
341
349
  {
342
350
  const RGObjClassInfo* cinfo = rbgobj_lookup_class(self);
343
351
  gpointer gclass;
@@ -431,8 +439,8 @@ rbgobj_register_property_setter(GType gtype, const char *name, RValueToGValueFun
431
439
 
432
440
  oclass = g_type_class_ref(gtype);
433
441
  pspec = g_object_class_find_property(oclass, name);
434
-
435
- rb_hash_aset(table, rb_str_new2(g_param_spec_get_name(pspec)),
442
+
443
+ rb_hash_aset(table, CSTR2RVAL(g_param_spec_get_name(pspec)),
436
444
  Data_Wrap_Struct(rb_cData, NULL, NULL, func));
437
445
 
438
446
  g_type_class_unref(oclass);
@@ -453,12 +461,14 @@ rbgobj_register_property_getter(GType gtype, const char *name, GValueToRValueFun
453
461
  oclass = g_type_class_ref(gtype);
454
462
  pspec = g_object_class_find_property(oclass, name);
455
463
 
456
- rb_hash_aset(table, rb_str_new2(g_param_spec_get_name(pspec)),
464
+ rb_hash_aset(table, CSTR2RVAL(g_param_spec_get_name(pspec)),
457
465
  Data_Wrap_Struct(rb_cData, NULL, NULL, func));
466
+
467
+ g_type_class_unref(oclass);
458
468
  }
459
469
 
460
470
  static VALUE
461
- gobj_set_property(VALUE self, VALUE prop_name, VALUE val)
471
+ rg_set_property(VALUE self, VALUE prop_name, VALUE val)
462
472
  {
463
473
  GParamSpec* pspec;
464
474
  const char* name;
@@ -476,7 +486,7 @@ gobj_set_property(VALUE self, VALUE prop_name, VALUE val)
476
486
  else {
477
487
  // FIXME: use rb_ensure to call g_value_unset()
478
488
  RValueToGValueFunc setter = NULL;
479
- GValue gval = {0,};
489
+ GValue gval = G_VALUE_INIT;
480
490
 
481
491
  g_value_init(&gval, G_PARAM_SPEC_VALUE_TYPE(pspec));
482
492
 
@@ -484,7 +494,7 @@ gobj_set_property(VALUE self, VALUE prop_name, VALUE val)
484
494
  VALUE table = rb_hash_aref(type_to_prop_setter_table,
485
495
  INT2FIX(pspec->owner_type));
486
496
  if (!NIL_P(table)){
487
- VALUE obj = rb_hash_aref(table, rb_intern(g_param_spec_get_name(pspec)));
497
+ VALUE obj = rb_hash_aref(table, CSTR2RVAL(g_param_spec_get_name(pspec)));
488
498
  if (!NIL_P(obj))
489
499
  Data_Get_Struct(obj, void, setter);
490
500
  }
@@ -505,7 +515,7 @@ gobj_set_property(VALUE self, VALUE prop_name, VALUE val)
505
515
  }
506
516
 
507
517
  static VALUE
508
- gobj_get_property(VALUE self, VALUE prop_name)
518
+ rg_get_property(VALUE self, VALUE prop_name)
509
519
  {
510
520
  GParamSpec* pspec;
511
521
  const char* name;
@@ -523,7 +533,7 @@ gobj_get_property(VALUE self, VALUE prop_name)
523
533
  else {
524
534
  // FIXME: use rb_ensure to call g_value_unset()
525
535
  GValueToRValueFunc getter = NULL;
526
- GValue gval = {0,};
536
+ GValue gval = G_VALUE_INIT;
527
537
  VALUE ret;
528
538
 
529
539
  {
@@ -548,34 +558,34 @@ gobj_get_property(VALUE self, VALUE prop_name)
548
558
  }
549
559
  }
550
560
 
551
- static VALUE gobj_thaw_notify(VALUE self);
561
+ static VALUE rg_thaw_notify(VALUE self);
552
562
 
553
563
  static VALUE
554
- gobj_freeze_notify(VALUE self)
564
+ rg_freeze_notify(VALUE self)
555
565
  {
556
566
  g_object_freeze_notify(RVAL2GOBJ(self));
557
567
  if (rb_block_given_p()) {
558
- return rb_ensure(rb_yield, self, gobj_thaw_notify, self);
568
+ return rb_ensure(rb_yield, self, rg_thaw_notify, self);
559
569
  }
560
570
  return self;
561
571
  }
562
572
 
563
573
  static VALUE
564
- gobj_notify(VALUE self, VALUE property_name)
574
+ rg_notify(VALUE self, VALUE property_name)
565
575
  {
566
576
  g_object_notify(RVAL2GOBJ(self), StringValuePtr(property_name));
567
577
  return self;
568
578
  }
569
579
 
570
580
  static VALUE
571
- gobj_thaw_notify(VALUE self)
581
+ rg_thaw_notify(VALUE self)
572
582
  {
573
583
  g_object_thaw_notify(RVAL2GOBJ(self));
574
584
  return self;
575
585
  }
576
586
 
577
587
  static VALUE
578
- gobj_is_destroyed(VALUE self)
588
+ rg_destroyed_p(VALUE self)
579
589
  {
580
590
  gobj_holder* holder;
581
591
 
@@ -588,7 +598,7 @@ gobj_is_destroyed(VALUE self)
588
598
  }
589
599
 
590
600
  static VALUE
591
- gobj_inspect(VALUE self)
601
+ rg_inspect(VALUE self)
592
602
  {
593
603
  gobj_holder* holder;
594
604
  const char *class_name;
@@ -600,7 +610,7 @@ gobj_inspect(VALUE self)
600
610
  class_name = rb_class2name(CLASS_OF(self));
601
611
  if (!holder->destroyed)
602
612
  s = g_strdup_printf("#<%s:%p ptr=%p>", class_name, (void *)self,
603
- holder->gobj);
613
+ holder->gobj);
604
614
  else
605
615
  s = g_strdup_printf("#<%s:%p destroyed>", class_name, (void *)self);
606
616
 
@@ -611,11 +621,17 @@ gobj_inspect(VALUE self)
611
621
  }
612
622
 
613
623
  static VALUE
614
- gobj_initialize(int argc, VALUE *argv, VALUE self)
624
+ rg_type_name(VALUE self)
625
+ {
626
+ return CSTR2RVAL(G_OBJECT_TYPE_NAME(RVAL2GOBJ(self)));
627
+ }
628
+
629
+ static VALUE
630
+ rg_initialize(int argc, VALUE *argv, VALUE self)
615
631
  {
616
632
  VALUE params_hash;
617
633
  GObject* gobj;
618
-
634
+
619
635
  rb_scan_args(argc, argv, "01", &params_hash);
620
636
 
621
637
  if (!NIL_P(params_hash))
@@ -651,7 +667,7 @@ static GQuark q_ruby_getter;
651
667
  // FIXME: use rb_protect
652
668
  static void
653
669
  get_prop_func(GObject* object,
654
- guint property_id,
670
+ G_GNUC_UNUSED guint property_id,
655
671
  GValue* value,
656
672
  GParamSpec* pspec)
657
673
  {
@@ -677,7 +693,7 @@ get_prop_func(GObject* object,
677
693
  // FIXME: use rb_protect
678
694
  static void
679
695
  set_prop_func(GObject* object,
680
- guint property_id,
696
+ G_GNUC_UNUSED guint property_id,
681
697
  const GValue* value,
682
698
  GParamSpec* pspec)
683
699
  {
@@ -699,7 +715,7 @@ set_prop_func(GObject* object,
699
715
 
700
716
  // FIXME: use rb_protect
701
717
  static void
702
- class_init_func(gpointer g_class_, gpointer class_data)
718
+ class_init_func(gpointer g_class_, G_GNUC_UNUSED gpointer class_data)
703
719
  {
704
720
  GObjectClass* g_class = G_OBJECT_CLASS(g_class_);
705
721
 
@@ -714,7 +730,7 @@ class_init_func(gpointer g_class_, gpointer class_data)
714
730
  }
715
731
 
716
732
  static VALUE
717
- type_register(int argc, VALUE* argv, VALUE self)
733
+ rg_s_type_register(int argc, VALUE* argv, VALUE self)
718
734
  {
719
735
  VALUE type_name, flags;
720
736
  volatile VALUE class_init_proc = Qnil;
@@ -752,6 +768,8 @@ type_register(int argc, VALUE* argv, VALUE self)
752
768
  GTypeQuery query;
753
769
  g_type_query(parent_type, &query);
754
770
 
771
+ /* TODO: Why new? g_type_register_static() doesn’t retain a copy, so
772
+ * this should be allocated on the stack. */
755
773
  info = g_new0(GTypeInfo, 1);
756
774
  info->class_size = query.class_size;
757
775
  info->base_init = NULL;
@@ -785,7 +803,7 @@ type_register(int argc, VALUE* argv, VALUE self)
785
803
  VALUE m = rb_define_module_under(self, RubyGObjectHookModule);
786
804
 
787
805
  if (! (cinfo->flags & RBGOBJ_DEFINED_BY_RUBY)) {
788
- rb_define_method(m, "initialize", gobj_initialize, -1);
806
+ rb_define_method(m, "initialize", rg_initialize, -1);
789
807
  }
790
808
 
791
809
  rb_include_module(self, m);
@@ -795,26 +813,13 @@ type_register(int argc, VALUE* argv, VALUE self)
795
813
  }
796
814
  }
797
815
 
798
- static void
799
- Init_gobject_subclass()
800
- {
801
- VALUE cGObject = GTYPE2CLASS(G_TYPE_OBJECT);
802
- rb_define_singleton_method(cGObject, "type_register", type_register, -1);
803
-
804
- rb_global_variable(&proc_mod_eval);
805
- proc_mod_eval = rb_eval_string("lambda{|obj,proc| obj.module_eval(&proc)}");
806
- }
807
-
808
816
  /**********************************************************************/
809
817
 
810
818
  void
811
- Init_gobject_gobject()
819
+ Init_gobject_gobject(void)
812
820
  {
813
- VALUE cGObject;
814
-
815
- rbgobj_cObject = G_DEF_CLASS_WITH_GC_FUNC(G_TYPE_OBJECT, "Object", mGLib,
816
- gobj_mark, NULL);
817
- cGObject = rbgobj_cObject;
821
+ RG_TARGET_NAMESPACE = G_DEF_CLASS_WITH_GC_FUNC(G_TYPE_OBJECT, "Object", mGLib,
822
+ gobj_mark, NULL);
818
823
 
819
824
  #ifdef G_TYPE_INITIALLY_UNOWNED
820
825
  G_DEF_CLASS(G_TYPE_INITIALLY_UNOWNED, "InitiallyUnowned", mGLib);
@@ -822,26 +827,27 @@ Init_gobject_gobject()
822
827
 
823
828
  RUBY_GOBJECT_OBJ_KEY = g_quark_from_static_string("__ruby_gobject_object__");
824
829
 
825
- rb_define_alloc_func(cGObject, (VALUE(*)_((VALUE)))gobj_s_allocate);
826
- rb_define_singleton_method(cGObject, "new!", gobj_s_gobject_new, -1);
830
+ rb_define_alloc_func(RG_TARGET_NAMESPACE, (VALUE(*)_((VALUE)))gobj_s_allocate);
831
+ RG_DEF_SMETHOD_BANG(new, -1);
827
832
 
828
- rb_define_singleton_method(cGObject, "property", &gobj_s_property, 1);
829
- rb_define_singleton_method(cGObject, "properties", &gobj_s_properties, -1);
830
- rb_define_singleton_method(cGObject, "install_property", gobj_s_install_property, -1);
833
+ rb_define_singleton_method(RG_TARGET_NAMESPACE, "property", &gobj_s_property, 1);
834
+ rb_define_singleton_method(RG_TARGET_NAMESPACE, "properties", &gobj_s_properties, -1);
835
+ RG_DEF_SMETHOD(install_property, -1);
831
836
  q_ruby_getter = g_quark_from_static_string("__ruby_getter");
832
837
  q_ruby_setter = g_quark_from_static_string("__ruby_setter");
833
838
 
834
- rb_define_method(cGObject, "set_property", gobj_set_property, 2);
835
- rb_define_method(cGObject, "get_property", gobj_get_property, 1);
836
- rb_define_method(cGObject, "freeze_notify", gobj_freeze_notify, 0);
837
- rb_undef_method(cGObject, "notify");
838
- rb_define_method(cGObject, "notify", gobj_notify, 1);
839
- rb_define_method(cGObject, "thaw_notify", gobj_thaw_notify, 0);
840
- rb_define_method(cGObject, "destroyed?", gobj_is_destroyed, 0);
839
+ RG_DEF_METHOD(set_property, 2);
840
+ RG_DEF_METHOD(get_property, 1);
841
+ RG_DEF_METHOD(freeze_notify, 0);
842
+ rb_undef_method(RG_TARGET_NAMESPACE, "notify");
843
+ RG_DEF_METHOD(notify, 1);
844
+ RG_DEF_METHOD(thaw_notify, 0);
845
+ RG_DEF_METHOD_P(destroyed, 0);
841
846
 
842
- rb_define_method(cGObject, "initialize", gobj_initialize, -1);
843
- rb_define_method(cGObject, "ref_count", gobj_ref_count, 0); /* for debugging */
844
- rb_define_method(cGObject, "inspect", gobj_inspect, 0);
847
+ RG_DEF_METHOD(initialize, -1);
848
+ rb_define_method(RG_TARGET_NAMESPACE, "ref_count", gobj_ref_count, 0); /* for debugging */
849
+ RG_DEF_METHOD(inspect, 0);
850
+ RG_DEF_METHOD(type_name, 0);
845
851
 
846
852
  eNoPropertyError = rb_define_class_under(mGLib, "NoPropertyError",
847
853
  rb_eNameError);
@@ -851,6 +857,9 @@ Init_gobject_gobject()
851
857
  type_to_prop_setter_table = rb_hash_new();
852
858
  type_to_prop_getter_table = rb_hash_new();
853
859
 
854
- Init_gobject_subclass();
855
- }
860
+ /* subclass */
861
+ RG_DEF_SMETHOD(type_register, -1);
856
862
 
863
+ rb_global_variable(&proc_mod_eval);
864
+ proc_mod_eval = rb_eval_string("lambda{|obj,proc| obj.module_eval(&proc)}");
865
+ }
@@ -1,19 +1,29 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /**********************************************************************
3
-
4
- rbgobj_param.c -
5
-
6
- $Author: ggc $
7
- $Date: 2007/07/13 16:07:28 $
8
- created at: Sun Jun 9 20:31:47 JST 2002
9
-
10
- Copyright (C) 2002,2003 Masahiro Sakai
11
-
12
- **********************************************************************/
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2002,2003 Masahiro Sakai
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
13
21
 
14
22
  #include "rbgprivate.h"
15
23
 
16
- VALUE rbgobj_cParam;
24
+ #define RG_TARGET_NAMESPACE rbgobj_cParam
25
+
26
+ VALUE RG_TARGET_NAMESPACE;
17
27
  static GQuark qparamspec;
18
28
 
19
29
  static VALUE pspec_s_allocate(VALUE klass);
@@ -100,7 +110,7 @@ pspec_s_allocate(VALUE klass)
100
110
  }
101
111
 
102
112
  static VALUE
103
- inspect(VALUE self)
113
+ rg_inspect(VALUE self)
104
114
  {
105
115
  GParamSpec* pspec = rbgobj_get_param_spec(self);
106
116
  VALUE v = rb_inspect(GTYPE2CLASS(pspec->owner_type));
@@ -114,53 +124,53 @@ inspect(VALUE self)
114
124
  }
115
125
 
116
126
  static VALUE
117
- get_name(VALUE self)
127
+ rg_name(VALUE self)
118
128
  {
119
129
  return rb_str_new2(g_param_spec_get_name(rbgobj_get_param_spec(self)));
120
130
  }
121
131
 
122
132
  static VALUE
123
- get_nick(VALUE self)
133
+ rg_nick(VALUE self)
124
134
  {
125
135
  const gchar* str = g_param_spec_get_nick(rbgobj_get_param_spec(self));
126
136
  return str ? rb_str_new2(str) : Qnil;
127
137
  }
128
138
 
129
139
  static VALUE
130
- get_blurb(VALUE self)
140
+ rg_blurb(VALUE self)
131
141
  {
132
142
  const gchar* str = g_param_spec_get_blurb(rbgobj_get_param_spec(self));
133
143
  return str ? rb_str_new2(str) : Qnil;
134
144
  }
135
145
 
136
146
  static VALUE
137
- get_flags(VALUE self)
147
+ rg_flags(VALUE self)
138
148
  {
139
149
  return INT2NUM(rbgobj_get_param_spec(self)->flags);
140
150
  }
141
151
 
142
152
  static VALUE
143
- get_value_type(VALUE self)
153
+ rg_value_type(VALUE self)
144
154
  {
145
155
  return rbgobj_gtype_new(G_PARAM_SPEC_VALUE_TYPE(rbgobj_get_param_spec(self)));
146
156
  }
147
157
 
148
158
  static VALUE
149
- get_owner_type(VALUE self)
159
+ rg_owner_type(VALUE self)
150
160
  {
151
161
  return rbgobj_gtype_new(rbgobj_get_param_spec(self)->owner_type);
152
162
  }
153
163
 
154
164
  static VALUE
155
- get_owner(VALUE self)
165
+ rg_owner(VALUE self)
156
166
  {
157
167
  return GTYPE2CLASS(rbgobj_get_param_spec(self)->owner_type);
158
168
  }
159
169
 
160
170
  static VALUE
161
- value_default(VALUE self)
171
+ rg_value_default(VALUE self)
162
172
  {
163
- GValue tmp = {0,};
173
+ GValue tmp = G_VALUE_INIT;
164
174
  VALUE result;
165
175
 
166
176
  g_value_init(&tmp,
@@ -174,7 +184,7 @@ value_default(VALUE self)
174
184
 
175
185
  #if 0
176
186
  static VALUE
177
- value_defaults(VALUE self, VALUE val)
187
+ rg_value_defaults_p(VALUE self, VALUE val)
178
188
  {
179
189
  GValue tmp = {0,};
180
190
  gboolean result;
@@ -190,7 +200,6 @@ value_defaults(VALUE self, VALUE val)
190
200
  }
191
201
  #endif
192
202
 
193
-
194
203
  struct validate_arg{
195
204
  GParamSpec* pspec;
196
205
  GValue* value;
@@ -217,10 +226,10 @@ value_validate_ensure(struct validate_arg* arg)
217
226
  }
218
227
 
219
228
  static VALUE
220
- value_validate(VALUE self, VALUE obj)
229
+ rg_value_validate(VALUE self, VALUE obj)
221
230
  {
222
231
  struct validate_arg arg;
223
- GValue value = {0,};
232
+ GValue value = G_VALUE_INIT;
224
233
 
225
234
  arg.pspec = rbgobj_get_param_spec(self);
226
235
  arg.value = &value;
@@ -232,16 +241,15 @@ value_validate(VALUE self, VALUE obj)
232
241
  value_validate_ensure, (VALUE)&arg);
233
242
  }
234
243
 
235
-
236
244
  static VALUE
237
- value_convert(int argc, VALUE* argv, VALUE self)
245
+ rg_value_convert(int argc, VALUE* argv, VALUE self)
238
246
  {
239
247
  GParamSpec* pspec = rbgobj_get_param_spec(self);
240
248
  VALUE src, strict_validation;
241
249
  VALUE src_type;
242
250
  VALUE result = Qnil;
243
- GValue src_value = {0,};
244
- GValue dest_value = {0,};
251
+ GValue src_value = G_VALUE_INIT;
252
+ GValue dest_value = G_VALUE_INIT;
245
253
  gboolean b;
246
254
 
247
255
  rb_scan_args(argc, argv, "21", &src, &src_type, &strict_validation);
@@ -269,12 +277,12 @@ value_convert(int argc, VALUE* argv, VALUE self)
269
277
  }
270
278
 
271
279
  static VALUE
272
- values_compare(VALUE self, VALUE a, VALUE b)
280
+ rg_value_compare(VALUE self, VALUE a, VALUE b)
273
281
  {
274
282
  GParamSpec* pspec = rbgobj_get_param_spec(self);
275
283
  GType type = G_PARAM_SPEC_VALUE_TYPE(pspec);
276
- GValue v1 = {0,};
277
- GValue v2 = {0,};
284
+ GValue v1 = G_VALUE_INIT;
285
+ GValue v2 = G_VALUE_INIT;
278
286
  gint result;
279
287
 
280
288
  g_value_init(&v1, type);
@@ -292,14 +300,12 @@ values_compare(VALUE self, VALUE a, VALUE b)
292
300
  return INT2NUM(result);
293
301
  }
294
302
 
295
-
296
303
  static VALUE
297
- get_ref_count(VALUE self)
304
+ rg_ref_count(VALUE self)
298
305
  {
299
306
  return INT2NUM(G_PARAM_SPEC(rbgobj_get_param_spec(self))->ref_count);
300
307
  }
301
308
 
302
-
303
309
  #define param_is_flag(flag) \
304
310
  static VALUE \
305
311
  param_is_##flag(VALUE self) \
@@ -318,66 +324,55 @@ param_is_flag(G_PARAM_READWRITE)
318
324
 
319
325
  /**********************************************************************/
320
326
 
321
- static void
322
- Init_gobject_gparam_spec()
327
+ void
328
+ Init_gobject_gparam(void)
323
329
  {
324
- VALUE cParamSpec;
325
-
326
330
  qparamspec = g_quark_from_static_string("__ruby_gobject_param_spec__");
327
- rbgobj_cParam = G_DEF_CLASS(G_TYPE_PARAM, "Param", mGLib);
328
- cParamSpec = rbgobj_cParam;
331
+ RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_PARAM, "Param", mGLib);
329
332
 
330
333
  /* GParamFlags */
331
- rb_define_const(cParamSpec, "READABLE", INT2FIX(G_PARAM_READABLE));
332
- rb_define_const(cParamSpec, "WRITABLE", INT2FIX(G_PARAM_WRITABLE));
333
- rb_define_const(cParamSpec, "CONSTRUCT", INT2FIX(G_PARAM_CONSTRUCT));
334
- rb_define_const(cParamSpec, "CONSTRUCT_ONLY", INT2FIX(G_PARAM_CONSTRUCT_ONLY));
335
- rb_define_const(cParamSpec, "LAX_VALIDATION", INT2FIX(G_PARAM_LAX_VALIDATION));
336
- rb_define_const(cParamSpec, "PRIVATE", INT2FIX(G_PARAM_PRIVATE));
337
- rb_define_const(cParamSpec, "READWRITE", INT2FIX(G_PARAM_READWRITE));
338
- rb_define_const(cParamSpec, "MASK", INT2FIX(G_PARAM_MASK));
339
- rb_define_const(cParamSpec, "USER_SHIFT", INT2FIX(G_PARAM_USER_SHIFT));
334
+ rb_define_const(RG_TARGET_NAMESPACE, "READABLE", INT2FIX(G_PARAM_READABLE));
335
+ rb_define_const(RG_TARGET_NAMESPACE, "WRITABLE", INT2FIX(G_PARAM_WRITABLE));
336
+ rb_define_const(RG_TARGET_NAMESPACE, "CONSTRUCT", INT2FIX(G_PARAM_CONSTRUCT));
337
+ rb_define_const(RG_TARGET_NAMESPACE, "CONSTRUCT_ONLY", INT2FIX(G_PARAM_CONSTRUCT_ONLY));
338
+ rb_define_const(RG_TARGET_NAMESPACE, "LAX_VALIDATION", INT2FIX(G_PARAM_LAX_VALIDATION));
339
+ rb_define_const(RG_TARGET_NAMESPACE, "PRIVATE", INT2FIX(G_PARAM_PRIVATE));
340
+ rb_define_const(RG_TARGET_NAMESPACE, "READWRITE", INT2FIX(G_PARAM_READWRITE));
341
+ rb_define_const(RG_TARGET_NAMESPACE, "MASK", INT2FIX(G_PARAM_MASK));
342
+ rb_define_const(RG_TARGET_NAMESPACE, "USER_SHIFT", INT2FIX(G_PARAM_USER_SHIFT));
340
343
 
341
- rb_define_alloc_func(cParamSpec, pspec_s_allocate);
344
+ rb_define_alloc_func(RG_TARGET_NAMESPACE, pspec_s_allocate);
342
345
 
343
- rb_define_method(cParamSpec, "inspect", inspect, 0);
346
+ RG_DEF_METHOD(inspect, 0);
344
347
 
345
- rb_define_method(cParamSpec, "name", get_name, 0);
346
- rb_define_method(cParamSpec, "nick", get_nick, 0);
347
- rb_define_method(cParamSpec, "blurb", get_blurb, 0);
348
+ RG_DEF_METHOD(name, 0);
349
+ RG_DEF_METHOD(nick, 0);
350
+ RG_DEF_METHOD(blurb, 0);
348
351
 
349
- rb_define_method(cParamSpec, "flags", get_flags, 0);
350
- rb_define_method(cParamSpec, "value_type", get_value_type, 0);
351
- rb_define_method(cParamSpec, "owner_type", get_owner_type, 0);
352
- rb_define_method(cParamSpec, "owner", get_owner, 0);
352
+ RG_DEF_METHOD(flags, 0);
353
+ RG_DEF_METHOD(value_type, 0);
354
+ RG_DEF_METHOD(owner_type, 0);
355
+ RG_DEF_METHOD(owner, 0);
353
356
 
354
- rb_define_method(cParamSpec, "value_default", value_default, 0);
355
- rb_define_alias(cParamSpec, "default", "value_default");
357
+ RG_DEF_METHOD(value_default, 0);
358
+ RG_DEF_ALIAS("default", "value_default");
356
359
 
357
360
  // FIXME: better name
358
361
  #if 0
359
- rb_define_method(cParamSpec, "value_defaults?", value_defaults, 1);
362
+ RG_DEF_METHOD_P(value_defaults, 1);
360
363
  #endif
361
- rb_define_method(cParamSpec, "value_validate", value_validate, 1);
362
- rb_define_method(cParamSpec, "value_convert", value_convert, -1);
363
- rb_define_method(cParamSpec, "value_compare", values_compare, 2);
364
+ RG_DEF_METHOD(value_validate, 1);
365
+ RG_DEF_METHOD(value_convert, -1);
366
+ RG_DEF_METHOD(value_compare, 2);
364
367
 
365
368
  /* for debugging */
366
- rb_define_method(cParamSpec, "ref_count", get_ref_count, 0);
367
-
368
- rb_define_method(cParamSpec, "readable?", param_is_G_PARAM_READABLE, 0);
369
- rb_define_method(cParamSpec, "writable?", param_is_G_PARAM_WRITABLE, 0);
370
- rb_define_method(cParamSpec, "construct?", param_is_G_PARAM_CONSTRUCT, 0);
371
- rb_define_method(cParamSpec, "construct_only?", param_is_G_PARAM_CONSTRUCT_ONLY, 0);
372
- rb_define_method(cParamSpec, "lax_validation?", param_is_G_PARAM_LAX_VALIDATION, 0);
373
- rb_define_method(cParamSpec, "private?", param_is_G_PARAM_PRIVATE, 0);
374
- rb_define_method(cParamSpec, "readwrite?", param_is_G_PARAM_READWRITE, 0);
375
- }
376
-
377
- /**********************************************************************/
378
-
379
- void
380
- Init_gobject_gparam()
381
- {
382
- Init_gobject_gparam_spec();
369
+ RG_DEF_METHOD(ref_count, 0);
370
+
371
+ rb_define_method(RG_TARGET_NAMESPACE, "readable?", param_is_G_PARAM_READABLE, 0);
372
+ rb_define_method(RG_TARGET_NAMESPACE, "writable?", param_is_G_PARAM_WRITABLE, 0);
373
+ rb_define_method(RG_TARGET_NAMESPACE, "construct?", param_is_G_PARAM_CONSTRUCT, 0);
374
+ rb_define_method(RG_TARGET_NAMESPACE, "construct_only?", param_is_G_PARAM_CONSTRUCT_ONLY, 0);
375
+ rb_define_method(RG_TARGET_NAMESPACE, "lax_validation?", param_is_G_PARAM_LAX_VALIDATION, 0);
376
+ rb_define_method(RG_TARGET_NAMESPACE, "private?", param_is_G_PARAM_PRIVATE, 0);
377
+ rb_define_method(RG_TARGET_NAMESPACE, "readwrite?", param_is_G_PARAM_READWRITE, 0);
383
378
  }