glib2 3.2.5-x86-mingw32 → 3.2.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING.LIB +502 -0
  3. data/README.md +42 -0
  4. data/Rakefile +8 -7
  5. data/ext/glib2/glib2.def +5 -0
  6. data/ext/glib2/rbglib-gc.c +89 -0
  7. data/ext/glib2/rbglib-variant-type.c +17 -0
  8. data/ext/glib2/rbglib.c +3 -0
  9. data/ext/glib2/rbglib.h +6 -1
  10. data/ext/glib2/rbglib2conversions.h +1 -1
  11. data/ext/glib2/rbgobj_boxed.c +49 -30
  12. data/ext/glib2/rbgobj_closure.c +3 -2
  13. data/ext/glib2/rbgobj_convert.c +1 -2
  14. data/ext/glib2/rbgobj_enums.c +32 -14
  15. data/ext/glib2/rbgobj_flags.c +31 -14
  16. data/ext/glib2/rbgobj_param.c +43 -23
  17. data/ext/glib2/rbgobj_signal.c +78 -66
  18. data/ext/glib2/rbgobj_type.c +22 -10
  19. data/ext/glib2/rbgobject.h +2 -0
  20. data/ext/glib2/rbgprivate.h +11 -0
  21. data/glib2.gemspec +48 -0
  22. data/lib/2.2/glib2.so +0 -0
  23. data/lib/2.3/glib2.so +0 -0
  24. data/lib/2.4/glib2.so +0 -0
  25. data/lib/2.5/glib2.so +0 -0
  26. data/lib/gnome2/rake/package-task.rb +17 -5
  27. data/lib/gnome2/rake/package.rb +2 -2
  28. data/lib/gnome2/rake/windows-binary-build-task.rb +39 -6
  29. data/lib/mkmf-gnome2.rb +4 -3
  30. data/sample/bookmarkfile.rb +2 -2
  31. data/sample/type-register.rb +6 -6
  32. data/sample/type-register2.rb +6 -6
  33. data/test/{test_enum.rb → test-enum.rb} +0 -0
  34. data/test/{test_file_utils.rb → test-file-utils.rb} +0 -0
  35. data/test/{test_flags.rb → test-flags.rb} +0 -0
  36. data/test/{test_glib2.rb → test-glib2.rb} +0 -0
  37. data/test/{test_key_file.rb → test-key-file.rb} +0 -0
  38. data/test/{test_mkenums.rb → test-mkenums.rb} +0 -0
  39. data/test/{test_poll_fd.rb → test-poll-fd.rb} +0 -0
  40. data/test/{test_signal.rb → test-signal.rb} +34 -2
  41. data/test/{test_source.rb → test-source.rb} +0 -0
  42. data/test/{test_spawn.rb → test-spawn.rb} +0 -0
  43. data/test/{test_timeout.rb → test-timeout.rb} +0 -0
  44. data/test/{test_unicode.rb → test-unicode.rb} +0 -0
  45. data/test/{test_utils.rb → test-utils.rb} +0 -0
  46. data/test/{test_value.rb → test-value.rb} +0 -0
  47. data/test/test-variant.rb +27 -0
  48. data/test/{test_win32.rb → test-win32.rb} +0 -0
  49. data/vendor/local/bin/asn1Coding.exe +0 -0
  50. data/vendor/local/bin/asn1Decoding.exe +0 -0
  51. data/vendor/local/bin/asn1Parser.exe +0 -0
  52. data/vendor/local/bin/envsubst.exe +0 -0
  53. data/vendor/local/bin/gdbus.exe +0 -0
  54. data/vendor/local/bin/gettext.exe +0 -0
  55. data/vendor/local/bin/gio-querymodules.exe +0 -0
  56. data/vendor/local/bin/gio.exe +0 -0
  57. data/vendor/local/bin/glib-compile-resources.exe +0 -0
  58. data/vendor/local/bin/glib-compile-schemas.exe +0 -0
  59. data/vendor/local/bin/glib-genmarshal +1 -1
  60. data/vendor/local/bin/glib-gettextize +1 -1
  61. data/vendor/local/bin/glib-mkenums +4 -2
  62. data/vendor/local/bin/gobject-query.exe +0 -0
  63. data/vendor/local/bin/gresource.exe +0 -0
  64. data/vendor/local/bin/gsettings.exe +0 -0
  65. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  66. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  67. data/vendor/local/bin/iconv.exe +0 -0
  68. data/vendor/local/bin/idn2.exe +0 -0
  69. data/vendor/local/bin/libasprintf-0.dll +0 -0
  70. data/vendor/local/bin/libcharset-1.dll +0 -0
  71. data/vendor/local/bin/libffi-6.dll +0 -0
  72. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  73. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  74. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  75. data/vendor/local/bin/libgmp-10.dll +0 -0
  76. data/vendor/local/bin/libgnutls-30.dll +0 -0
  77. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  78. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  79. data/vendor/local/bin/libhogweed-4-2.dll +0 -0
  80. data/vendor/local/bin/libiconv-2.dll +0 -0
  81. data/vendor/local/bin/libidn2-0.dll +0 -0
  82. data/vendor/local/bin/libintl-8.dll +0 -0
  83. data/vendor/local/bin/libnettle-6-2.dll +0 -0
  84. data/vendor/local/bin/libp11-kit-0.dll +0 -0
  85. data/vendor/local/bin/libpcre-1.dll +0 -0
  86. data/vendor/local/bin/libpcrecpp-0.dll +0 -0
  87. data/vendor/local/bin/libpcreposix-0.dll +0 -0
  88. data/vendor/local/bin/libtasn1-6.dll +0 -0
  89. data/vendor/local/bin/nettle-hash.exe +0 -0
  90. data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
  91. data/vendor/local/bin/nettle-pbkdf2.exe +0 -0
  92. data/vendor/local/bin/ngettext.exe +0 -0
  93. data/vendor/local/bin/p11-kit.exe +0 -0
  94. data/vendor/local/bin/pcregrep.exe +0 -0
  95. data/vendor/local/bin/pcretest.exe +0 -0
  96. data/vendor/local/bin/pkcs1-conv.exe +0 -0
  97. data/vendor/local/bin/sexp-conv.exe +0 -0
  98. data/vendor/local/bin/trust.exe +0 -0
  99. data/vendor/local/include/idn2.h +5 -3
  100. data/vendor/local/include/p11-kit-1/p11-kit/iter.h +25 -1
  101. data/vendor/local/include/p11-kit-1/p11-kit/p11-kit.h +6 -0
  102. data/vendor/local/include/p11-kit-1/p11-kit/pkcs11.h +133 -4
  103. data/vendor/local/include/p11-kit-1/p11-kit/pkcs11x.h +1 -0
  104. data/vendor/local/include/p11-kit-1/p11-kit/remote.h +15 -0
  105. data/vendor/local/include/p11-kit-1/p11-kit/uri.h +32 -12
  106. data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
  107. data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
  108. data/vendor/local/lib/libasprintf.a +0 -0
  109. data/vendor/local/lib/libasprintf.dll.a +0 -0
  110. data/vendor/local/lib/libasprintf.la +1 -1
  111. data/vendor/local/lib/libcharset.a +0 -0
  112. data/vendor/local/lib/libcharset.dll.a +0 -0
  113. data/vendor/local/lib/libcharset.la +1 -1
  114. data/vendor/local/lib/libffi.dll.a +0 -0
  115. data/vendor/local/lib/libffi.la +1 -1
  116. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  117. data/vendor/local/lib/libgio-2.0.la +2 -2
  118. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  119. data/vendor/local/lib/libglib-2.0.la +2 -2
  120. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  121. data/vendor/local/lib/libgmodule-2.0.la +2 -2
  122. data/vendor/local/lib/libgmp.dll.a +0 -0
  123. data/vendor/local/lib/libgnutls.dll.a +0 -0
  124. data/vendor/local/lib/libgnutls.la +1 -1
  125. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  126. data/vendor/local/lib/libgobject-2.0.la +2 -2
  127. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  128. data/vendor/local/lib/libgthread-2.0.la +2 -2
  129. data/vendor/local/lib/libhogweed.dll.a +0 -0
  130. data/vendor/local/lib/libiconv.dll.a +0 -0
  131. data/vendor/local/lib/libiconv.la +1 -1
  132. data/vendor/local/lib/libidn2.a +0 -0
  133. data/vendor/local/lib/libidn2.dll.a +0 -0
  134. data/vendor/local/lib/libidn2.la +2 -2
  135. data/vendor/local/lib/libintl.a +0 -0
  136. data/vendor/local/lib/libintl.dll.a +0 -0
  137. data/vendor/local/lib/libintl.la +1 -1
  138. data/vendor/local/lib/libnettle.dll.a +0 -0
  139. data/vendor/local/lib/libp11-kit.dll.a +0 -0
  140. data/vendor/local/lib/libp11-kit.la +3 -3
  141. data/vendor/local/lib/libpcre.a +0 -0
  142. data/vendor/local/lib/libpcre.dll.a +0 -0
  143. data/vendor/local/lib/libpcre.la +1 -1
  144. data/vendor/local/lib/libpcrecpp.dll.a +0 -0
  145. data/vendor/local/lib/libpcrecpp.la +1 -1
  146. data/vendor/local/lib/libpcreposix.a +0 -0
  147. data/vendor/local/lib/libpcreposix.dll.a +0 -0
  148. data/vendor/local/lib/libpcreposix.la +1 -1
  149. data/vendor/local/lib/libtasn1.dll.a +0 -0
  150. data/vendor/local/lib/pkcs11/p11-kit-trust.dll +0 -0
  151. data/vendor/local/lib/pkcs11/p11-kit-trust.dll.a +0 -0
  152. data/vendor/local/lib/pkcs11/p11-kit-trust.la +3 -3
  153. data/vendor/local/lib/pkgconfig/gio-2.0.pc +1 -1
  154. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
  155. data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
  156. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
  157. data/vendor/local/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
  158. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  159. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
  160. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
  161. data/vendor/local/lib/pkgconfig/libidn2.pc +1 -1
  162. data/vendor/local/lib/pkgconfig/p11-kit-1.pc +1 -1
  163. data/vendor/local/libexec/p11-kit/p11-kit-remote.exe +0 -0
  164. data/vendor/local/libexec/p11-kit/p11-kit-server.exe +0 -0
  165. data/vendor/local/share/gdb/auto-load/home/vagrant/ruby-gnome2/glib2/vendor/local/lib/{libglib-2.0.so.0.5600.0-gdb.py → libglib-2.0.so.0.5600.1-gdb.py} +0 -0
  166. data/vendor/local/share/gdb/auto-load/home/vagrant/ruby-gnome2/glib2/vendor/local/lib/{libgobject-2.0.so.0.5600.0-gdb.py → libgobject-2.0.so.0.5600.1-gdb.py} +0 -0
  167. data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
  168. data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
  169. data/vendor/local/share/glib-2.0/codegen/codegen.pyc +0 -0
  170. data/vendor/local/share/glib-2.0/codegen/codegen.pyo +0 -0
  171. data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyc +0 -0
  172. data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyo +0 -0
  173. data/vendor/local/share/glib-2.0/codegen/codegen_main.pyc +0 -0
  174. data/vendor/local/share/glib-2.0/codegen/codegen_main.pyo +0 -0
  175. data/vendor/local/share/glib-2.0/codegen/config.py +1 -1
  176. data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
  177. data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
  178. data/vendor/local/share/glib-2.0/codegen/dbustypes.pyc +0 -0
  179. data/vendor/local/share/glib-2.0/codegen/dbustypes.pyo +0 -0
  180. data/vendor/local/share/glib-2.0/codegen/parser.pyc +0 -0
  181. data/vendor/local/share/glib-2.0/codegen/parser.pyo +0 -0
  182. data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
  183. data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
  184. data/vendor/local/share/glib-2.0/gdb/gobject_gdb.py +1 -1
  185. data/vendor/local/share/gtk-doc/html/gio/GApplication.html +35 -13
  186. data/vendor/local/share/gtk-doc/html/gio/gio.html +0 -4
  187. data/vendor/local/share/gtk-doc/html/gio/index.html +1 -1
  188. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +2 -2
  189. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +2 -2
  190. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +1 -1
  191. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +1 -1
  192. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +2 -2
  193. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +3 -3
  194. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +3 -3
  195. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +1 -1
  196. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +4 -4
  197. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +2 -2
  198. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +3 -3
  199. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +4 -4
  200. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +4 -4
  201. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +4 -4
  202. data/vendor/local/share/gtk-doc/html/glib/glib-UNIX-specific-utilities-and-integration.html +1 -1
  203. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +1 -1
  204. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +1 -1
  205. data/vendor/local/share/gtk-doc/html/glib/index.html +1 -1
  206. data/vendor/local/share/gtk-doc/html/gobject/index.html +1 -1
  207. data/vendor/local/share/gtk-doc/html/libidn2/api-index-full.html +4 -10
  208. data/vendor/local/share/gtk-doc/html/libidn2/home.png +0 -0
  209. data/vendor/local/share/gtk-doc/html/libidn2/index.html +3 -3
  210. data/vendor/local/share/gtk-doc/html/libidn2/left-insensitive.png +0 -0
  211. data/vendor/local/share/gtk-doc/html/libidn2/left.png +0 -0
  212. data/vendor/local/share/gtk-doc/html/libidn2/libidn2-idn2.html +67 -75
  213. data/vendor/local/share/gtk-doc/html/libidn2/libidn2.devhelp2 +1 -0
  214. data/vendor/local/share/gtk-doc/html/libidn2/libidn2.html +2 -2
  215. data/vendor/local/share/gtk-doc/html/libidn2/right-insensitive.png +0 -0
  216. data/vendor/local/share/gtk-doc/html/libidn2/right.png +0 -0
  217. data/vendor/local/share/gtk-doc/html/libidn2/style.css +4 -0
  218. data/vendor/local/share/gtk-doc/html/libidn2/up-insensitive.png +0 -0
  219. data/vendor/local/share/gtk-doc/html/libidn2/up.png +0 -0
  220. data/vendor/local/share/gtk-doc/html/p11-kit/config-example.html +3 -3
  221. data/vendor/local/share/gtk-doc/html/p11-kit/config-files.html +3 -3
  222. data/vendor/local/share/gtk-doc/html/p11-kit/config.html +3 -3
  223. data/vendor/local/share/gtk-doc/html/p11-kit/devel-building-style.html +3 -3
  224. data/vendor/local/share/gtk-doc/html/p11-kit/devel-building.html +4 -4
  225. data/vendor/local/share/gtk-doc/html/p11-kit/devel-commands.html +3 -3
  226. data/vendor/local/share/gtk-doc/html/p11-kit/devel-debugging.html +3 -3
  227. data/vendor/local/share/gtk-doc/html/p11-kit/devel-paths.html +3 -3
  228. data/vendor/local/share/gtk-doc/html/p11-kit/devel-testing.html +4 -4
  229. data/vendor/local/share/gtk-doc/html/p11-kit/devel.html +5 -5
  230. data/vendor/local/share/gtk-doc/html/p11-kit/index.html +5 -4
  231. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Deprecated.html +3 -3
  232. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Future.html +292 -19
  233. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Modules.html +22 -16
  234. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-PIN-Callbacks.html +19 -19
  235. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-URIs.html +262 -21
  236. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Utilities.html +5 -5
  237. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit.devhelp2 +21 -1
  238. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit.html +18 -5
  239. data/vendor/local/share/gtk-doc/html/p11-kit/pkcs11-conf.html +6 -4
  240. data/vendor/local/share/gtk-doc/html/p11-kit/reference.html +43 -3
  241. data/vendor/local/share/gtk-doc/html/p11-kit/remoting.html +230 -0
  242. data/vendor/local/share/gtk-doc/html/p11-kit/sharing-managed.html +3 -3
  243. data/vendor/local/share/gtk-doc/html/p11-kit/sharing.html +5 -5
  244. data/vendor/local/share/gtk-doc/html/p11-kit/tools.html +3 -3
  245. data/vendor/local/share/gtk-doc/html/p11-kit/trust-disable.html +3 -3
  246. data/vendor/local/share/gtk-doc/html/p11-kit/trust-glib-networking.html +3 -3
  247. data/vendor/local/share/gtk-doc/html/p11-kit/trust-module.html +5 -5
  248. data/vendor/local/share/gtk-doc/html/p11-kit/trust-nss.html +3 -3
  249. data/vendor/local/share/gtk-doc/html/p11-kit/trust.html +42 -7
  250. data/vendor/local/share/info/libidn2.info +94 -54
  251. data/vendor/local/share/locale/cs/LC_MESSAGES/libidn2.mo +0 -0
  252. data/vendor/local/share/locale/da/LC_MESSAGES/libidn2.mo +0 -0
  253. data/vendor/local/share/locale/de/LC_MESSAGES/libidn2.mo +0 -0
  254. data/vendor/local/share/locale/eo/LC_MESSAGES/libidn2.mo +0 -0
  255. data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
  256. data/vendor/local/share/locale/es/LC_MESSAGES/libidn2.mo +0 -0
  257. data/vendor/local/share/locale/fi/LC_MESSAGES/libidn2.mo +0 -0
  258. data/vendor/local/share/locale/fr/LC_MESSAGES/libidn2.mo +0 -0
  259. data/vendor/local/share/locale/fur/LC_MESSAGES/libidn2.mo +0 -0
  260. data/vendor/local/share/locale/hr/LC_MESSAGES/libidn2.mo +0 -0
  261. data/vendor/local/share/locale/hu/LC_MESSAGES/libidn2.mo +0 -0
  262. data/vendor/local/share/locale/id/LC_MESSAGES/libidn2.mo +0 -0
  263. data/vendor/local/share/locale/it/LC_MESSAGES/libidn2.mo +0 -0
  264. data/vendor/local/share/locale/ja/LC_MESSAGES/libidn2.mo +0 -0
  265. data/vendor/local/share/locale/nl/LC_MESSAGES/libidn2.mo +0 -0
  266. data/vendor/local/share/locale/pl/LC_MESSAGES/libidn2.mo +0 -0
  267. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  268. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/libidn2.mo +0 -0
  269. data/vendor/local/share/locale/ro/LC_MESSAGES/glib-networking.mo +0 -0
  270. data/vendor/local/share/locale/ro/LC_MESSAGES/libidn2.mo +0 -0
  271. data/vendor/local/share/locale/ru/LC_MESSAGES/glib-networking.mo +0 -0
  272. data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
  273. data/vendor/local/share/locale/sl/LC_MESSAGES/glib-networking.mo +0 -0
  274. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  275. data/vendor/local/share/locale/sr/LC_MESSAGES/libidn2.mo +0 -0
  276. data/vendor/local/share/locale/sv/LC_MESSAGES/glib-networking.mo +0 -0
  277. data/vendor/local/share/locale/sv/LC_MESSAGES/libidn2.mo +0 -0
  278. data/vendor/local/share/locale/uk/LC_MESSAGES/libidn2.mo +0 -0
  279. data/vendor/local/share/locale/vi/LC_MESSAGES/libidn2.mo +0 -0
  280. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib-networking.mo +0 -0
  281. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/libidn2.mo +0 -0
  282. data/vendor/local/share/man/man1/gapplication.1 +1 -1
  283. data/vendor/local/share/man/man1/gdbus-codegen.1 +1 -1
  284. data/vendor/local/share/man/man1/gdbus.1 +1 -1
  285. data/vendor/local/share/man/man1/gio-querymodules.1 +1 -1
  286. data/vendor/local/share/man/man1/gio.1 +1 -6
  287. data/vendor/local/share/man/man1/glib-compile-resources.1 +1 -1
  288. data/vendor/local/share/man/man1/glib-compile-schemas.1 +1 -1
  289. data/vendor/local/share/man/man1/glib-genmarshal.1 +1 -1
  290. data/vendor/local/share/man/man1/glib-gettextize.1 +1 -1
  291. data/vendor/local/share/man/man1/glib-mkenums.1 +1 -1
  292. data/vendor/local/share/man/man1/gobject-query.1 +1 -1
  293. data/vendor/local/share/man/man1/gresource.1 +1 -1
  294. data/vendor/local/share/man/man1/gsettings.1 +1 -1
  295. data/vendor/local/share/man/man1/gtester-report.1 +1 -1
  296. data/vendor/local/share/man/man1/gtester.1 +1 -1
  297. data/vendor/local/share/man/man3/idn2_check_version.3 +1 -1
  298. data/vendor/local/share/man/man3/idn2_free.3 +1 -1
  299. data/vendor/local/share/man/man3/idn2_lookup_u8.3 +1 -1
  300. data/vendor/local/share/man/man3/idn2_lookup_ul.3 +1 -1
  301. data/vendor/local/share/man/man3/idn2_register_u8.3 +1 -1
  302. data/vendor/local/share/man/man3/idn2_register_ul.3 +3 -2
  303. data/vendor/local/share/man/man3/idn2_strerror.3 +1 -1
  304. data/vendor/local/share/man/man3/idn2_strerror_name.3 +1 -1
  305. data/vendor/local/share/man/man3/idn2_to_ascii_4i.3 +6 -3
  306. data/vendor/local/share/man/man3/idn2_to_ascii_4z.3 +6 -3
  307. data/vendor/local/share/man/man3/idn2_to_ascii_8z.3 +6 -3
  308. data/vendor/local/share/man/man3/idn2_to_ascii_lz.3 +6 -3
  309. data/vendor/local/share/man/man3/idn2_to_unicode_44i.3 +1 -1
  310. data/vendor/local/share/man/man3/idn2_to_unicode_4z4z.3 +1 -1
  311. data/vendor/local/share/man/man3/idn2_to_unicode_8z4z.3 +1 -1
  312. data/vendor/local/share/man/man3/idn2_to_unicode_8z8z.3 +1 -1
  313. data/vendor/local/share/man/man3/idn2_to_unicode_8zlz.3 +1 -1
  314. data/vendor/local/share/man/man3/idn2_to_unicode_lzlz.3 +1 -1
  315. data/vendor/local/share/p11-kit/modules/p11-kit-trust.module +3 -0
  316. data/version.rb +30 -0
  317. metadata +52 -71
  318. data/vendor/local/share/installed-tests/glib-networking/certificate.test +0 -3
  319. data/vendor/local/share/installed-tests/glib-networking/connection.test +0 -3
  320. data/vendor/local/share/installed-tests/glib-networking/dtls-connection.test +0 -3
  321. data/vendor/local/share/installed-tests/glib-networking/file-database.test +0 -3
  322. data/vendor/local/share/installed-tests/glib-networking/pkcs11-array.test +0 -3
  323. data/vendor/local/share/installed-tests/glib-networking/pkcs11-pin.test +0 -3
  324. data/vendor/local/share/installed-tests/glib-networking/pkcs11-slot.test +0 -3
  325. data/vendor/local/share/installed-tests/glib-networking/pkcs11-util.test +0 -3
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011-2014 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2018 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2006 Sjoerd Simons, Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -19,7 +19,6 @@
19
19
  * MA 02110-1301 USA
