glib2 0.90.8-x86-mingw32 → 0.90.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (620) hide show
  1. data/ChangeLog +46 -0
  2. data/Rakefile +1 -0
  3. data/ext/glib2/rbglib.h +1 -1
  4. data/ext/glib2/rbglib_iochannel.c +15 -6
  5. data/ext/glib2/rbgobj_signal.c +1 -1
  6. data/ext/glib2/rbgobject.h +1 -1
  7. data/lib/1.8/glib2.so +0 -0
  8. data/lib/1.9/glib2.so +0 -0
  9. data/lib/gnome2-raketask.rb +3 -2
  10. data/lib/mkmf-gnome2.rb +47 -23
  11. data/test/glib-test-init.rb +1 -3
  12. data/vendor/local/bin/glib-genmarshal.exe +0 -0
  13. data/vendor/local/bin/glib-gettextize +2 -2
  14. data/vendor/local/bin/glib-mkenums +3 -2
  15. data/vendor/local/bin/gobject-query.exe +0 -0
  16. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  17. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  18. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  19. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  20. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  21. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  22. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  23. data/vendor/local/include/glib-2.0/gio/gaction.h +91 -0
  24. data/vendor/local/include/glib-2.0/gio/gactiongroup.h +151 -0
  25. data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -1
  26. data/vendor/local/include/glib-2.0/gio/gapplication.h +165 -0
  27. data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +118 -0
  28. data/vendor/local/include/glib-2.0/gio/gasyncresult.h +2 -2
  29. data/vendor/local/include/glib-2.0/gio/gcancellable.h +2 -0
  30. data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +15 -0
  31. data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +2 -2
  32. data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +1 -1
  33. data/vendor/local/include/glib-2.0/gio/gfileiostream.h +1 -1
  34. data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +1 -1
  35. data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +1 -1
  36. data/vendor/local/include/glib-2.0/gio/gio.h +14 -0
  37. data/vendor/local/include/glib-2.0/gio/gioenums.h +158 -2
  38. data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +12 -0
  39. data/vendor/local/include/glib-2.0/gio/giomodule.h +1 -1
  40. data/vendor/local/include/glib-2.0/gio/giostream.h +11 -0
  41. data/vendor/local/include/glib-2.0/gio/giotypes.h +48 -0
  42. data/vendor/local/include/glib-2.0/gio/goutputstream.h +1 -1
  43. data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +101 -0
  44. data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +98 -0
  45. data/vendor/local/include/glib-2.0/gio/gsettings.h +9 -2
  46. data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +6 -0
  47. data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +95 -0
  48. data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +87 -0
  49. data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +11 -1
  50. data/vendor/local/include/glib-2.0/gio/gsocketclient.h +7 -0
  51. data/vendor/local/include/glib-2.0/gio/gtcpwrapperconnection.h +68 -0
  52. data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +92 -0
  53. data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +83 -0
  54. data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +72 -0
  55. data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +136 -0
  56. data/vendor/local/include/glib-2.0/gio/gtlsserverconnection.h +61 -0
  57. data/vendor/local/include/glib-2.0/glib/glist.h +2 -0
  58. data/vendor/local/include/glib-2.0/glib/gmain.h +27 -6
  59. data/vendor/local/include/glib-2.0/glib/gmarkup.h +80 -5
  60. data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
  61. data/vendor/local/include/glib-2.0/glib/gsequence.h +8 -0
  62. data/vendor/local/include/glib-2.0/glib/gslist.h +2 -0
  63. data/vendor/local/include/glib-2.0/glib/gtimezone.h +37 -0
  64. data/vendor/local/include/glib-2.0/glib/gtypes.h +1 -0
  65. data/vendor/local/include/glib-2.0/glib/gunicode.h +22 -16
  66. data/vendor/local/include/glib-2.0/glib/gutils.h +5 -0
  67. data/vendor/local/include/glib-2.0/glib/gvariant.h +35 -11
  68. data/vendor/local/include/glib-2.0/gobject/gobject.h +15 -0
  69. data/vendor/local/include/glib-2.0/gobject/gsignal.h +5 -0
  70. data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +4 -2
  71. data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
  72. data/vendor/local/lib/gio-2.0.def +142 -0
  73. data/vendor/local/lib/gio-2.0.lib +0 -0
  74. data/vendor/local/lib/glib-2.0.def +21 -0
  75. data/vendor/local/lib/glib-2.0.lib +0 -0
  76. data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
  77. data/vendor/local/lib/gmodule-2.0.lib +0 -0
  78. data/vendor/local/lib/gobject-2.0.def +3 -0
  79. data/vendor/local/lib/gobject-2.0.lib +0 -0
  80. data/vendor/local/lib/gthread-2.0.lib +0 -0
  81. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  82. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  83. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  84. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  85. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  86. data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
  87. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
  88. data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
  89. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
  90. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  91. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
  92. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
  93. data/vendor/local/manifest/{glib-dev_2.26.1-1_win32.mft → glib-dev_2.28.1-1_win32.mft} +55 -19
  94. data/vendor/local/manifest/{glib_2.26.1-1_win32.mft → glib_2.28.1-1_win32.mft} +3 -2
  95. data/vendor/local/share/aclocal/glib-2.0.m4 +4 -4
  96. data/vendor/local/share/doc/{glib-2.26.1 → glib-2.28.1}/COPYING +0 -0
  97. data/vendor/local/share/doc/{glib-dev-2.26.1 → glib-dev-2.28.1}/COPYING +0 -0
  98. data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +72 -21
  99. data/vendor/local/share/glib-2.0/schemas/gschema.dtd +21 -8
  100. data/vendor/local/share/gtk-doc/html/gio/GAction.html +469 -0
  101. data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +754 -0
  102. data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +296 -249
  103. data/vendor/local/share/gtk-doc/html/gio/GApplication.html +1458 -0
  104. data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +815 -0
  105. data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +61 -97
  106. data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +31 -38
  107. data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +52 -68
  108. data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +38 -50
  109. data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +120 -77
  110. data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +26 -34
  111. data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -51
  112. data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +39 -62
  113. data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +26 -35
  114. data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +415 -650
  115. data/vendor/local/share/gtk-doc/html/gio/{gio-GDBusError.html → GDBusError.html} +118 -147
  116. data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +204 -347
  117. data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +66 -111
  118. data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +210 -309
  119. data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +68 -87
  120. data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +190 -232
  121. data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +89 -118
  122. data/vendor/local/share/gtk-doc/html/gio/GDrive.html +196 -270
  123. data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +40 -46
  124. data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +56 -24
  125. data/vendor/local/share/gtk-doc/html/gio/GFile.html +1090 -1443
  126. data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +13 -16
  127. data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +66 -86
  128. data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +31 -45
  129. data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +19 -21
  130. data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +466 -602
  131. data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +32 -40
  132. data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +60 -59
  133. data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +32 -47
  134. data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -45
  135. data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +22 -26
  136. data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +22 -26
  137. data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +32 -38
  138. data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +184 -52
  139. data/vendor/local/share/gtk-doc/html/gio/GIcon.html +45 -54
  140. data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +96 -125
  141. data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +21 -25
  142. data/vendor/local/share/gtk-doc/html/gio/GInitable.html +49 -71
  143. data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +102 -134
  144. data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +43 -54
  145. data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +21 -24
  146. data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +34 -41
  147. data/vendor/local/share/gtk-doc/html/gio/GMount.html +223 -294
  148. data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +127 -153
  149. data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +35 -46
  150. data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +37 -46
  151. data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +138 -174
  152. data/vendor/local/share/gtk-doc/html/gio/GPermission.html +46 -68
  153. data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +398 -0
  154. data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +340 -0
  155. data/vendor/local/share/gtk-doc/html/gio/GProxy.html +89 -32
  156. data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +42 -56
  157. data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +59 -34
  158. data/vendor/local/share/gtk-doc/html/gio/GResolver.html +82 -95
  159. data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +58 -72
  160. data/vendor/local/share/gtk-doc/html/gio/GSettings.html +597 -357
  161. data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +125 -75
  162. data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +339 -0
  163. data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +200 -0
  164. data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +232 -167
  165. data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +15 -16
  166. data/vendor/local/share/gtk-doc/html/gio/GSocket.html +291 -406
  167. data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +39 -45
  168. data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +301 -223
  169. data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +41 -44
  170. data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +41 -49
  171. data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +22 -32
  172. data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +88 -107
  173. data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +26 -32
  174. data/vendor/local/share/gtk-doc/html/gio/{gio-GSrvTarget.html → GSrvTarget.html} +74 -77
  175. data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +21 -22
  176. data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +156 -0
  177. data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +40 -46
  178. data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +29 -35
  179. data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +260 -0
  180. data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +396 -0
  181. data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +428 -0
  182. data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +869 -0
  183. data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +158 -0
  184. data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +32 -41
  185. data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +28 -34
  186. data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +44 -54
  187. data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +36 -41
  188. data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +35 -32
  189. data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +35 -32
  190. data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +59 -67
  191. data/vendor/local/share/gtk-doc/html/gio/GVfs.html +49 -57
  192. data/vendor/local/share/gtk-doc/html/gio/GVolume.html +142 -187
  193. data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +99 -132
  194. data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +33 -32
  195. data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +22 -24
  196. data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +43 -13
  197. data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +5 -5
  198. data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +10 -3
  199. data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +20 -20
  200. data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -8
  201. data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +36 -28
  202. data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +744 -0
  203. data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +3 -3
  204. data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +915 -107
  205. data/vendor/local/share/gtk-doc/html/gio/application.html +50 -0
  206. data/vendor/local/share/gtk-doc/html/gio/async.html +5 -5
  207. data/vendor/local/share/gtk-doc/html/gio/ch01.html +4 -4
  208. data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
  209. data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -24
  210. data/vendor/local/share/gtk-doc/html/gio/ch26.html +54 -36
  211. data/vendor/local/share/gtk-doc/html/gio/ch27.html +188 -41
  212. data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +19 -108
  213. data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +16 -179
  214. data/vendor/local/share/gtk-doc/html/gio/ch28.html +57 -0
  215. data/vendor/local/share/gtk-doc/html/gio/{ch26s02.html → ch28s02.html} +10 -10
  216. data/vendor/local/share/gtk-doc/html/gio/{ch26s03.html → ch28s03.html} +10 -10
  217. data/vendor/local/share/gtk-doc/html/gio/{ch26s04.html → ch28s04.html} +10 -10
  218. data/vendor/local/share/gtk-doc/html/gio/{ch26s05.html → ch28s05.html} +10 -10
  219. data/vendor/local/share/gtk-doc/html/gio/{ch26s06.html → ch28s06.html} +17 -15
  220. data/vendor/local/share/gtk-doc/html/gio/{ch26s07.html → ch28s07.html} +10 -10
  221. data/vendor/local/share/gtk-doc/html/gio/ch29.html +70 -0
  222. data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +130 -0
  223. data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +202 -0
  224. data/vendor/local/share/gtk-doc/html/gio/{ch27s04.html → ch29s04.html} +11 -11
  225. data/vendor/local/share/gtk-doc/html/gio/{ch27s05.html → ch29s05.html} +12 -12
  226. data/vendor/local/share/gtk-doc/html/gio/{ch27s06.html → ch29s06.html} +10 -10
  227. data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
  228. data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +27 -14
  229. data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
  230. data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
  231. data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
  232. data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
  233. data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +3 -3
  234. data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +6 -6
  235. data/vendor/local/share/gtk-doc/html/gio/gdbus.html +18 -18
  236. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +39 -62
  237. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +141 -248
  238. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +28 -40
  239. data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +29 -112
  240. data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +45 -57
  241. data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +58 -68
  242. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +16 -18
  243. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +18 -20
  244. data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +82 -76
  245. data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +34 -28
  246. data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +25 -33
  247. data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +87 -113
  248. data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +287 -0
  249. data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +119 -151
  250. data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +62 -95
  251. data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +66 -6
  252. data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +8 -8
  253. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +312 -91
  254. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +386 -133
  255. data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +12 -12
  256. data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +162 -0
  257. data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +7 -4
  258. data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
  259. data/vendor/local/share/gtk-doc/html/gio/index.html +88 -36
  260. data/vendor/local/share/gtk-doc/html/gio/index.sgml +506 -95
  261. data/vendor/local/share/gtk-doc/html/gio/migrating.html +23 -23
  262. data/vendor/local/share/gtk-doc/html/gio/networking.html +3 -3
  263. data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
  264. data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
  265. data/vendor/local/share/gtk-doc/html/gio/pt02.html +68 -17
  266. data/vendor/local/share/gtk-doc/html/gio/resolver.html +6 -6
  267. data/vendor/local/share/gtk-doc/html/gio/settings.html +7 -7
  268. data/vendor/local/share/gtk-doc/html/gio/streaming.html +9 -3
  269. data/vendor/local/share/gtk-doc/html/gio/style.css +2 -1
  270. data/vendor/local/share/gtk-doc/html/gio/tls.html +50 -0
  271. data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
  272. data/vendor/local/share/gtk-doc/html/gio/types.html +6 -6
  273. data/vendor/local/share/gtk-doc/html/gio/utils.html +7 -7
  274. data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
  275. data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -11
  276. data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
  277. data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
  278. data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -3
  279. data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
  280. data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
  281. data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
  282. data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
  283. data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
  284. data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +3 -3
  285. data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +25 -5
  286. data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +112 -0
  287. data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +6 -6
  288. data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +15 -11
  289. data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +5 -5
  290. data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +9 -5
  291. data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +201 -89
  292. data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +144 -210
  293. data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +97 -136
  294. data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +40 -58
  295. data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +99 -128
  296. data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +104 -155
  297. data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +42 -71
  298. data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +40 -43
  299. data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +224 -314
  300. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +104 -142
  301. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +193 -308
  302. data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +51 -76
  303. data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +170 -307
  304. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +154 -198
  305. data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +45 -67
  306. data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +60 -97
  307. data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +390 -428
  308. data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +265 -333
  309. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +306 -330
  310. data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +60 -99
  311. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +122 -152
  312. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +241 -571
  313. data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +233 -330
  314. data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +310 -34
  315. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +739 -590
  316. data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +136 -143
  317. data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +22 -29
  318. data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +210 -297
  319. data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +294 -355
  320. data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +27 -39
  321. data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +102 -95
  322. data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +402 -486
  323. data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +308 -442
  324. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +75 -116
  325. data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +229 -297
  326. data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +36 -36
  327. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +121 -187
  328. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +23 -27
  329. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +80 -107
  330. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +46 -69
  331. data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +63 -99
  332. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +121 -115
  333. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +304 -327
  334. data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +307 -366
  335. data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +39 -20
  336. data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +230 -343
  337. data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +121 -167
  338. data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +31 -45
  339. data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +73 -113
  340. data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +75 -106
  341. data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +229 -184
  342. data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +31 -40
  343. data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +247 -286
  344. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +281 -283
  345. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +83 -337
  346. data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +65 -80
  347. data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +36 -42
  348. data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +408 -621
  349. data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +253 -322
  350. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +161 -252
  351. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +677 -590
  352. data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +88 -111
  353. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +378 -475
  354. data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +27 -48
  355. data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +39 -48
  356. data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +19 -25
  357. data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +57 -93
  358. data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +413 -534
  359. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +117 -21
  360. data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +38 -53
  361. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +60 -114
  362. data/vendor/local/share/gtk-doc/html/glib/glib-building.html +38 -39
  363. data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -13
  364. data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
  365. data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
  366. data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
  367. data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +6 -3
  368. data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
  369. data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +10 -10
  370. data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +82 -82
  371. data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
  372. data/vendor/local/share/gtk-doc/html/glib/glib-running.html +26 -26
  373. data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +3 -3
  374. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +144 -103
  375. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +170 -105
  376. data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
  377. data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +10 -10
  378. data/vendor/local/share/gtk-doc/html/glib/gtester.html +10 -10
  379. data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +48 -43
  380. data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +660 -0
  381. data/vendor/local/share/gtk-doc/html/glib/index.html +8 -4
  382. data/vendor/local/share/gtk-doc/html/glib/index.sgml +67 -2
  383. data/vendor/local/share/gtk-doc/html/glib/style.css +2 -1
  384. data/vendor/local/share/gtk-doc/html/glib/tools.html +5 -5
  385. data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +72 -90
  386. data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +79 -108
  387. data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +67 -85
  388. data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +63 -9
  389. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
  390. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
  391. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
  392. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
  393. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
  394. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
  395. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +3 -3
  396. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +6 -6
  397. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +47 -0
  398. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
  399. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
  400. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
  401. data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
  402. data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +65 -53
  403. data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
  404. data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
  405. data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -11
  406. data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +19 -19
  407. data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
  408. data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +18 -18
  409. data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +22 -22
  410. data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +16 -16
  411. data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +40 -54
  412. data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +405 -512
  413. data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +170 -213
  414. data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +242 -292
  415. data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +91 -127
  416. data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +407 -573
  417. data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +951 -1268
  418. data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +383 -441
  419. data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +648 -829
  420. data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +82 -95
  421. data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +31 -49
  422. data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +8 -8
  423. data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +15 -14
  424. data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
  425. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +62 -58
  426. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +62 -58
  427. data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
  428. data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +11 -11
  429. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +14 -14
  430. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +6 -6
  431. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
  432. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
  433. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +7 -7
  434. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
  435. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
  436. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +10 -10
  437. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
  438. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
  439. data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +6 -6
  440. data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
  441. data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -10
  442. data/vendor/local/share/gtk-doc/html/gobject/index.sgml +13 -1
  443. data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
  444. data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
  445. data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
  446. data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
  447. data/vendor/local/share/gtk-doc/html/gobject/rn01.html +4 -4
  448. data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
  449. data/vendor/local/share/gtk-doc/html/gobject/signal.html +13 -13
  450. data/vendor/local/share/gtk-doc/html/gobject/style.css +2 -1
  451. data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
  452. data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
  453. data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +6 -6
  454. data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
  455. data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
  456. data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
  457. data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
  458. data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
  459. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
  460. data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
  461. data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
  462. data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
  463. data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
  464. data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
  465. data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
  466. data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
  467. data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
  468. data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
  469. data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
  470. data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
  471. data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
  472. data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
  473. data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
  474. data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
  475. data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
  476. data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
  477. data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
  478. data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
  479. data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
  480. data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
  481. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  482. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
  483. data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
  484. data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
  485. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  486. data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
  487. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
  488. data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
  489. data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
  490. data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
  491. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
  492. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
  493. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
  494. data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
  495. data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
  496. data/vendor/local/share/man/man1/gobject-query.1 +2 -2
  497. data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.log → glib_2.28.1-1_win32.log} +690 -773
  498. data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.sh → glib_2.28.1-1_win32.sh} +2 -4
  499. metadata +78 -146
  500. data/ext/glib2/Makefile +0 -169
  501. data/ext/glib2/glib-enum-types.c +0 -1065
  502. data/ext/glib2/glib-enum-types.h +0 -144
  503. data/ext/glib2/ruby-glib2.pc +0 -3
  504. data/test-unit/COPYING +0 -56
  505. data/test-unit/GPL +0 -340
  506. data/test-unit/History.txt +0 -279
  507. data/test-unit/Manifest.txt +0 -110
  508. data/test-unit/PSFL +0 -271
  509. data/test-unit/README.txt +0 -75
  510. data/test-unit/Rakefile +0 -53
  511. data/test-unit/TODO +0 -5
  512. data/test-unit/bin/testrb +0 -5
  513. data/test-unit/html/bar.png +0 -0
  514. data/test-unit/html/bar.svg +0 -153
  515. data/test-unit/html/developer.png +0 -0
  516. data/test-unit/html/developer.svg +0 -469
  517. data/test-unit/html/famfamfam-logo.png +0 -0
  518. data/test-unit/html/favicon.ico +0 -0
  519. data/test-unit/html/favicon.png +0 -0
  520. data/test-unit/html/favicon.svg +0 -82
  521. data/test-unit/html/heading-mark.png +0 -0
  522. data/test-unit/html/heading-mark.svg +0 -393
  523. data/test-unit/html/index.html +0 -285
  524. data/test-unit/html/index.html.ja +0 -299
  525. data/test-unit/html/install.png +0 -0
  526. data/test-unit/html/install.svg +0 -636
  527. data/test-unit/html/jp.png +0 -0
  528. data/test-unit/html/kinotan-failure.png +0 -0
  529. data/test-unit/html/kinotan-pass.png +0 -0
  530. data/test-unit/html/logo.png +0 -0
  531. data/test-unit/html/logo.svg +0 -483
  532. data/test-unit/html/reference.png +0 -0
  533. data/test-unit/html/rubyforge.png +0 -0
  534. data/test-unit/html/tango-logo.png +0 -0
  535. data/test-unit/html/test-unit.css +0 -339
  536. data/test-unit/html/tutorial.png +0 -0
  537. data/test-unit/html/tutorial.svg +0 -559
  538. data/test-unit/html/us.png +0 -0
  539. data/test-unit/images/color-diff.png +0 -0
  540. data/test-unit/lib/test/unit.rb +0 -328
  541. data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
  542. data/test-unit/lib/test/unit/assertions.rb +0 -1792
  543. data/test-unit/lib/test/unit/attribute.rb +0 -125
  544. data/test-unit/lib/test/unit/autorunner.rb +0 -415
  545. data/test-unit/lib/test/unit/collector.rb +0 -38
  546. data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
  547. data/test-unit/lib/test/unit/collector/dir.rb +0 -108
  548. data/test-unit/lib/test/unit/collector/load.rb +0 -187
  549. data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
  550. data/test-unit/lib/test/unit/collector/xml.rb +0 -250
  551. data/test-unit/lib/test/unit/color-scheme.rb +0 -106
  552. data/test-unit/lib/test/unit/color.rb +0 -96
  553. data/test-unit/lib/test/unit/diff.rb +0 -740
  554. data/test-unit/lib/test/unit/error.rb +0 -131
  555. data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
  556. data/test-unit/lib/test/unit/failure.rb +0 -136
  557. data/test-unit/lib/test/unit/fixture.rb +0 -185
  558. data/test-unit/lib/test/unit/notification.rb +0 -129
  559. data/test-unit/lib/test/unit/omission.rb +0 -191
  560. data/test-unit/lib/test/unit/pending.rb +0 -150
  561. data/test-unit/lib/test/unit/priority.rb +0 -180
  562. data/test-unit/lib/test/unit/runner/console.rb +0 -52
  563. data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
  564. data/test-unit/lib/test/unit/runner/tap.rb +0 -8
  565. data/test-unit/lib/test/unit/runner/xml.rb +0 -15
  566. data/test-unit/lib/test/unit/testcase.rb +0 -515
  567. data/test-unit/lib/test/unit/testresult.rb +0 -125
  568. data/test-unit/lib/test/unit/testsuite.rb +0 -134
  569. data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
  570. data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -467
  571. data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
  572. data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
  573. data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
  574. data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -86
  575. data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
  576. data/test-unit/lib/test/unit/ui/xml/testrunner.rb +0 -224
  577. data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
  578. data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
  579. data/test-unit/lib/test/unit/util/observable.rb +0 -90
  580. data/test-unit/lib/test/unit/util/output.rb +0 -31
  581. data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
  582. data/test-unit/lib/test/unit/version.rb +0 -7
  583. data/test-unit/sample/adder.rb +0 -13
  584. data/test-unit/sample/subtracter.rb +0 -12
  585. data/test-unit/sample/test_adder.rb +0 -20
  586. data/test-unit/sample/test_subtracter.rb +0 -20
  587. data/test-unit/sample/test_user.rb +0 -23
  588. data/test-unit/test/collector/test-descendant.rb +0 -133
  589. data/test-unit/test/collector/test-load.rb +0 -442
  590. data/test-unit/test/collector/test_dir.rb +0 -406
  591. data/test-unit/test/collector/test_objectspace.rb +0 -100
  592. data/test-unit/test/run-test.rb +0 -22
  593. data/test-unit/test/test-assertions.rb +0 -1849
  594. data/test-unit/test/test-attribute.rb +0 -86
  595. data/test-unit/test/test-color-scheme.rb +0 -69
  596. data/test-unit/test/test-color.rb +0 -47
  597. data/test-unit/test/test-diff.rb +0 -518
  598. data/test-unit/test/test-emacs-runner.rb +0 -60
  599. data/test-unit/test/test-fixture.rb +0 -324
  600. data/test-unit/test/test-notification.rb +0 -33
  601. data/test-unit/test/test-omission.rb +0 -81
  602. data/test-unit/test/test-pending.rb +0 -70
  603. data/test-unit/test/test-priority.rb +0 -119
  604. data/test-unit/test/test-testcase.rb +0 -569
  605. data/test-unit/test/test_error.rb +0 -26
  606. data/test-unit/test/test_failure.rb +0 -33
  607. data/test-unit/test/test_testresult.rb +0 -113
  608. data/test-unit/test/test_testsuite.rb +0 -137
  609. data/test-unit/test/testunit-test-util.rb +0 -14
  610. data/test-unit/test/ui/test_tap.rb +0 -33
  611. data/test-unit/test/ui/test_testrunmediator.rb +0 -20
  612. data/test-unit/test/util/test-method-owner-finder.rb +0 -38
  613. data/test-unit/test/util/test-output.rb +0 -11
  614. data/test-unit/test/util/test_backtracefilter.rb +0 -41
  615. data/test-unit/test/util/test_observable.rb +0 -102
  616. data/test-unit/test/util/test_procwrapper.rb +0 -36
  617. data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
  618. data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
  619. data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
  620. data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