20
20
  */
21
21
 
22
- #include "rbgobject.h"
23
22
  #include "rbgprivate.h"
24
23
 
25
24
  static GHashTable *tables, *class_to_g_type_map;
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011-2017 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2018 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2004-2006 Ruby-GNOME2 Project Team
5
5
  * Copyright (C) 2002,2003 Masahiro Sakai
6
6
  *
@@ -107,18 +107,31 @@ typedef struct {
107
107
  } enum_holder;
108
108
 
109
109
  static void
110
- enum_free(enum_holder* p)
110
+ enum_free(void *data)
111
111
  {
112
- g_type_class_unref(p->gclass);
113
- free(p);
112
+ enum_holder *holder = data;
113
+ g_type_class_unref(holder->gclass);
114
+ xfree(holder);
114
115
  }
115
116
 
116
- static enum_holder*
117
- enum_get_holder(VALUE obj)
117
+ static const rb_data_type_t rg_glib_enum_type = {
118
+ "GLib::Enum",
119
+ {
120
+ NULL,
121
+ enum_free,
122
+ NULL,
123
+ },
124
+ NULL,
125
+ NULL,
126
+ RUBY_TYPED_FREE_IMMEDIATELY,
127
+ };
128
+
129
+ static enum_holder *
130
+ enum_get_holder(VALUE rb_enum)
118
131
  {
119
- enum_holder* p;
120
- Data_Get_Struct(obj, enum_holder, p);
121
- return p;
132
+ enum_holder *holder;
133
+ TypedData_Get_Struct(rb_enum, enum_holder, &rg_glib_enum_type, holder);
134
+ return holder;
122
135
  }
123
136
 
124
137
  static VALUE
@@ -262,11 +275,16 @@ rbgobj_enum_alloc_func(VALUE self)
262
275
  if (G_TYPE_IS_ABSTRACT(gtype)) {
263
276
  rb_raise(rb_eTypeError, "abstract class");
264
277
  } else {
265
- enum_holder* p;
266
- VALUE result = Data_Make_Struct(self, enum_holder, NULL, enum_free, p);
267
- p->gclass = g_type_class_ref(gtype);
268
- p->info = NULL;
269
- return result;
278
+ enum_holder *holder;
279
+ VALUE rb_enum;
280
+
281
+ rb_enum = TypedData_Make_Struct(self,
282
+ enum_holder,
283
+ &rg_glib_enum_type,
284
+ holder);
285
+ holder->gclass = g_type_class_ref(gtype);
286
+ holder->info = NULL;
287
+ return rb_enum;
270
288
  }
271
289
  }
272
290
 
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2004-2017 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2004-2018 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002,2003 Masahiro Sakai
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -68,18 +68,31 @@ typedef struct {
68
68
  } flags_holder;
69
69
 
70
70
  static void
71
- flags_free(flags_holder* p)
71
+ flags_free(void *data)
72
72
  {
73
- g_type_class_unref(p->gclass);
74
- free(p);
73
+ flags_holder *holder = data;
74
+ g_type_class_unref(holder->gclass);
75
+ xfree(holder);
75
76
  }