@@ -0,0 +1,1458 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>GApplication</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
+ <link rel="home" href="index.html" title="GIO Reference Manual">
8
+ <link rel="up" href="application.html" title="Application support">
9
+ <link rel="prev" href="GSimpleAction.html" title="GSimpleAction">
10
+ <link rel="next" href="GApplicationCommandLine.html" title="GApplicationCommandLine">
11
+ <meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
+ <tr valign="middle">
17
+ <td><a accesskey="p" href="GSimpleAction.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="application.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
+ <th width="100%" align="center">GIO Reference Manual</th>
21
+ <td><a accesskey="n" href="GApplicationCommandLine.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
+ </tr>
23
+ <tr><td colspan="5" class="shortcuts">
24
+ <a href="#GApplication.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#GApplication.description" class="shortcut">Description</a>
27
+  | 
28
+ <a href="#GApplication.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
+  | 
30
+ <a href="#GApplication.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31
+  | 
32
+ <a href="#GApplication.properties" class="shortcut">Properties</a>
33
+  | 
34
+ <a href="#GApplication.signals" class="shortcut">Signals</a>
35
+ </td></tr>
36
+ </table>
37
+ <div class="refentry">
38
+ <a name="GApplication"></a><div class="titlepage"></div>
39
+ <div class="refnamediv"><table width="100%"><tr>
40
+ <td valign="top">
41
+ <h2><span class="refentrytitle"><a name="GApplication.top_of_page"></a>GApplication</span></h2>
42
+ <p>GApplication — Core application class</p>
43
+ </td>
44
+ <td valign="top" align="right"></td>
45
+ </tr></table></div>
46
+ <div class="refsynopsisdiv">
47
+ <a name="GApplication.synopsis"></a><h2>Synopsis</h2>
48
+ <a name="GApplicationFlags"></a><pre class="synopsis"> <a class="link" href="GApplication.html#GApplication-struct" title="GApplication">GApplication</a>;
49
+ struct <a class="link" href="GApplication.html#GApplicationClass" title="struct GApplicationClass">GApplicationClass</a>;
50
+
51
+ enum <a class="link" href="GApplication.html#GApplicationFlags">GApplicationFlags</a>;
52
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GApplication.html#g-application-id-is-valid" title="g_application_id_is_valid ()">g_application_id_is_valid</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_id</code></em>);
53
+ <a class="link" href="GApplication.html" title="GApplication"><span class="returnvalue">GApplication</span></a> * <a class="link" href="GApplication.html#g-application-new" title="g_application_new ()">g_application_new</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_id</code></em>,
54
+ <em class="parameter"><code><a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a> flags</code></em>);
55
+
56
+ const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GApplication.html#g-application-get-application-id" title="g_application_get_application_id ()">g_application_get_application_id</a>
57
+ (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
58
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-set-application-id" title="g_application_set_application_id ()">g_application_set_application_id</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
59
+ <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_id</code></em>);
60
+
61
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="GApplication.html#g-application-get-inactivity-timeout" title="g_application_get_inactivity_timeout ()">g_application_get_inactivity_timeout</a>
62
+ (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
63
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-set-inactivity-timeout" title="g_application_set_inactivity_timeout ()">g_application_set_inactivity_timeout</a>
64
+ (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
65
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> inactivity_timeout</code></em>);
66
+
67
+ <a class="link" href="GApplication.html#GApplicationFlags"><span class="returnvalue">GApplicationFlags</span></a> <a class="link" href="GApplication.html#g-application-get-flags" title="g_application_get_flags ()">g_application_get_flags</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
68
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-set-flags" title="g_application_set_flags ()">g_application_set_flags</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
69
+ <em class="parameter"><code><a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a> flags</code></em>);
70
+
71
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-set-action-group" title="g_application_set_action_group ()">g_application_set_action_group</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
72
+ <em class="parameter"><code><a class="link" href="GActionGroup.html" title="GActionGroup"><span class="type">GActionGroup</span></a> *action_group</code></em>);
73
+
74
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GApplication.html#g-application-get-is-registered" title="g_application_get_is_registered ()">g_application_get_is_registered</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
75
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GApplication.html#g-application-get-is-remote" title="g_application_get_is_remote ()">g_application_get_is_remote</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
76
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GApplication.html#g-application-register" title="g_application_register ()">g_application_register</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
77
+ <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
78
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
79
+
80
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-hold" title="g_application_hold ()">g_application_hold</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
81
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-release" title="g_application_release ()">g_application_release</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
82
+
83
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-activate" title="g_application_activate ()">g_application_activate</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);
84
+ <span class="returnvalue">void</span> <a class="link" href="GApplication.html#g-application-open" title="g_application_open ()">g_application_open</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
85
+ <em class="parameter"><code><a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> **files</code></em>,
86
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_files</code></em>,
87
+ <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *hint</code></em>);
88
+
89
+ <span class="returnvalue">int</span> <a class="link" href="GApplication.html#g-application-run" title="g_application_run ()">g_application_run</a> (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
90
+ <em class="parameter"><code><span class="type">int</span> argc</code></em>,
91
+ <em class="parameter"><code><span class="type">char</span> **argv</code></em>);
92
+ </pre>
93
+ </div>
94
+ <div class="refsect1">
95
+ <a name="GApplication.object-hierarchy"></a><h2>Object Hierarchy</h2>
96
+ <pre class="synopsis">
97
+ <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
98
+ +----GApplication
99
+ </pre>
100
+ <pre class="synopsis">
101
+ GFlags
102
+ +----GApplicationFlags
103
+ </pre>
104
+ </div>
105
+ <div class="refsect1">
106
+ <a name="GApplication.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
107
+ <p>
108
+ GApplication implements
109
+ <a class="link" href="GActionGroup.html" title="GActionGroup">GActionGroup</a>.</p>
110
+ </div>
111
+ <div class="refsect1">
112
+ <a name="GApplication.properties"></a><h2>Properties</h2>
113
+ <pre class="synopsis">
114
+ "<a class="link" href="GApplication.html#GApplication--action-group" title='The "action-group" property'>action-group</a>" <a class="link" href="GActionGroup.html" title="GActionGroup"><span class="type">GActionGroup</span></a>* : Write
115
+ "<a class="link" href="GApplication.html#GApplication--application-id" title='The "application-id" property'>application-id</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct
116
+ "<a class="link" href="GApplication.html#GApplication--flags" title='The "flags" property'>flags</a>" <a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a> : Read / Write
117
+ "<a class="link" href="GApplication.html#GApplication--inactivity-timeout" title='The "inactivity-timeout" property'>inactivity-timeout</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
118
+ "<a class="link" href="GApplication.html#GApplication--is-registered" title='The "is-registered" property'>is-registered</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read
119
+ "<a class="link" href="GApplication.html#GApplication--is-remote" title='The "is-remote" property'>is-remote</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read
120
+ </pre>
121
+ </div>
122
+ <div class="refsect1">
123
+ <a name="GApplication.signals"></a><h2>Signals</h2>
124
+ <pre class="synopsis">
125
+ "<a class="link" href="GApplication.html#GApplication-activate" title='The "activate" signal'>activate</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
126
+ "<a class="link" href="GApplication.html#GApplication-command-line" title='The "command-line" signal'>command-line</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
127
+ "<a class="link" href="GApplication.html#GApplication-open" title='The "open" signal'>open</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
128
+ "<a class="link" href="GApplication.html#GApplication-startup" title='The "startup" signal'>startup</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
129
+ </pre>
130
+ </div>
131
+ <div class="refsect1">
132
+ <a name="GApplication.description"></a><h2>Description</h2>
133
+ <p>
134
+ A <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> is the foundation of an application, unique for a
135
+ given application identifier. The GApplication class wraps some
136
+ low-level platform-specific services and is intended to act as the
137
+ foundation for higher-level application classes such as
138
+ <a href="http://library.gnome.org/devel/gtk/2.24/GtkApplication.html"><span class="type">GtkApplication</span></a> or <span class="type">MxApplication</span>. In general, you should not use
139
+ this class outside of a higher level framework.
140
+ </p>
141
+ <p>
142
+ One of the core features that GApplication provides is process
143
+ uniqueness, in the context of a "session". The session concept is
144
+ platform-dependent, but corresponds roughly to a graphical desktop
145
+ login. When your application is launched again, its arguments
146
+ are passed through platform communication to the already running
147
+ program. The already running instance of the program is called the
148
+ <em class="firstterm">primary instance</em>.
149
+ </p>
150
+ <p>
151
+ Before using GApplication, you must choose an "application identifier".
152
+ The expected form of an application identifier is very close to that of
153
+ of a <a class="ulink" href="http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-interface" target="_top">DBus bus name</a>.
154
+ Examples include: "com.example.MyApp", "org.example.internal-apps.Calculator".
155
+ For details on valid application identifiers, see
156
+ <a class="link" href="GApplication.html#g-application-id-is-valid" title="g_application_id_is_valid ()"><code class="function">g_application_id_is_valid()</code></a>.
157
+ </p>
158
+ <p>
159
+ The application identifier is claimed by the application as a
160
+ well-known bus name on the user's session bus. This means that the
161
+ uniqueness of your application is scoped to the current session. It
162
+ also means that your application may provide additional services
163
+ (through registration of other object paths) at that bus name.
164
+ </p>
165
+ <p>
166
+ The registration of these object paths should be done with the shared
167
+ GDBus session bus. Note that due to the internal architecture of
168
+ GDBus, method calls can be dispatched at any time (even if a main
169
+ loop is not running). For this reason, you must ensure that any
170
+ object paths that you wish to register are registered before
171
+ <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> attempts to acquire the bus name of your application
172
+ (which happens in <a class="link" href="GApplication.html#g-application-register" title="g_application_register ()"><code class="function">g_application_register()</code></a>). Unfortunately, this
173
+ means that you can not use <a class="link" href="GApplication.html#g-application-get-is-remote" title="g_application_get_is_remote ()"><code class="function">g_application_get_is_remote()</code></a> to decide if
174
+ you want to register object paths.
175
+ </p>
176
+ <p>
177
+ GApplication provides convenient life cycle management by maintaining
178
+ a <em class="firstterm">use count</em> for the primary application instance.
179
+ The use count can be changed using <a class="link" href="GApplication.html#g-application-hold" title="g_application_hold ()"><code class="function">g_application_hold()</code></a> and
180
+ <a class="link" href="GApplication.html#g-application-release" title="g_application_release ()"><code class="function">g_application_release()</code></a>. If it drops to zero, the application exits.
181
+ </p>
182
+ <p>
183
+ GApplication also implements the <a class="link" href="GActionGroup.html" title="GActionGroup"><span class="type">GActionGroup</span></a> interface and lets you
184
+ easily export actions by adding them with <a class="link" href="GApplication.html#g-application-set-action-group" title="g_application_set_action_group ()"><code class="function">g_application_set_action_group()</code></a>.
185
+ When invoking an action by calling <a class="link" href="GActionGroup.html#g-action-group-activate-action" title="g_action_group_activate_action ()"><code class="function">g_action_group_activate_action()</code></a> on
186
+ the application, it is always invoked in the primary instance.
187
+ </p>
188
+ <p>
189
+ There is a number of different entry points into a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>:
190
+ </p>
191
+ <div class="itemizedlist"><ul class="itemizedlist" type="disc">
192
+ <li class="listitem">via 'Activate' (i.e. just starting the application)</li>
193
+ <li class="listitem">via 'Open' (i.e. opening some files)</li>
194
+ <li class="listitem">via activating an action</li>
195
+ </ul></div>
196
+ <p>
197
+ The <a class="link" href="GApplication.html#GApplication-startup" title='The "startup" signal'><span class="type">"startup"</span></a> signal lets you handle the application
198
+ initialization for all of these in a single place.
199
+ </p>
200
+ <p>
201
+ </p>
202
+ <div class="example">
203
+ <a name="gapplication-example-open"></a><p class="title"><b>Example 13. Opening files with a GApplication</b></p>
204
+ <div class="example-contents">
205
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
206
+ <tbody>
207
+ <tr>
208
+ <td class="listing_lines" align="right"><pre>1
209
+ 2
210
+ 3
211
+ 4
212
+ 5
213
+ 6
214
+ 7
215
+ 8
216
+ 9
217
+ 10
218
+ 11
219
+ 12
220
+ 13
221
+ 14
222
+ 15
223
+ 16
224
+ 17
225
+ 18
226
+ 19
227
+ 20
228
+ 21
229
+ 22
230
+ 23
231
+ 24
232
+ 25
233
+ 26
234
+ 27
235
+ 28
236
+ 29
237
+ 30
238
+ 31
239
+ 32
240
+ 33
241
+ 34
242
+ 35
243
+ 36
244
+ 37
245
+ 38
246
+ 39
247
+ 40
248
+ 41
249
+ 42
250
+ 43
251
+ 44
252
+ 45
253
+ 46
254
+ 47
255
+ 48
256
+ 49
257
+ 50
258
+ 51
259
+ 52
260
+ 53
261
+ 54
262
+ 55
263
+ 56</pre></td>
264
+ <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;gio/gio.h&gt;</span>
265
+ <span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;stdlib.h&gt;</span>
266
+ <span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;string.h&gt;</span>
267
+
268
+ <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
269
+ <span class="function">activate</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GApplication</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">application</span><span class="symbol">)</span>
270
+ <span class="cbracket">{</span>
271
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"activated</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
272
+
273
+ <span class="normal"> </span><span class="comment">/* Note: when doing a longer-lasting action here that returns</span>
274
+ <span class="comment"> * to the mainloop, you should use g_application_hold() and</span>
275
+ <span class="comment"> * g_application_release() to keep the application alive until</span>
276
+ <span class="comment"> * the action is completed.</span>
277
+ <span class="comment"> */</span>
278
+ <span class="cbracket">}</span>
279
+
280
+ <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
281
+ <span class="function">open</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GApplication</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">application</span><span class="symbol">,</span>
282
+ <span class="normal"> </span><span class="usertype">GFile</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">files</span><span class="symbol">,</span>
283
+ <span class="normal"> </span><span class="usertype">gint</span><span class="normal"> n_files</span><span class="symbol">,</span>
284
+ <span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">hint</span><span class="symbol">)</span>
285
+ <span class="cbracket">{</span>
286
+ <span class="normal"> </span><span class="usertype">gint</span><span class="normal"> i</span><span class="symbol">;</span>
287
+
288
+ <span class="normal"> </span><span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">i </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span><span class="normal"> i </span><span class="symbol">&lt;</span><span class="normal"> n_files</span><span class="symbol">;</span><span class="normal"> i</span><span class="symbol">++)</span>
289
+ <span class="normal"> </span><span class="cbracket">{</span>
290
+ <span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">uri </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GFile.html#g-file-get-uri">g_file_get_uri</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">files</span><span class="symbol">[</span><span class="normal">i</span><span class="symbol">]);</span>
291
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"open %s</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> uri</span><span class="symbol">);</span>
292
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">uri</span><span class="symbol">);</span>
293
+ <span class="normal"> </span><span class="cbracket">}</span>
294
+
295
+ <span class="normal"> </span><span class="comment">/* Note: when doing a longer-lasting action here that returns</span>
296
+ <span class="comment"> * to the mainloop, you should use g_application_hold() and</span>
297
+ <span class="comment"> * g_application_release() to keep the application alive until</span>
298
+ <span class="comment"> * the action is completed.</span>
299
+ <span class="comment"> */</span>
300
+ <span class="cbracket">}</span>
301
+
302
+ <span class="type">int</span>
303
+ <span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">argv</span><span class="symbol">)</span>
304
+ <span class="cbracket">{</span>
305
+ <span class="normal"> </span><span class="usertype">GApplication</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">app</span><span class="symbol">;</span>
306
+ <span class="normal"> </span><span class="type">int</span><span class="normal"> status</span><span class="symbol">;</span>
307
+
308
+ <span class="normal"> app </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-new">g_application_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"org.gtk.TestApplication"</span><span class="symbol">,</span>
309
+ <span class="normal"> <a href="GApplication.html#G-APPLICATION-HANDLES-OPEN:CAPS">G_APPLICATION_HANDLES_OPEN</a></span><span class="symbol">);</span>
310
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"activate"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">activate</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
311
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"open"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">open</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
312
+ <span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-set-inactivity-timeout">g_application_set_inactivity_timeout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> </span><span class="number">10000</span><span class="symbol">);</span>
313
+
314
+ <span class="normal"> status </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-run">g_application_run</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> argv</span><span class="symbol">);</span>
315
+
316
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">);</span>
317
+
318
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> status</span><span class="symbol">;</span>
319
+ <span class="cbracket">}</span></pre></td>
320
+ </tr>
321
+ </tbody>
322
+ </table>
323
+ </div>
324
+
325
+ </div>
326
+ <p><br class="example-break">
327
+ </p>
328
+ <p>
329
+ </p>
330
+ <div class="example">
331
+ <a name="gapplication-example-actions"></a><p class="title"><b>Example 14. A GApplication with actions</b></p>
332
+ <div class="example-contents">
333
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
334
+ <tbody>
335
+ <tr>
336
+ <td class="listing_lines" align="right"><pre>1
337
+ 2
338
+ 3
339
+ 4
340
+ 5
341
+ 6
342
+ 7
343
+ 8
344
+ 9
345
+ 10
346
+ 11
347
+ 12
348
+ 13
349
+ 14
350
+ 15
351
+ 16
352
+ 17
353
+ 18
354
+ 19
355
+ 20
356
+ 21
357
+ 22
358
+ 23
359
+ 24
360
+ 25
361
+ 26
362
+ 27
363
+ 28
364
+ 29
365
+ 30
366
+ 31
367
+ 32
368
+ 33
369
+ 34
370
+ 35
371
+ 36
372
+ 37
373
+ 38
374
+ 39
375
+ 40
376
+ 41
377
+ 42
378
+ 43
379
+ 44
380
+ 45
381
+ 46
382
+ 47
383
+ 48
384
+ 49
385
+ 50
386
+ 51
387
+ 52
388
+ 53
389
+ 54
390
+ 55
391
+ 56
392
+ 57
393
+ 58
394
+ 59
395
+ 60
396
+ 61
397
+ 62
398
+ 63
399
+ 64
400
+ 65
401
+ 66
402
+ 67
403
+ 68
404
+ 69
405
+ 70
406
+ 71
407
+ 72
408
+ 73
409
+ 74
410
+ 75
411
+ 76
412
+ 77
413
+ 78
414
+ 79
415
+ 80
416
+ 81
417
+ 82
418
+ 83
419
+ 84
420
+ 85
421
+ 86
422
+ 87
423
+ 88
424
+ 89</pre></td>
425
+ <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;gio/gio.h&gt;</span>
426
+ <span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;stdlib.h&gt;</span>
427
+ <span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;string.h&gt;</span>
428
+
429
+ <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
430
+ <span class="function">activate</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GApplication</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">application</span><span class="symbol">)</span>
431
+ <span class="cbracket">{</span>
432
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"activated</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
433
+ <span class="cbracket">}</span>
434
+
435
+ <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
436
+ <span class="function">activate_action</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GAction</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">action</span><span class="symbol">,</span>
437
+ <span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">parameter</span><span class="symbol">,</span>
438
+ <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
439
+ <span class="cbracket">{</span>
440
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"action %s activated</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="GAction.html#g-action-get-name">g_action_get_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">));</span>
441
+ <span class="cbracket">}</span>
442
+
443
+ <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
444
+ <span class="function">activate_toggle_action</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GAction</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">action</span><span class="symbol">,</span>
445
+ <span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">parameter</span><span class="symbol">,</span>
446
+ <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
447
+ <span class="cbracket">{</span>
448
+ <span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">state</span><span class="symbol">;</span>
449
+ <span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> b</span><span class="symbol">;</span>
450
+
451
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"action %s activated</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="GAction.html#g-action-get-name">g_action_get_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">));</span>
452
+
453
+ <span class="normal"> state </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GAction.html#g-action-get-state">g_action_get_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">);</span>
454
+ <span class="normal"> b </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get-boolean">g_variant_get_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">state</span><span class="symbol">);</span>
455
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-unref">g_variant_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">state</span><span class="symbol">);</span>
456
+ <span class="normal"> </span><span class="function"><a href="GAction.html#g-action-set-state">g_action_set_state</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-new-boolean">g_variant_new_boolean</a></span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">b</span><span class="symbol">));</span>
457
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"state change %d -&gt; %d</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> b</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">!</span><span class="normal">b</span><span class="symbol">);</span>
458
+ <span class="cbracket">}</span>
459
+
460
+ <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
461
+ <span class="function">add_actions</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GApplication</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">app</span><span class="symbol">)</span>
462
+ <span class="cbracket">{</span>
463
+ <span class="normal"> </span><span class="usertype">GSimpleActionGroup</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">actions</span><span class="symbol">;</span>
464
+ <span class="normal"> </span><span class="usertype">GSimpleAction</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">action</span><span class="symbol">;</span>
465
+
466
+ <span class="normal"> actions </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GSimpleActionGroup.html#g-simple-action-group-new">g_simple_action_group_new</a></span><span class="normal"> </span><span class="symbol">();</span>
467
+
468
+ <span class="normal"> action </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GSimpleAction.html#g-simple-action-new">g_simple_action_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"simple-action"</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
469
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"activate"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">activate_action</span><span class="symbol">),</span><span class="normal"> app</span><span class="symbol">);</span>
470
+ <span class="normal"> </span><span class="function"><a href="GSimpleActionGroup.html#g-simple-action-group-insert">g_simple_action_group_insert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actions</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_ACTION</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">));</span>
471
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">);</span>
472
+
473
+ <span class="normal"> action </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GSimpleAction.html#g-simple-action-new-stateful">g_simple_action_new_stateful</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"toggle-action"</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
474
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-new-boolean">g_variant_new_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">));</span>
475
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"activate"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">activate_toggle_action</span><span class="symbol">),</span><span class="normal"> app</span><span class="symbol">);</span>
476
+ <span class="normal"> </span><span class="function"><a href="GSimpleActionGroup.html#g-simple-action-group-insert">g_simple_action_group_insert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actions</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_ACTION</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">));</span>
477
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">);</span>
478
+
479
+ <span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-set-action-group">g_application_set_action_group</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_ACTION_GROUP</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actions</span><span class="symbol">));</span>
480
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">actions</span><span class="symbol">);</span>
481
+ <span class="cbracket">}</span>
482
+
483
+ <span class="type">int</span>
484
+ <span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">argv</span><span class="symbol">)</span>
485
+ <span class="cbracket">{</span>
486
+ <span class="normal"> </span><span class="usertype">GApplication</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">app</span><span class="symbol">;</span>
487
+ <span class="normal"> </span><span class="type">int</span><span class="normal"> status</span><span class="symbol">;</span>
488
+
489
+ <span class="normal"> app </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-new">g_application_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"org.gtk.TestApplication"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
490
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"activate"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">activate</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
491
+ <span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-set-inactivity-timeout">g_application_set_inactivity_timeout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> </span><span class="number">10000</span><span class="symbol">);</span>
492
+
493
+ <span class="normal"> </span><span class="function">add_actions</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">);</span>
494
+
495
+ <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argc </span><span class="symbol">&gt;</span><span class="normal"> </span><span class="number">1</span><span class="normal"> </span><span class="symbol">&amp;&amp;</span><span class="normal"> </span><span class="function">strcmp</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argv</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">],</span><span class="normal"> </span><span class="string">"--simple-action"</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span>
496
+ <span class="normal"> </span><span class="cbracket">{</span>
497
+ <span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-register">g_application_register</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
498
+ <span class="normal"> </span><span class="function"><a href="GActionGroup.html#g-action-group-activate-action">g_action_group_activate_action</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_ACTION_GROUP</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"simple-action"</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
499
+ <span class="normal"> </span><span class="function">exit</span><span class="normal"> </span><span class="symbol">(</span><span class="number">0</span><span class="symbol">);</span>
500
+ <span class="normal"> </span><span class="cbracket">}</span>
501
+ <span class="normal"> </span><span class="keyword">else</span><span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argc </span><span class="symbol">&gt;</span><span class="normal"> </span><span class="number">1</span><span class="normal"> </span><span class="symbol">&amp;&amp;</span><span class="normal"> </span><span class="function">strcmp</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argv</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">],</span><span class="normal"> </span><span class="string">"--toggle-action"</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span>
502
+ <span class="normal"> </span><span class="cbracket">{</span>
503
+ <span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-register">g_application_register</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
504
+ <span class="normal"> </span><span class="function"><a href="GActionGroup.html#g-action-group-activate-action">g_action_group_activate_action</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_ACTION_GROUP</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"toggle-action"</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
505
+ <span class="normal"> </span><span class="function">exit</span><span class="normal"> </span><span class="symbol">(</span><span class="number">0</span><span class="symbol">);</span>
506
+ <span class="normal"> </span><span class="cbracket">}</span>
507
+
508
+ <span class="normal"> status </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GApplication.html#g-application-run">g_application_run</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">,</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> argv</span><span class="symbol">);</span>
509
+
510
+ <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">);</span>
511
+
512
+ <span class="normal"> </span><span class="keyword">return</span><span class="normal"> status</span><span class="symbol">;</span>
513
+ <span class="cbracket">}</span></pre></td>
514
+ </tr>
515
+ </tbody>
516
+ </table>
517
+ </div>
518
+
519
+ </div>
520
+ <p><br class="example-break">
521
+ </p>
522
+ </div>
523
+ <div class="refsect1">
524
+ <a name="GApplication.details"></a><h2>Details</h2>
525
+ <div class="refsect2">
526
+ <a name="GApplication-struct"></a><h3>GApplication</h3>
527
+ <pre class="programlisting">typedef struct _GApplication GApplication;</pre>
528
+ <p>
529
+ The <span class="structname">GApplication</span> structure contains private
530
+ data and should only be accessed using the provided API
531
+ </p>
532
+ <p class="since">Since 2.28</p>
533
+ </div>
534
+ <hr>
535
+ <div class="refsect2">
536
+ <a name="GApplicationClass"></a><h3>struct GApplicationClass</h3>
537
+ <pre class="programlisting">struct GApplicationClass {
538
+ /* signals */
539
+ void (* startup) (GApplication *application);
540
+
541
+ void (* activate) (GApplication *application);
542
+
543
+ void (* open) (GApplication *application,
544
+ GFile **files,
545
+ gint n_files,
546
+ const gchar *hint);
547
+
548
+ int (* command_line) (GApplication *application,
549
+ GApplicationCommandLine *command_line);
550
+
551
+ /* vfuncs */
552
+ gboolean (* local_command_line) (GApplication *application,
553
+ gchar ***arguments,
554
+ int *exit_status);
555
+
556
+ void (* before_emit) (GApplication *application,
557
+ GVariant *platform_data);
558
+ void (* after_emit) (GApplication *application,
559
+ GVariant *platform_data);
560
+ void (* add_platform_data) (GApplication *application,
561
+ GVariantBuilder *builder);
562
+ void (* quit_mainloop) (GApplication *application);
563
+ void (* run_mainloop) (GApplication *application);
564
+ };
565
+ </pre>
566
+ <div class="variablelist"><table border="0">
567
+ <col align="left" valign="top">
568
+ <tbody>
569
+ <tr>
570
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.startup"></a>startup</code></em> ()</span></p></td>
571
+ <td>invoked on the primary instance immediately after registration</td>
572
+ </tr>
573
+ <tr>
574
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.activate"></a>activate</code></em> ()</span></p></td>
575
+ <td>invoked on the primary instance when an activation occurs</td>
576
+ </tr>
577
+ <tr>
578
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.open"></a>open</code></em> ()</span></p></td>
579
+ <td>invoked on the primary instance when there are files to open</td>
580
+ </tr>
581
+ <tr>
582
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.command-line"></a>command_line</code></em> ()</span></p></td>
583
+ <td>invoked on the primary instance when a command-line is
584
+ not handled locally</td>
585
+ </tr>
586
+ <tr>
587
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.local-command-line"></a>local_command_line</code></em> ()</span></p></td>
588
+ <td>invoked (locally) when the process has been invoked
589
+ via commandline execution. The virtual function has the chance to
590
+ inspect (and possibly replace) the list of command line arguments.
591
+ See <a class="link" href="GApplication.html#g-application-run" title="g_application_run ()"><code class="function">g_application_run()</code></a> for more information.</td>
592
+ </tr>
593
+ <tr>
594
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.before-emit"></a>before_emit</code></em> ()</span></p></td>
595
+ <td>invoked on the primary instance before 'activate', 'open' or any action invocation</td>
596
+ </tr>
597
+ <tr>
598
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.after-emit"></a>after_emit</code></em> ()</span></p></td>
599
+ <td>invoked on the primary instance after 'activate', 'open' or any action invocation</td>
600
+ </tr>
601
+ <tr>
602
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.add-platform-data"></a>add_platform_data</code></em> ()</span></p></td>
603
+ <td>invoked (locally) to add 'platform data' to be sent to the primary instance when
604
+ activating, opening or invoking actions</td>
605
+ </tr>
606
+ <tr>
607
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.quit-mainloop"></a>quit_mainloop</code></em> ()</span></p></td>
608
+ <td>invoked on the primary instance when the use count of the application drops to zero (and
609
+ after any inactivity timeout, if requested)</td>
610
+ </tr>
611
+ <tr>
612
+ <td><p><span class="term"><em class="structfield"><code><a name="GApplicationClass.run-mainloop"></a>run_mainloop</code></em> ()</span></p></td>
613
+ <td>invoked on the primary instance from <a class="link" href="GApplication.html#g-application-run" title="g_application_run ()"><code class="function">g_application_run()</code></a> if the use-count is non-zero</td>
614
+ </tr>
615
+ </tbody>
616
+ </table></div>
617
+ <p class="since">Since 2.28</p>
618
+ </div>
619
+ <hr>
620
+ <div class="refsect2">
621
+ <a name="GApplicationFlags"></a><h3>enum GApplicationFlags</h3>
622
+ <pre class="programlisting">typedef enum
623
+ {
624
+ G_APPLICATION_FLAGS_NONE,
625
+ G_APPLICATION_IS_SERVICE = (1 &lt;&lt; 0),
626
+ G_APPLICATION_IS_LAUNCHER = (1 &lt;&lt; 1),
627
+
628
+ G_APPLICATION_HANDLES_OPEN = (1 &lt;&lt; 2),
629
+ G_APPLICATION_HANDLES_COMMAND_LINE = (1 &lt;&lt; 3),
630
+ G_APPLICATION_SEND_ENVIRONMENT = (1 &lt;&lt; 4)
631
+ } GApplicationFlags;
632
+ </pre>
633
+ <p>
634
+ Flags used to define the behaviour of a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>.
635
+ </p>
636
+ <div class="variablelist"><table border="0">
637
+ <col align="left" valign="top">
638
+ <tbody>
639
+ <tr>
640
+ <td><p><a name="G-APPLICATION-FLAGS-NONE:CAPS"></a><span class="term"><code class="literal">G_APPLICATION_FLAGS_NONE</code></span></p></td>
641
+ <td>Default
642
+ </td>
643
+ </tr>
644
+ <tr>
645
+ <td><p><a name="G-APPLICATION-IS-SERVICE:CAPS"></a><span class="term"><code class="literal">G_APPLICATION_IS_SERVICE</code></span></p></td>
646
+ <td>Run as a service. In this mode, registration
647
+ fails if the service is already running, and the application will
648
+ stay around for a while when the use count falls to zero.
649
+ </td>
650
+ </tr>
651
+ <tr>
652
+ <td><p><a name="G-APPLICATION-IS-LAUNCHER:CAPS"></a><span class="term"><code class="literal">G_APPLICATION_IS_LAUNCHER</code></span></p></td>
653
+ <td>Don't try to become the primary instance.
654
+ </td>
655
+ </tr>
656
+ <tr>
657
+ <td><p><a name="G-APPLICATION-HANDLES-OPEN:CAPS"></a><span class="term"><code class="literal">G_APPLICATION_HANDLES_OPEN</code></span></p></td>
658
+ <td>This application handles opening files (in the
659
+ primary instance)
660
+ </td>
661
+ </tr>
662
+ <tr>
663
+ <td><p><a name="G-APPLICATION-HANDLES-COMMAND-LINE:CAPS"></a><span class="term"><code class="literal">G_APPLICATION_HANDLES_COMMAND_LINE</code></span></p></td>
664
+ <td>This application handles command line
665
+ arguments (in the primary instance)
666
+ </td>
667
+ </tr>
668
+ <tr>
669
+ <td><p><a name="G-APPLICATION-SEND-ENVIRONMENT:CAPS"></a><span class="term"><code class="literal">G_APPLICATION_SEND_ENVIRONMENT</code></span></p></td>
670
+ <td>Send the environment of the
671
+ launching process to the primary instance
672
+ </td>
673
+ </tr>
674
+ </tbody>
675
+ </table></div>
676
+ <p class="since">Since 2.28</p>
677
+ </div>
678
+ <hr>
679
+ <div class="refsect2">
680
+ <a name="g-application-id-is-valid"></a><h3>g_application_id_is_valid ()</h3>
681
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_application_id_is_valid (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_id</code></em>);</pre>
682
+ <p>
683
+ Checks if <em class="parameter"><code>application_id</code></em> is a valid application identifier.
684
+ </p>
685
+ <p>
686
+ A valid ID is required for calls to <a class="link" href="GApplication.html#g-application-new" title="g_application_new ()"><code class="function">g_application_new()</code></a> and
687
+ <a class="link" href="GApplication.html#g-application-set-application-id" title="g_application_set_application_id ()"><code class="function">g_application_set_application_id()</code></a>.
688
+ </p>
689
+ <p>
690
+ For convenience, the restrictions on application identifiers are
691
+ reproduced here:
692
+ </p>
693
+ <div class="itemizedlist"><ul class="itemizedlist" type="disc">
694
+ <li class="listitem">Application identifiers must contain only the ASCII characters "[A-Z][a-z][0-9]_-" and must not begin with a digit.</li>
695
+ <li class="listitem">Application identifiers must contain at least one '.' (period) character (and thus at least two elements).</li>
696
+ <li class="listitem">Application identifiers must not begin with a '.' (period) character.</li>
697
+ <li class="listitem">Application identifiers must not contain consecutive '.' (period) characters.</li>
698
+ <li class="listitem">Application identifiers must not exceed 255 characters.</li>
699
+ </ul></div>
700
+ <p>
701
+ </p>
702
+ <div class="variablelist"><table border="0">
703
+ <col align="left" valign="top">
704
+ <tbody>
705
+ <tr>
706
+ <td><p><span class="term"><em class="parameter"><code>application_id</code></em> :</span></p></td>
707
+ <td>a potential application identifier</td>
708
+ </tr>
709
+ <tr>
710
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
711
+ <td>
712
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>application_id</code></em> is valid</td>
713
+ </tr>
714
+ </tbody>
715
+ </table></div>
716
+ </div>
717
+ <hr>
718
+ <div class="refsect2">
719
+ <a name="g-application-new"></a><h3>g_application_new ()</h3>
720
+ <pre class="programlisting"><a class="link" href="GApplication.html" title="GApplication"><span class="returnvalue">GApplication</span></a> * g_application_new (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_id</code></em>,
721
+ <em class="parameter"><code><a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a> flags</code></em>);</pre>
722
+ <p>
723
+ Creates a new <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> instance.
724
+ </p>
725
+ <p>
726
+ This function calls <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#g-type-init"><code class="function">g_type_init()</code></a> for you.
727
+ </p>
728
+ <p>
729
+ The application id must be valid. See <a class="link" href="GApplication.html#g-application-id-is-valid" title="g_application_id_is_valid ()"><code class="function">g_application_id_is_valid()</code></a>.
730
+ </p>
731
+ <div class="variablelist"><table border="0">
732
+ <col align="left" valign="top">
733
+ <tbody>
734
+ <tr>
735
+ <td><p><span class="term"><em class="parameter"><code>application_id</code></em> :</span></p></td>
736
+ <td>the application id</td>
737
+ </tr>
738
+ <tr>
739
+ <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
740
+ <td>the application flags</td>
741
+ </tr>
742
+ <tr>
743
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
744
+ <td>a new <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> instance</td>
745
+ </tr>
746
+ </tbody>
747
+ </table></div>
748
+ </div>
749
+ <hr>
750
+ <div class="refsect2">
751
+ <a name="g-application-get-application-id"></a><h3>g_application_get_application_id ()</h3>
752
+ <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * g_application_get_application_id
753
+ (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
754
+ <p>
755
+ Gets the unique identifier for <em class="parameter"><code>application</code></em>.
756
+ </p>
757
+ <div class="variablelist"><table border="0">
758
+ <col align="left" valign="top">
759
+ <tbody>
760
+ <tr>
761
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
762
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
763
+ </td>
764
+ </tr>
765
+ <tr>
766
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
767
+ <td>the identifier for <em class="parameter"><code>application</code></em>, owned by <em class="parameter"><code>application</code></em>
768
+ </td>
769
+ </tr>
770
+ </tbody>
771
+ </table></div>
772
+ <p class="since">Since 2.28</p>
773
+ </div>
774
+ <hr>
775
+ <div class="refsect2">
776
+ <a name="g-application-set-application-id"></a><h3>g_application_set_application_id ()</h3>
777
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_set_application_id (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
778
+ <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_id</code></em>);</pre>
779
+ <p>
780
+ Sets the unique identifier for <em class="parameter"><code>application</code></em>.
781
+ </p>
782
+ <p>
783
+ The application id can only be modified if <em class="parameter"><code>application</code></em> has not yet
784
+ been registered.
785
+ </p>
786
+ <p>
787
+ The application id must be valid. See <a class="link" href="GApplication.html#g-application-id-is-valid" title="g_application_id_is_valid ()"><code class="function">g_application_id_is_valid()</code></a>.
788
+ </p>
789
+ <div class="variablelist"><table border="0">
790
+ <col align="left" valign="top">
791
+ <tbody>
792
+ <tr>
793
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
794
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
795
+ </td>
796
+ </tr>
797
+ <tr>
798
+ <td><p><span class="term"><em class="parameter"><code>application_id</code></em> :</span></p></td>
799
+ <td>the identifier for <em class="parameter"><code>application</code></em>
800
+ </td>
801
+ </tr>
802
+ </tbody>
803
+ </table></div>
804
+ <p class="since">Since 2.28</p>
805
+ </div>
806
+ <hr>
807
+ <div class="refsect2">
808
+ <a name="g-application-get-inactivity-timeout"></a><h3>g_application_get_inactivity_timeout ()</h3>
809
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> g_application_get_inactivity_timeout
810
+ (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
811
+ <p>
812
+ Gets the current inactivity timeout for the application.
813
+ </p>
814
+ <p>
815
+ This is the amount of time (in milliseconds) after the last call to
816
+ <a class="link" href="GApplication.html#g-application-release" title="g_application_release ()"><code class="function">g_application_release()</code></a> before the application stops running.
817
+ </p>
818
+ <div class="variablelist"><table border="0">
819
+ <col align="left" valign="top">
820
+ <tbody>
821
+ <tr>
822
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
823
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
824
+ </td>
825
+ </tr>
826
+ <tr>
827
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
828
+ <td>the timeout, in milliseconds</td>
829
+ </tr>
830
+ </tbody>
831
+ </table></div>
832
+ <p class="since">Since 2.28</p>
833
+ </div>
834
+ <hr>
835
+ <div class="refsect2">
836
+ <a name="g-application-set-inactivity-timeout"></a><h3>g_application_set_inactivity_timeout ()</h3>
837
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_set_inactivity_timeout
838
+ (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
839
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> inactivity_timeout</code></em>);</pre>
840
+ <p>
841
+ Sets the current inactivity timeout for the application.
842
+ </p>
843
+ <p>
844
+ This is the amount of time (in milliseconds) after the last call to
845
+ <a class="link" href="GApplication.html#g-application-release" title="g_application_release ()"><code class="function">g_application_release()</code></a> before the application stops running.
846
+ </p>
847
+ <p>
848
+ This call has no side effects of its own. The value set here is only
849
+ used for next time <a class="link" href="GApplication.html#g-application-release" title="g_application_release ()"><code class="function">g_application_release()</code></a> drops the use count to
850
+ zero. Any timeouts currently in progress are not impacted.
851
+ </p>
852
+ <div class="variablelist"><table border="0">
853
+ <col align="left" valign="top">
854
+ <tbody>
855
+ <tr>
856
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
857
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
858
+ </td>
859
+ </tr>
860
+ <tr>
861
+ <td><p><span class="term"><em class="parameter"><code>inactivity_timeout</code></em> :</span></p></td>
862
+ <td>the timeout, in milliseconds</td>
863
+ </tr>
864
+ </tbody>
865
+ </table></div>
866
+ <p class="since">Since 2.28</p>
867
+ </div>
868
+ <hr>
869
+ <div class="refsect2">
870
+ <a name="g-application-get-flags"></a><h3>g_application_get_flags ()</h3>
871
+ <pre class="programlisting"><a class="link" href="GApplication.html#GApplicationFlags"><span class="returnvalue">GApplicationFlags</span></a> g_application_get_flags (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
872
+ <p>
873
+ Gets the flags for <em class="parameter"><code>application</code></em>.
874
+ </p>
875
+ <p>
876
+ See <a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a>.
877
+ </p>
878
+ <div class="variablelist"><table border="0">
879
+ <col align="left" valign="top">
880
+ <tbody>
881
+ <tr>
882
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
883
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
884
+ </td>
885
+ </tr>
886
+ <tr>
887
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
888
+ <td>the flags for <em class="parameter"><code>application</code></em>
889
+ </td>
890
+ </tr>
891
+ </tbody>
892
+ </table></div>
893
+ <p class="since">Since 2.28</p>
894
+ </div>
895
+ <hr>
896
+ <div class="refsect2">
897
+ <a name="g-application-set-flags"></a><h3>g_application_set_flags ()</h3>
898
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_set_flags (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
899
+ <em class="parameter"><code><a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a> flags</code></em>);</pre>
900
+ <p>
901
+ Sets the flags for <em class="parameter"><code>application</code></em>.
902
+ </p>
903
+ <p>
904
+ The flags can only be modified if <em class="parameter"><code>application</code></em> has not yet been
905
+ registered.
906
+ </p>
907
+ <p>
908
+ See <a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a>.
909
+ </p>
910
+ <div class="variablelist"><table border="0">
911
+ <col align="left" valign="top">
912
+ <tbody>
913
+ <tr>
914
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
915
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
916
+ </td>
917
+ </tr>
918
+ <tr>
919
+ <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
920
+ <td>the flags for <em class="parameter"><code>application</code></em>
921
+ </td>
922
+ </tr>
923
+ </tbody>
924
+ </table></div>
925
+ <p class="since">Since 2.28</p>
926
+ </div>
927
+ <hr>
928
+ <div class="refsect2">
929
+ <a name="g-application-set-action-group"></a><h3>g_application_set_action_group ()</h3>
930
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_set_action_group (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
931
+ <em class="parameter"><code><a class="link" href="GActionGroup.html" title="GActionGroup"><span class="type">GActionGroup</span></a> *action_group</code></em>);</pre>
932
+ <p>
933
+ Sets or unsets the group of actions associated with the application.
934
+ </p>
935
+ <p>
936
+ These actions are the actions that can be remotely invoked.
937
+ </p>
938
+ <p>
939
+ It is an error to call this function after the application has been
940
+ registered.
941
+ </p>
942
+ <div class="variablelist"><table border="0">
943
+ <col align="left" valign="top">
944
+ <tbody>
945
+ <tr>
946
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
947
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
948
+ </td>
949
+ </tr>
950
+ <tr>
951
+ <td><p><span class="term"><em class="parameter"><code>action_group</code></em> :</span></p></td>
952
+ <td>a <a class="link" href="GActionGroup.html" title="GActionGroup"><span class="type">GActionGroup</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
953
+ </td>
954
+ </tr>
955
+ </tbody>
956
+ </table></div>
957
+ <p class="since">Since 2.28</p>
958
+ </div>
959
+ <hr>
960
+ <div class="refsect2">
961
+ <a name="g-application-get-is-registered"></a><h3>g_application_get_is_registered ()</h3>
962
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_application_get_is_registered (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
963
+ <p>
964
+ Checks if <em class="parameter"><code>application</code></em> is registered.
965
+ </p>
966
+ <p>
967
+ An application is registered if <a class="link" href="GApplication.html#g-application-register" title="g_application_register ()"><code class="function">g_application_register()</code></a> has been
968
+ successfully called.
969
+ </p>
970
+ <div class="variablelist"><table border="0">
971
+ <col align="left" valign="top">
972
+ <tbody>
973
+ <tr>
974
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
975
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
976
+ </td>
977
+ </tr>
978
+ <tr>
979
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
980
+ <td>
981
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>application</code></em> is registered</td>
982
+ </tr>
983
+ </tbody>
984
+ </table></div>
985
+ <p class="since">Since 2.28</p>
986
+ </div>
987
+ <hr>
988
+ <div class="refsect2">
989
+ <a name="g-application-get-is-remote"></a><h3>g_application_get_is_remote ()</h3>
990
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_application_get_is_remote (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
991
+ <p>
992
+ Checks if <em class="parameter"><code>application</code></em> is remote.
993
+ </p>
994
+ <p>
995
+ If <em class="parameter"><code>application</code></em> is remote then it means that another instance of
996
+ application already exists (the 'primary' instance). Calls to
997
+ perform actions on <em class="parameter"><code>application</code></em> will result in the actions being
998
+ performed by the primary instance.
999
+ </p>
1000
+ <p>
1001
+ The value of this property can not be accessed before
1002
+ <a class="link" href="GApplication.html#g-application-register" title="g_application_register ()"><code class="function">g_application_register()</code></a> has been called. See
1003
+ <a class="link" href="GApplication.html#g-application-get-is-registered" title="g_application_get_is_registered ()"><code class="function">g_application_get_is_registered()</code></a>.
1004
+ </p>
1005
+ <div class="variablelist"><table border="0">
1006
+ <col align="left" valign="top">
1007
+ <tbody>
1008
+ <tr>
1009
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1010
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
1011
+ </td>
1012
+ </tr>
1013
+ <tr>
1014
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1015
+ <td>
1016
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>application</code></em> is remote</td>
1017
+ </tr>
1018
+ </tbody>
1019
+ </table></div>
1020
+ <p class="since">Since 2.28</p>
1021
+ </div>
1022
+ <hr>
1023
+ <div class="refsect2">
1024
+ <a name="g-application-register"></a><h3>g_application_register ()</h3>
1025
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_application_register (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
1026
+ <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
1027
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1028
+ <p>
1029
+ Attempts registration of the application.
1030
+ </p>
1031
+ <p>
1032
+ This is the point at which the application discovers if it is the
1033
+ primary instance or merely acting as a remote for an already-existing
1034
+ primary instance. This is implemented by attempting to acquire the
1035
+ application identifier as a uniue bus name on the session bus using
1036
+ GDBus.
1037
+ </p>
1038
+ <p>
1039
+ Due to the internal architecture of GDBus, method calls can be
1040
+ dispatched at any time (even if a main loop is not running). For
1041
+ this reason, you must ensure that any object paths that you wish to
1042
+ register are registered before calling this function.
1043
+ </p>
1044
+ <p>
1045
+ If the application has already been registered then <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is
1046
+ returned with no work performed.
1047
+ </p>
1048
+ <p>
1049
+ The <a class="link" href="GApplication.html#GApplication-startup" title='The "startup" signal'><span class="type">"startup"</span></a> signal is emitted if registration succeeds
1050
+ and <em class="parameter"><code>application</code></em> is the primary instance.
1051
+ </p>
1052
+ <p>
1053
+ In the event of an error (such as <em class="parameter"><code>cancellable</code></em> being cancelled, or a
1054
+ failure to connect to the session bus), <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and <em class="parameter"><code>error</code></em>
1055
+ is set appropriately.
1056
+ </p>
1057
+ <p>
1058
+ Note: the return value of this function is not an indicator that this
1059
+ instance is or is not the primary instance of the application. See
1060
+ <a class="link" href="GApplication.html#g-application-get-is-remote" title="g_application_get_is_remote ()"><code class="function">g_application_get_is_remote()</code></a> for that.
1061
+ </p>
1062
+ <div class="variablelist"><table border="0">
1063
+ <col align="left" valign="top">
1064
+ <tbody>
1065
+ <tr>
1066
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1067
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
1068
+ </td>
1069
+ </tr>
1070
+ <tr>
1071
+ <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1072
+ <td>a <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1073
+ </td>
1074
+ </tr>
1075
+ <tr>
1076
+ <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1077
+ <td>a pointer to a NULL <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1078
+ </td>
1079
+ </tr>
1080
+ <tr>
1081
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1082
+ <td>
1083
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if registration succeeded</td>
1084
+ </tr>
1085
+ </tbody>
1086
+ </table></div>
1087
+ <p class="since">Since 2.28</p>
1088
+ </div>
1089
+ <hr>
1090
+ <div class="refsect2">
1091
+ <a name="g-application-hold"></a><h3>g_application_hold ()</h3>
1092
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_hold (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
1093
+ <p>
1094
+ Increases the use count of <em class="parameter"><code>application</code></em>.
1095
+ </p>
1096
+ <p>
1097
+ Use this function to indicate that the application has a reason to
1098
+ continue to run. For example, <a class="link" href="GApplication.html#g-application-hold" title="g_application_hold ()"><code class="function">g_application_hold()</code></a> is called by GTK+
1099
+ when a toplevel window is on the screen.
1100
+ </p>
1101
+ <p>
1102
+ To cancel the hold, call <a class="link" href="GApplication.html#g-application-release" title="g_application_release ()"><code class="function">g_application_release()</code></a>.
1103
+ </p>
1104
+ <div class="variablelist"><table border="0">
1105
+ <col align="left" valign="top">
1106
+ <tbody><tr>
1107
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1108
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
1109
+ </td>
1110
+ </tr></tbody>
1111
+ </table></div>
1112
+ </div>
1113
+ <hr>
1114
+ <div class="refsect2">
1115
+ <a name="g-application-release"></a><h3>g_application_release ()</h3>
1116
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_release (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
1117
+ <p>
1118
+ Decrease the use count of <em class="parameter"><code>application</code></em>.
1119
+ </p>
1120
+ <p>
1121
+ When the use count reaches zero, the application will stop running.
1122
+ </p>
1123
+ <p>
1124
+ Never call this function except to cancel the effect of a previous
1125
+ call to <a class="link" href="GApplication.html#g-application-hold" title="g_application_hold ()"><code class="function">g_application_hold()</code></a>.
1126
+ </p>
1127
+ <div class="variablelist"><table border="0">
1128
+ <col align="left" valign="top">
1129
+ <tbody><tr>
1130
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1131
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
1132
+ </td>
1133
+ </tr></tbody>
1134
+ </table></div>
1135
+ </div>
1136
+ <hr>
1137
+ <div class="refsect2">
1138
+ <a name="g-application-activate"></a><h3>g_application_activate ()</h3>
1139
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_activate (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>);</pre>
1140
+ <p>
1141
+ Activates the application.
1142
+ </p>
1143
+ <p>
1144
+ In essence, this results in the <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>::<code class="function">activate()</code> signal being
1145
+ emitted in the primary instance.
1146
+ </p>
1147
+ <p>
1148
+ The application must be registered before calling this function.
1149
+ </p>
1150
+ <div class="variablelist"><table border="0">
1151
+ <col align="left" valign="top">
1152
+ <tbody><tr>
1153
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1154
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
1155
+ </td>
1156
+ </tr></tbody>
1157
+ </table></div>
1158
+ <p class="since">Since 2.28</p>
1159
+ </div>
1160
+ <hr>
1161
+ <div class="refsect2">
1162
+ <a name="g-application-open"></a><h3>g_application_open ()</h3>
1163
+ <pre class="programlisting"><span class="returnvalue">void</span> g_application_open (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
1164
+ <em class="parameter"><code><a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> **files</code></em>,
1165
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_files</code></em>,
1166
+ <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *hint</code></em>);</pre>
1167
+ <p>
1168
+ Opens the given files.
1169
+ </p>
1170
+ <p>
1171
+ In essence, this results in the <a class="link" href="GApplication.html#GApplication-open" title='The "open" signal'><span class="type">"open"</span></a> signal being emitted
1172
+ in the primary instance.
1173
+ </p>
1174
+ <p>
1175
+ <em class="parameter"><code>n_files</code></em> must be greater than zero.
1176
+ </p>
1177
+ <p>
1178
+ <em class="parameter"><code>hint</code></em> is simply passed through to the ::open signal. It is
1179
+ intended to be used by applications that have multiple modes for
1180
+ opening files (eg: "view" vs "edit", etc). Unless you have a need
1181
+ for this functionality, you should use "".
1182
+ </p>
1183
+ <p>
1184
+ The application must be registered before calling this function
1185
+ and it must have the <a class="link" href="GApplication.html#G-APPLICATION-HANDLES-OPEN:CAPS"><code class="literal">G_APPLICATION_HANDLES_OPEN</code></a> flag set.
1186
+ </p>
1187
+ <div class="variablelist"><table border="0">
1188
+ <col align="left" valign="top">
1189
+ <tbody>
1190
+ <tr>
1191
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1192
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
1193
+ </td>
1194
+ </tr>
1195
+ <tr>
1196
+ <td><p><span class="term"><em class="parameter"><code>files</code></em> :</span></p></td>
1197
+ <td>an array of <a href="GFile.html"><span class="type">GFiles</span></a> to open. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_files]</span>
1198
+ </td>
1199
+ </tr>
1200
+ <tr>
1201
+ <td><p><span class="term"><em class="parameter"><code>n_files</code></em> :</span></p></td>
1202
+ <td>the length of the <em class="parameter"><code>files</code></em> array</td>
1203
+ </tr>
1204
+ <tr>
1205
+ <td><p><span class="term"><em class="parameter"><code>hint</code></em> :</span></p></td>
1206
+ <td>a hint (or ""), but never <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1207
+ </td>
1208
+ </tr>
1209
+ </tbody>
1210
+ </table></div>
1211
+ <p class="since">Since 2.28</p>
1212
+ </div>
1213
+ <hr>
1214
+ <div class="refsect2">
1215
+ <a name="g-application-run"></a><h3>g_application_run ()</h3>
1216
+ <pre class="programlisting"><span class="returnvalue">int</span> g_application_run (<em class="parameter"><code><a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application</code></em>,
1217
+ <em class="parameter"><code><span class="type">int</span> argc</code></em>,
1218
+ <em class="parameter"><code><span class="type">char</span> **argv</code></em>);</pre>
1219
+ <p>
1220
+ Runs the application.
1221
+ </p>
1222
+ <p>
1223
+ This function is intended to be run from <code class="function">main()</code> and its return value
1224
+ is intended to be returned by <code class="function">main()</code>.
1225
+ </p>
1226
+ <p>
1227
+ First, the <code class="function">local_command_line()</code> virtual function is invoked. This
1228
+ function always runs on the local instance. If that function returns
1229
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> then the application is registered and the <a class="link" href="GApplication.html#GApplication-command-line" title='The "command-line" signal'><span class="type">"command-line"</span></a>
1230
+ signal is emitted in the primary instance (which may or may not be
1231
+ this instance).
1232
+ </p>
1233
+ <p>
1234
+ If the application has the <a class="link" href="GApplication.html#G-APPLICATION-HANDLES-COMMAND-LINE:CAPS"><code class="literal">G_APPLICATION_HANDLES_COMMAND_LINE</code></a>
1235
+ flag set then the default implementation of <code class="function">local_command_line()</code>
1236
+ always returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> immediately, resulting in the commandline
1237
+ always being handled in the primary instance.
1238
+ </p>
1239
+ <p>
1240
+ Otherwise, the default implementation of <code class="function">local_command_line()</code> tries
1241
+ to do a couple of things that are probably reasonable for most
1242
+ applications. First, <a class="link" href="GApplication.html#g-application-register" title="g_application_register ()"><code class="function">g_application_register()</code></a> is called to attempt
1243
+ to register the application. If that works, then the command line
1244
+ arguments are inspected. If no commandline arguments are given, then
1245
+ <a class="link" href="GApplication.html#g-application-activate" title="g_application_activate ()"><code class="function">g_application_activate()</code></a> is called. If commandline arguments are
1246
+ given and the <a class="link" href="GApplication.html#G-APPLICATION-HANDLES-OPEN:CAPS"><code class="literal">G_APPLICATION_HANDLES_OPEN</code></a> flag is set then they
1247
+ are assumed to be filenames and <a class="link" href="GApplication.html#g-application-open" title="g_application_open ()"><code class="function">g_application_open()</code></a> is called.
1248
+ </p>
1249
+ <p>
1250
+ If you are interested in doing more complicated local handling of the
1251
+ commandline then you should implement your own <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> subclass
1252
+ and override <code class="function">local_command_line()</code>. See
1253
+ <a class="xref" href="GApplicationCommandLine.html#gapplication-example-cmdline2" title="Example 16. Complicated commandline handling">Example 16, “Complicated commandline handling”</a> for an example.
1254
+ </p>
1255
+ <p>
1256
+ If, after the above is done, the use count of the application is zero
1257
+ then the exit status is returned immediately. If the use count is
1258
+ non-zero then the mainloop is run until the use count falls to zero,
1259
+ at which point 0 is returned.
1260
+ </p>
1261
+ <p>
1262
+ If the <a class="link" href="GApplication.html#G-APPLICATION-IS-SERVICE:CAPS"><code class="literal">G_APPLICATION_IS_SERVICE</code></a> flag is set, then the exiting at
1263
+ use count of zero is delayed for a while (ie: the instance stays
1264
+ around to provide its <span class="emphasis"><em>service</em></span> to others).
1265
+ </p>
1266
+ <div class="variablelist"><table border="0">
1267
+ <col align="left" valign="top">
1268
+ <tbody>
1269
+ <tr>
1270
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1271
+ <td>a <a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a>
1272
+ </td>
1273
+ </tr>
1274
+ <tr>
1275
+ <td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
1276
+ <td>the argc from <code class="function">main()</code>
1277
+ </td>
1278
+ </tr>
1279
+ <tr>
1280
+ <td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
1281
+ <td>the argv from <code class="function">main()</code>. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=argc]</span>
1282
+ </td>
1283
+ </tr>
1284
+ <tr>
1285
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1286
+ <td>the exit status</td>
1287
+ </tr>
1288
+ </tbody>
1289
+ </table></div>
1290
+ <p class="since">Since 2.28</p>
1291
+ </div>
1292
+ </div>
1293
+ <div class="refsect1">
1294
+ <a name="GApplication.property-details"></a><h2>Property Details</h2>
1295
+ <div class="refsect2">
1296
+ <a name="GApplication--action-group"></a><h3>The <code class="literal">"action-group"</code> property</h3>
1297
+ <pre class="programlisting"> "action-group" <a class="link" href="GActionGroup.html" title="GActionGroup"><span class="type">GActionGroup</span></a>* : Write</pre>
1298
+ <p>The group of actions that the application exports.</p>
1299
+ </div>
1300
+ <hr>
1301
+ <div class="refsect2">
1302
+ <a name="GApplication--application-id"></a><h3>The <code class="literal">"application-id"</code> property</h3>
1303
+ <pre class="programlisting"> "application-id" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct</pre>
1304
+ <p>The unique identifier for the application.</p>
1305
+ <p>Default value: NULL</p>
1306
+ </div>
1307
+ <hr>
1308
+ <div class="refsect2">
1309
+ <a name="GApplication--flags"></a><h3>The <code class="literal">"flags"</code> property</h3>
1310
+ <pre class="programlisting"> "flags" <a class="link" href="GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a> : Read / Write</pre>
1311
+ <p>Flags specifying the behaviour of the application.</p>
1312
+ </div>
1313
+ <hr>
1314
+ <div class="refsect2">
1315
+ <a name="GApplication--inactivity-timeout"></a><h3>The <code class="literal">"inactivity-timeout"</code> property</h3>
1316
+ <pre class="programlisting"> "inactivity-timeout" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write</pre>
1317
+ <p>Iime (ms) to stay alive after becoming idle.</p>
1318
+ <p>Default value: 0</p>
1319
+ </div>
1320
+ <hr>
1321
+ <div class="refsect2">
1322
+ <a name="GApplication--is-registered"></a><h3>The <code class="literal">"is-registered"</code> property</h3>
1323
+ <pre class="programlisting"> "is-registered" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read</pre>
1324
+ <p>If g_application_register() has been called.</p>
1325
+ <p>Default value: FALSE</p>
1326
+ </div>
1327
+ <hr>
1328
+ <div class="refsect2">
1329
+ <a name="GApplication--is-remote"></a><h3>The <code class="literal">"is-remote"</code> property</h3>
1330
+ <pre class="programlisting"> "is-remote" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read</pre>
1331
+ <p>If this application instance is remote.</p>
1332
+ <p>Default value: FALSE</p>
1333
+ </div>
1334
+ </div>
1335
+ <div class="refsect1">
1336
+ <a name="GApplication.signal-details"></a><h2>Signal Details</h2>
1337
+ <div class="refsect2">
1338
+ <a name="GApplication-activate"></a><h3>The <code class="literal">"activate"</code> signal</h3>
1339
+ <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application,
1340
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1341
+ <p>
1342
+ The ::activate signal is emitted on the primary instance when an
1343
+ activation occurs. See <a class="link" href="GApplication.html#g-application-activate" title="g_application_activate ()"><code class="function">g_application_activate()</code></a>.
1344
+ </p>
1345
+ <div class="variablelist"><table border="0">
1346
+ <col align="left" valign="top">
1347
+ <tbody>
1348
+ <tr>
1349
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1350
+ <td>the application</td>
1351
+ </tr>
1352
+ <tr>
1353
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1354
+ <td>user data set when the signal handler was connected.</td>
1355
+ </tr>
1356
+ </tbody>
1357
+ </table></div>
1358
+ </div>
1359
+ <hr>
1360
+ <div class="refsect2">
1361
+ <a name="GApplication-command-line"></a><h3>The <code class="literal">"command-line"</code> signal</h3>
1362
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> user_function (<a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application,
1363
+ <a class="link" href="GApplicationCommandLine.html" title="GApplicationCommandLine"><span class="type">GApplicationCommandLine</span></a> *command_line,
1364
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1365
+ <p>
1366
+ The ::command-line signal is emitted on the primary instance when
1367
+ a commandline is not handled locally. See <a class="link" href="GApplication.html#g-application-run" title="g_application_run ()"><code class="function">g_application_run()</code></a> for
1368
+ more information.
1369
+ </p>
1370
+ <div class="variablelist"><table border="0">
1371
+ <col align="left" valign="top">
1372
+ <tbody>
1373
+ <tr>
1374
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1375
+ <td>the application</td>
1376
+ </tr>
1377
+ <tr>
1378
+ <td><p><span class="term"><em class="parameter"><code>command_line</code></em> :</span></p></td>
1379
+ <td>a <a class="link" href="GApplicationCommandLine.html" title="GApplicationCommandLine"><span class="type">GApplicationCommandLine</span></a> representing the
1380
+ passed commandline</td>
1381
+ </tr>
1382
+ <tr>
1383
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1384
+ <td>user data set when the signal handler was connected.</td>
1385
+ </tr>
1386
+ </tbody>
1387
+ </table></div>
1388
+ </div>
1389
+ <hr>
1390
+ <div class="refsect2">
1391
+ <a name="GApplication-open"></a><h3>The <code class="literal">"open"</code> signal</h3>
1392
+ <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application,
1393
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> files,
1394
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_files,
1395
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *hint,
1396
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1397
+ <p>
1398
+ The ::open signal is emitted on the primary instance when there are
1399
+ files to open. See <a class="link" href="GApplication.html#g-application-open" title="g_application_open ()"><code class="function">g_application_open()</code></a> for more information.
1400
+ </p>
1401
+ <div class="variablelist"><table border="0">
1402
+ <col align="left" valign="top">
1403
+ <tbody>
1404
+ <tr>
1405
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1406
+ <td>the application</td>
1407
+ </tr>
1408
+ <tr>
1409
+ <td><p><span class="term"><em class="parameter"><code>files</code></em> :</span></p></td>
1410
+ <td>an array of <a href="GFile.html"><span class="type">GFiles</span></a>. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_files][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GFile]</span>
1411
+ </td>
1412
+ </tr>
1413
+ <tr>
1414
+ <td><p><span class="term"><em class="parameter"><code>n_files</code></em> :</span></p></td>
1415
+ <td>the length of <em class="parameter"><code>files</code></em>
1416
+ </td>
1417
+ </tr>
1418
+ <tr>
1419
+ <td><p><span class="term"><em class="parameter"><code>hint</code></em> :</span></p></td>
1420
+ <td>a hint provided by the calling instance</td>
1421
+ </tr>
1422
+ <tr>
1423
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1424
+ <td>user data set when the signal handler was connected.</td>
1425
+ </tr>
1426
+ </tbody>
1427
+ </table></div>
1428
+ </div>
1429
+ <hr>
1430
+ <div class="refsect2">
1431
+ <a name="GApplication-startup"></a><h3>The <code class="literal">"startup"</code> signal</h3>
1432
+ <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GApplication.html" title="GApplication"><span class="type">GApplication</span></a> *application,
1433
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1434
+ <p>
1435
+ The ::startup signal is emitted on the primary instance immediately
1436
+ after registration. See <code class="function">g_activation_register()</code>.
1437
+ </p>
1438
+ <div class="variablelist"><table border="0">
1439
+ <col align="left" valign="top">
1440
+ <tbody>
1441
+ <tr>
1442
+ <td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
1443
+ <td>the application</td>
1444
+ </tr>
1445
+ <tr>
1446
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1447
+ <td>user data set when the signal handler was connected.</td>
1448
+ </tr>
1449
+ </tbody>
1450
+ </table></div>
1451
+ </div>
1452
+ </div>
1453
+ </div>
1454
+ <div class="footer">
1455
+ <hr>
1456
+ Generated by GTK-Doc V1.16.1</div>
1457
+ </body>
1458
+ </html>