76
77
 
78
+ static const rb_data_type_t rg_glib_flags_type = {
79
+ "GLib::Flags",
80
+ {
81
+ NULL,
82
+ flags_free,
83
+ NULL,
84
+ },
85
+ NULL,
86
+ NULL,
87
+ RUBY_TYPED_FREE_IMMEDIATELY,
88
+ };
89
+
77
90
  static flags_holder*
78
- flags_get_holder(VALUE obj)
91
+ flags_get_holder(VALUE rb_flags)
79
92
  {
80
- flags_holder* p;
81
- Data_Get_Struct(obj, flags_holder, p);
82
- return p;
93
+ flags_holder *holder;
94
+ TypedData_Get_Struct(rb_flags, flags_holder, &rg_glib_flags_type, holder);
95
+ return holder;
83
96
  }
84
97
 
85
98
  static VALUE
@@ -209,12 +222,16 @@ rbgobj_flags_alloc_func(VALUE self)
209
222
  if (G_TYPE_IS_ABSTRACT(gtype)) {
210
223
  rb_raise(rb_eTypeError, "abstract class");
211
224
  } else {
212
- flags_holder* p;
213
- VALUE result = Data_Make_Struct(self, flags_holder, NULL, flags_free, p);
214
- p->gclass = g_type_class_ref(gtype);
215
- p->value = 0;
216
- p->info = NULL;
217
- return result;
225
+ flags_holder *holder;
226
+ VALUE rb_flags;
227
+ rb_flags = TypedData_Make_Struct(self,
228
+ flags_holder,
229
+ &rg_glib_flags_type,
230
+ holder);
231
+ holder->gclass = g_type_class_ref(gtype);
232
+ holder->value = 0;
233
+ holder->info = NULL;
234
+ return rb_flags;
218
235
  }
219
236
  }
220
237
 
@@ -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-2018 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002,2003 Masahiro Sakai
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -34,36 +34,57 @@ typedef struct {
34
34
  } pspec_holder;
35
35
 
36
36
  static void
37
- pspec_mark(pspec_holder *holder)
37
+ pspec_mark(void *data)
38
38
  {
39
+ pspec_holder *holder = data;
39
40
  if (holder->instance)
40
41
  rbgobj_instance_call_cinfo_mark(holder->instance);
41
42
  }
42
43
 
43
44
  static void
44
- pspec_free(pspec_holder *holder)
45
+ pspec_free(void *data)
45
46
  {
47
+ pspec_holder *holder = data;
46
48
  if (holder->instance){
47
49
  rbgobj_instance_call_cinfo_free(holder->instance);
48
50
  g_param_spec_set_qdata(holder->instance, qparamspec, NULL);
49
51
  g_param_spec_unref(holder->instance);
50
52
  }
51
- free(holder);
53
+ xfree(holder);
54
+ }
55
+
56
+ static const rb_data_type_t rg_glib_param_type = {
57
+ "GLib::Param",
58
+ {
59
+ pspec_mark,
60
+ pspec_free,
61
+ NULL,
62
+ },
63
+ NULL,
64
+ NULL,
65
+ RUBY_TYPED_FREE_IMMEDIATELY,
66
+ };
67
+
68
+ static pspec_holder *
69
+ rbgobj_param_get_raw(VALUE rb_param)
70
+ {
71
+ pspec_holder *holder;
72
+ TypedData_Get_Struct(rb_param, pspec_holder, &rg_glib_param_type, holder);
73
+ return holder;
52
74
  }
53
75
 
54
76
  GParamSpec*
55
77
  rbgobj_get_param_spec(VALUE obj)
56
78
  {
57
- pspec_holder* holder;
58
- Data_Get_Struct(obj, pspec_holder, holder);
59
- return G_PARAM_SPEC(holder->instance);
79
+ return G_PARAM_SPEC(rbgobj_param_get_raw(obj)->instance);
60
80
  }
61
81
 
62
82
  void
63
83
  rbgobj_param_spec_initialize(VALUE self, GParamSpec *pspec)
64
84
  {
65
- pspec_holder* holder;
66
- Data_Get_Struct(self, pspec_holder, holder);
85
+ pspec_holder *holder;
86
+
87
+ holder = rbgobj_param_get_raw(self);
67
88
 
68
89
  pspec = g_param_spec_ref(pspec);
69
90
  g_param_spec_sink(pspec);
@@ -97,30 +118,29 @@ pspec_s_allocate(VALUE klass)
97
118
  rb_raise(rb_eTypeError, "abstract class");
98
119
 
99
120
  {
100
- pspec_holder* holder;
101
- VALUE result;
121
+ pspec_holder *holder;
122
+ VALUE rb_param;
102
123
 
103
- result = Data_Make_Struct(klass, pspec_holder, pspec_mark, pspec_free,
104
- holder);
124
+ rb_param = TypedData_Make_Struct(klass,
125
+ pspec_holder,
126
+ &rg_glib_param_type,
127
+ holder);
105
128
  holder->instance = NULL;
106
129
  holder->cinfo = NULL;
107
130
 
108
- return result;
131
+ return rb_param;
109
132
  }
110
133
  }
111
134
 
112
135
  static VALUE
113
136
  rg_inspect(VALUE self)
114
137
  {
115
- GParamSpec* pspec = rbgobj_get_param_spec(self);
116
- VALUE v = rb_inspect(GTYPE2CLASS(pspec->owner_type));
117
- gchar* str = g_strdup_printf("#<%s: %s#%s>",
118
- rb_class2name(CLASS_OF(self)),
119
- StringValuePtr(v),
120
- g_param_spec_get_name(pspec));
121
- VALUE result = rb_str_new2(str);
122
- g_free(str);
123
- return result;
138
+ GParamSpec *pspec = rbgobj_get_param_spec(self);
139
+
140
+ return rb_sprintf("#<%" PRIsVALUE "%" PRIsVALUE "#%s",
141
+ CLASS_OF(self),
142
+ GTYPE2CLASS(pspec->owner_type),
143
+ g_param_spec_get_name(pspec));
124
144
  }
125
145
 
126
146
  static VALUE
@@ -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-2018 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
5
5
  * Copyright (C) 2002,2003 Masahiro Sakai
6
6
  *
@@ -31,6 +31,40 @@ VALUE rbgobj_signal_wrap(guint sig_id);
31
31
 
32
32
  /**********************************************************************/
33
33
 
34
+ static const rb_data_type_t rg_glib_signal_type = {
35
+ "GLib::Signal",
36
+ {
37
+ NULL,
38
+ NULL,
39
+ NULL,
40
+ },
41
+ NULL,
42
+ NULL,
43
+ RUBY_TYPED_FREE_IMMEDIATELY,
44
+ };
45
+
46
+ VALUE
47
+ rbgobj_signal_new(guint id)
48
+ {
49
+ VALUE rb_query;
50
+ GSignalQuery *query;
51
+
52
+ rb_query = TypedData_Make_Struct(RG_TARGET_NAMESPACE,
53
+ GSignalQuery,
54
+ &rg_glib_signal_type,
55
+ query);
56
+ g_signal_query(id, query);
57
+ return rb_query;
58
+ }
59
+
60
+ static GSignalQuery *
61
+ rbgobj_signal_get_raw(VALUE rb_signal)
62
+ {
63
+ GSignalQuery *query;
64
+ TypedData_Get_Struct(rb_signal, GSignalQuery, &rg_glib_signal_type, query);
65
+ return query;
66
+ }
67
+
34
68
  static VALUE signal_func_table;
35
69
 
36
70
  void
@@ -164,7 +198,7 @@ rbg_rval2gtypes_accept_nil(volatile VALUE *value, long *n)
164
198
  #define RVAL2GTYPES_ACCEPT_NIL(value, n) rbg_rval2gtypes_accept_nil(&(value), &(n))
165
199
 
166
200
  static VALUE
167
- gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
201
+ gobj_s_define_signal(int argc, VALUE* argv, VALUE self)
168
202
  {
169
203
  const RGObjClassInfo *cinfo = rbgobj_lookup_class(self);
170
204
  VALUE rbsignal_name, rbsignal_flags, accumulator, rbreturn_type, params;
@@ -175,6 +209,7 @@ gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
175
209
  GType *param_types;
176
210
  long n_params;
177
211
  guint signal;
212
+ VALUE rb_signal;
178
213
 
179
214
  rb_scan_args(argc, argv, "4*",
180
215
  &rbsignal_name, &rbsignal_flags, &accumulator, &rbreturn_type, &params);
@@ -187,20 +222,23 @@ gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
187
222
  rbsignal_name = rb_str_new2(rb_id2name(SYM2ID(rbsignal_name)));
188
223
  signal_name = RVAL2CSTR(rbsignal_name);
189
224
 
190
- signal_flags = NUM2INT(rbsignal_flags);
225
+ signal_flags = RVAL2GFLAGS(rbsignal_flags, G_TYPE_SIGNAL_FLAGS);
191
226
 
192
227
  {
228
+ VALUE rb_method_name;
193
229
  VALUE proc;
194
230
  ID method_id;
195
231
 
196
- method_id = rb_to_id(rb_str_concat(rb_str_new2(default_handler_method_prefix), rbsignal_name));
232
+ rb_method_name =
233
+ rb_str_concat(rb_str_new_cstr(default_handler_method_prefix),
234
+ rbsignal_name);
235
+ method_id = rb_to_id(rb_method_name);
197
236
 
198
237
  proc = rb_funcall(mMetaInterface, rb_intern("signal_callback"), 2,
199
238
  self, ID2SYM(method_id));
200
239
 
201
240
  class_closure = g_rclosure_new(proc, Qnil, NULL);
202
- /* TODO: Should this be done even if something below it fails? */
203
- g_rclosure_attach(class_closure, self);
241
+ g_rclosure_set_tag(class_closure, RVAL2CSTR(rb_method_name));
204
242
  }
205
243
 
206
244
  return_type = rbgobj_gtype_get(rbreturn_type);
@@ -222,10 +260,13 @@ gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
222
260
  if (!signal)
223
261
  rb_raise(rb_eRuntimeError, "g_signal_newv failed");
224
262
 
263
+ rb_signal = rbgobj_signal_new(signal);
225
264
  if (!NIL_P(accumulator))
226
- G_RELATIVE(self, accumulator); /* FIXME */
265
+ rbgobj_add_relative(rb_signal, accumulator);
266
+ g_rclosure_attach(class_closure, rb_signal);
267
+ rbgobj_add_relative(self, rb_signal);
227
268
 
228
- return rbgobj_signal_wrap(signal);
269
+ return rb_signal;
229
270
  }
230
271
 
231
272
  static void
@@ -280,7 +321,7 @@ gobj_s_signal(VALUE self, VALUE name)
280
321
  if (!sig_id)
281
322
  rb_raise(eNoSignalError, "no such signal: %s", sig_name);
282
323
 
283
- return rbgobj_signal_wrap(sig_id);
324
+ return rbgobj_signal_new(sig_id);
284
325
  }
285
326
 
286
327
  static VALUE
@@ -338,7 +379,7 @@ gobj_sig_connect_impl(gboolean after, int argc, VALUE *argv, VALUE self)
338
379
  CONST_ID(id_create_signal_handler, "create_signal_handler");
339
380
  normalized_signal_name = g_signal_name(signal_id);
340
381
  func = rb_funcall(self,
341
- rb_intern("create_signal_handler"),
382
+ id_create_signal_handler,
342
383
  2,
343
384
  rb_str_new_cstr(normalized_signal_name),
344
385
  rb_block_proc());
@@ -388,7 +429,7 @@ gobj_sig_get_invocation_hint(VALUE self)
388
429
  GSignalInvocationHint* hint;
389
430
  hint = g_signal_get_invocation_hint(RVAL2GOBJ(self));
390
431
  return rb_ary_new3(3,
391
- rbgobj_signal_wrap(hint->signal_id),
432
+ rbgobj_signal_new(hint->signal_id),
392
433
  hint->detail ? rb_str_new2(g_quark_to_string(hint->detail)) : Qnil,
393
434
  INT2NUM(hint->run_type));
394
435
  }
@@ -689,71 +730,54 @@ gobj_s_method_added(VALUE klass, VALUE id)
689
730
  VALUE
690
731
  rbgobj_signal_wrap(guint sig_id)
691
732
  {
692
- VALUE result;
693
- GSignalQuery* query;
694
-
695
- result = Data_Make_Struct(RG_TARGET_NAMESPACE, GSignalQuery, NULL, free, query);
696
- g_signal_query(sig_id, query);
697
- return result;
733
+ return rbgobj_signal_new(sig_id);
698
734
  }
699
735
 
700
736
  static VALUE
701
737
  rg_id(VALUE self)
702
738
  {
703
- GSignalQuery* query;
704
- Data_Get_Struct(self, GSignalQuery, query);
705
- return UINT2NUM(query->signal_id);
739
+ return UINT2NUM(rbgobj_signal_get_raw(self)->signal_id);
706
740
  }
707
741
 
708
742
  static VALUE
709
743
  rg_name(VALUE self)
710
744
  {
711
- GSignalQuery* query;
712
- Data_Get_Struct(self, GSignalQuery, query);
713
- return rb_str_new2(query->signal_name);
745
+ return CSTR2RVAL(rbgobj_signal_get_raw(self)->signal_name);
714
746
  }
715
747
 
716
748
  static VALUE
717
749
  rg_itype(VALUE self)
718
750
  {
719
- GSignalQuery* query;
720
- Data_Get_Struct(self, GSignalQuery, query);
721
- return rbgobj_gtype_new(query->itype);
751
+ return rbgobj_gtype_new(rbgobj_signal_get_raw(self)->itype);
722
752
  }
723
753
 
724
754
  static VALUE
725
755
  rg_owner(VALUE self)
726
756
  {
727
- GSignalQuery* query;
728
- Data_Get_Struct(self, GSignalQuery, query);
729
- return GTYPE2CLASS(query->itype);
757
+ return GTYPE2CLASS(rbgobj_signal_get_raw(self)->itype);
730
758
  }
731
759
 
732
760
  static VALUE
733
761
  rg_return_type(VALUE self)
734
762
  {
735
- GSignalQuery* query;
736
- Data_Get_Struct(self, GSignalQuery, query);
737
- return rbgobj_gtype_new(query->return_type);
763
+ return rbgobj_gtype_new(rbgobj_signal_get_raw(self)->return_type);
738
764
  }
739
765
 
740
766
  static VALUE
741
767
  rg_flags(VALUE self)
742
768
  {
743
- GSignalQuery* query;
744
- Data_Get_Struct(self, GSignalQuery, query);
745
- return UINT2NUM(query->signal_flags);
769
+ return UINT2NUM(rbgobj_signal_get_raw(self)->signal_flags);
746
770
  }
747
771
 
748
772
  static VALUE
749
773
  rg_param_types(VALUE self)
750
774
  {
751
- GSignalQuery* query;
775
+ GSignalQuery *query;
752
776
  VALUE result;
753
777
  guint i;
754
- Data_Get_Struct(self, GSignalQuery, query);
755
778
 
756
- result = rb_ary_new2(query->n_params);
779
+ query = rbgobj_signal_get_raw(self);
780
+ result = rb_ary_new_capa(query->n_params);
757
781
  for (i = 0; i < query->n_params; i++)
758
782
  rb_ary_store(result, i, rbgobj_gtype_new(query->param_types[i]));
759
783
 
@@ -763,31 +787,19 @@ rg_param_types(VALUE self)
763
787
  static VALUE
764
788
  rg_inspect(VALUE self)
765
789
  {
766
- GSignalQuery* query;
767
- gchar* s;
768
- VALUE result, v;
769
-
770
- Data_Get_Struct(self, GSignalQuery, query);
771
-
772
- v = rb_inspect(GTYPE2CLASS(query->itype));
773
-
774
- s = g_strdup_printf("#<%s: %s#%s>",
775
- rb_class2name(CLASS_OF(self)),
776
- StringValuePtr(v),
777
- query->signal_name);
778
- result = rb_str_new2(s);
779
- g_free(s);
780
-
781
- return result;
790
+ GSignalQuery *query;
791
+ query = rbgobj_signal_get_raw(self);
792
+ return rb_sprintf("#<%" PRIsVALUE " %+" PRIsVALUE "#%s>",
793
+ CLASS_OF(self),
794
+ GTYPE2CLASS(query->itype),
795
+ query->signal_name);
782
796
  }
783
797
 
784
798
  #define query_is_flag(flag) \
785
799
  static VALUE \
786
800
  query_is_##flag(VALUE self) \
787
801
  { \
788
- GSignalQuery* query; \
789
- Data_Get_Struct(self, GSignalQuery, query); \
790
- return CBOOL2RVAL(query->signal_flags & flag); \
802
+ return CBOOL2RVAL(rbgobj_signal_get_raw(self)->signal_flags & flag); \
791
803
  }
792
804
 
793
805
  query_is_flag(G_SIGNAL_RUN_FIRST)
@@ -804,8 +816,8 @@ hook_func(GSignalInvocationHint* ihint,
804
816
  const GValue* param_values,
805
817
  gpointer data)
806
818
  {
807
- GClosure* closure = data;
808
- GValue ret_val =G_VALUE_INIT;
819
+ GClosure *closure = data;
820
+ GValue ret_val = G_VALUE_INIT;
809
821
  gboolean ret;
810
822
 
811
823
  g_value_init(&ret_val, G_TYPE_BOOLEAN);
@@ -833,13 +845,13 @@ g_signal_add_emission_hook_closure (guint signal_id,
833
845
  static VALUE
834
846
  rg_add_emission_hook(int argc, VALUE* argv, VALUE self)
835
847
  {
836
- GSignalQuery* query;
848
+ GSignalQuery *query;
837
849
  VALUE proc;
838
850
  guint hook_id;
839
851
  GQuark detail = 0;
840
852
  GClosure* closure;
841
853
 
842
- Data_Get_Struct(self, GSignalQuery, query);
854
+ query = rbgobj_signal_get_raw(self);
843
855
 
844
856
  if (query->signal_flags & G_SIGNAL_DETAILED) {
845
857
  VALUE detail_obj;
@@ -847,7 +859,7 @@ rg_add_emission_hook(int argc, VALUE* argv, VALUE self)
847
859
  if (SYMBOL_P(detail_obj))
848
860
  detail = g_quark_from_string(rb_id2name(SYM2ID(detail_obj)));
849
861
  else
850
- detail = g_quark_from_string(StringValuePtr(detail_obj));
862
+ detail = g_quark_from_string(RVAL2CSTR(detail_obj));
851
863
  }
852
864
  } else {
853
865
  rb_scan_args(argc, argv, "00&", &proc);
@@ -863,9 +875,8 @@ rg_add_emission_hook(int argc, VALUE* argv, VALUE self)
863
875
  static VALUE
864
876
  rg_remove_emission_hook(VALUE self, VALUE hook_id)
865
877
  {
866
- GSignalQuery* query;
867
- Data_Get_Struct(self, GSignalQuery, query);
868
- g_signal_remove_emission_hook(query->signal_id, NUM2ULONG(hook_id));
878
+ g_signal_remove_emission_hook(rbgobj_signal_get_raw(self)->signal_id,
879
+ NUM2ULONG(hook_id));
869
880
  return Qnil;
870
881
  }
871
882
 
@@ -983,7 +994,8 @@ Init_gobject_gsignal(void)
983
994
  signal_call_func_table = rb_hash_new();
984
995
  rb_global_variable(&signal_call_func_table);
985
996
 
986
- rbg_define_method(mMetaInterface, "signal_new", gobj_s_signal_new, -1);
997
+ rbg_define_method(mMetaInterface, "define_signal", gobj_s_define_signal, -1);
998
+ rb_define_alias(mMetaInterface, "signal_new", "define_signal");
987
999
  rbg_define_method(mMetaInterface, "signals", gobj_s_signals, -1);
988
1000
  rbg_define_method(mMetaInterface, "signal", gobj_s_signal, 1);
989
1001