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.
- data/ChangeLog +46 -0
- data/Rakefile +1 -0
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_iochannel.c +15 -6
- data/ext/glib2/rbgobj_signal.c +1 -1
- data/ext/glib2/rbgobject.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +3 -2
- data/lib/mkmf-gnome2.rb +47 -23
- data/test/glib-test-init.rb +1 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +3 -2
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/include/glib-2.0/gio/gaction.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gactiongroup.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gapplication.h +165 -0
- data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +15 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gio.h +14 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +158 -2
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +12 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +1 -1
- data/vendor/local/include/glib-2.0/gio/giostream.h +11 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +48 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +98 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +9 -2
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +6 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +87 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +7 -0
- data/vendor/local/include/glib-2.0/gio/gtcpwrapperconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +92 -0
- data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +83 -0
- data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +72 -0
- data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +136 -0
- data/vendor/local/include/glib-2.0/gio/gtlsserverconnection.h +61 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +27 -6
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +80 -5
- data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gsequence.h +8 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +37 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +1 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +22 -16
- data/vendor/local/include/glib-2.0/glib/gutils.h +5 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +35 -11
- data/vendor/local/include/glib-2.0/gobject/gobject.h +15 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +4 -2
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
- data/vendor/local/lib/gio-2.0.def +142 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +21 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +3 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/manifest/{glib-dev_2.26.1-1_win32.mft → glib-dev_2.28.1-1_win32.mft} +55 -19
- data/vendor/local/manifest/{glib_2.26.1-1_win32.mft → glib_2.28.1-1_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-2.0.m4 +4 -4
- data/vendor/local/share/doc/{glib-2.26.1 → glib-2.28.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.1 → glib-dev-2.28.1}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +72 -21
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +21 -8
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +469 -0
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +754 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +296 -249
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +1458 -0
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +815 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +61 -97
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +31 -38
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +52 -68
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +38 -50
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +120 -77
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +26 -34
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -51
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +26 -35
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +415 -650
- data/vendor/local/share/gtk-doc/html/gio/{gio-GDBusError.html → GDBusError.html} +118 -147
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +204 -347
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +66 -111
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +210 -309
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +68 -87
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +190 -232
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +89 -118
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +196 -270
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +56 -24
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +1090 -1443
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +13 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +66 -86
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +31 -45
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +19 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +466 -602
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +32 -40
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +60 -59
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +32 -47
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -45
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +32 -38
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +184 -52
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +45 -54
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +96 -125
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +21 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +49 -71
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +102 -134
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +43 -54
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +21 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +34 -41
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +223 -294
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +127 -153
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +35 -46
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +37 -46
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +138 -174
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +46 -68
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +340 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +89 -32
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +42 -56
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +59 -34
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +82 -95
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +58 -72
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +597 -357
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +125 -75
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +200 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +232 -167
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +15 -16
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +291 -406
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +39 -45
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +301 -223
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +41 -44
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +41 -49
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +22 -32
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +88 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +26 -32
- data/vendor/local/share/gtk-doc/html/gio/{gio-GSrvTarget.html → GSrvTarget.html} +74 -77
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +21 -22
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +156 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +29 -35
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +260 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +396 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +869 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +158 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +32 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +28 -34
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +44 -54
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +36 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +59 -67
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +49 -57
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +142 -187
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +99 -132
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +33 -32
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +22 -24
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +43 -13
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +10 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +36 -28
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +744 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +915 -107
- data/vendor/local/share/gtk-doc/html/gio/application.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -24
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +54 -36
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +188 -41
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +19 -108
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +16 -179
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch26s02.html → ch28s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s03.html → ch28s03.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s04.html → ch28s04.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s05.html → ch28s05.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s06.html → ch28s06.html} +17 -15
- data/vendor/local/share/gtk-doc/html/gio/{ch26s07.html → ch28s07.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch27s04.html → ch29s04.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gio/{ch27s05.html → ch29s05.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/{ch27s06.html → ch29s06.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +27 -14
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +141 -248
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +28 -40
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +29 -112
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +45 -57
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +58 -68
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +16 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +18 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +82 -76
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +34 -28
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +25 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +87 -113
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +287 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +119 -151
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +62 -95
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +66 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +312 -91
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +386 -133
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +162 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +7 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +88 -36
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +506 -95
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/networking.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +68 -17
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/settings.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +9 -3
- data/vendor/local/share/gtk-doc/html/gio/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gio/tls.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/utils.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +25 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +15 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +9 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +201 -89
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +144 -210
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +97 -136
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +40 -58
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +99 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +104 -155
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +42 -71
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +40 -43
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +224 -314
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +104 -142
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +193 -308
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +51 -76
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +170 -307
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +154 -198
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +45 -67
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +60 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +390 -428
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +265 -333
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +306 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +60 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +122 -152
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +241 -571
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +233 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +310 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +739 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +136 -143
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +22 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +210 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +294 -355
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +27 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +102 -95
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +402 -486
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +308 -442
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +75 -116
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +229 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +121 -187
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +23 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +80 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +46 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +63 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +121 -115
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +304 -327
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +307 -366
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +39 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +230 -343
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +121 -167
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +31 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +73 -113
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +75 -106
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +229 -184
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +31 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +247 -286
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +281 -283
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +83 -337
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +65 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +36 -42
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +408 -621
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +253 -322
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +161 -252
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +677 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +88 -111
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +378 -475
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +27 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +39 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +19 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +57 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +413 -534
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +117 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +38 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +60 -114
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +38 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +6 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +82 -82
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +144 -103
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +170 -105
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +48 -43
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +660 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +67 -2
- data/vendor/local/share/gtk-doc/html/glib/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/glib/tools.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +72 -90
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +79 -108
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +67 -85
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +63 -9
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +65 -53
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -11
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +18 -18
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +16 -16
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +40 -54
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +405 -512
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +170 -213
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +242 -292
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +91 -127
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +407 -573
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +951 -1268
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +383 -441
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +648 -829
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +82 -95
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +31 -49
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +15 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +13 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
- data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
- data/vendor/local/share/man/man1/gobject-query.1 +2 -2
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.log → glib_2.28.1-1_win32.log} +690 -773
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.sh → glib_2.28.1-1_win32.sh} +2 -4
- metadata +78 -146
- data/ext/glib2/Makefile +0 -169
- data/ext/glib2/glib-enum-types.c +0 -1065
- data/ext/glib2/glib-enum-types.h +0 -144
- data/ext/glib2/ruby-glib2.pc +0 -3
- data/test-unit/COPYING +0 -56
- data/test-unit/GPL +0 -340
- data/test-unit/History.txt +0 -279
- data/test-unit/Manifest.txt +0 -110
- data/test-unit/PSFL +0 -271
- data/test-unit/README.txt +0 -75
- data/test-unit/Rakefile +0 -53
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +0 -153
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +0 -469
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +0 -82
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +0 -393
- data/test-unit/html/index.html +0 -285
- data/test-unit/html/index.html.ja +0 -299
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +0 -636
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +0 -483
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +0 -339
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +0 -559
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit.rb +0 -328
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1792
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -415
- data/test-unit/lib/test/unit/collector.rb +0 -38
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -187
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/collector/xml.rb +0 -250
- data/test-unit/lib/test/unit/color-scheme.rb +0 -106
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -740
- data/test-unit/lib/test/unit/error.rb +0 -131
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/runner/xml.rb +0 -15
- data/test-unit/lib/test/unit/testcase.rb +0 -515
- data/test-unit/lib/test/unit/testresult.rb +0 -125
- data/test-unit/lib/test/unit/testsuite.rb +0 -134
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -467
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -86
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/output.rb +0 -31
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -22
- data/test-unit/test/test-assertions.rb +0 -1849
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -69
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -324
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -569
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -137
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_tap.rb +0 -33
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test-output.rb +0 -11
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
9
|
<link rel="prev" href="glib-Shell-related-Utilities.html" title="Shell-related Utilities">
|
10
10
|
<link rel="next" href="glib-Glob-style-pattern-matching.html" title="Glob-style pattern matching">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#glib-Commandline-option-parser.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="glib-Commandline-option-parser"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td valign="top" align="right"></td>
|
37
37
|
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv"
|
38
|
+
<div class="refsynopsisdiv">
|
39
39
|
<a name="glib-Commandline-option-parser.synopsis"></a><h2>Synopsis</h2>
|
40
40
|
<pre class="synopsis">
|
41
41
|
#include <glib.h>
|
@@ -45,7 +45,7 @@ enum <a class="link" href="glib-Commandline-option-parser.html#GO
|
|
45
45
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="glib-Commandline-option-parser.html#GOptionArgFunc" title="GOptionArgFunc ()">*GOptionArgFunc</a>) (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *option_name</code></em>,
|
46
46
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *value</code></em>,
|
47
47
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
48
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
48
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
49
49
|
<a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext">GOptionContext</a>;
|
50
50
|
<a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="returnvalue">GOptionContext</span></a> * <a class="link" href="glib-Commandline-option-parser.html#g-option-context-new" title="g_option_context_new ()">g_option_context_new</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *parameter_string</code></em>);
|
51
51
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-context-set-summary" title="g_option_context_set_summary ()">g_option_context_set_summary</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
@@ -67,7 +67,7 @@ const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span cla
|
|
67
67
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Commandline-option-parser.html#g-option-context-parse" title="g_option_context_parse ()">g_option_context_parse</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
68
68
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *argc</code></em>,
|
69
69
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> ***argv</code></em>,
|
70
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
70
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
71
71
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-context-set-help-enabled" title="g_option_context_set_help_enabled ()">g_option_context_set_help_enabled</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
72
72
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> help_enabled</code></em>);
|
73
73
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Commandline-option-parser.html#g-option-context-get-help-enabled" title="g_option_context_get_help_enabled ()">g_option_context_get_help_enabled</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>);
|
@@ -82,9 +82,9 @@ const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span cla
|
|
82
82
|
enum <a class="link" href="glib-Commandline-option-parser.html#GOptionArg" title="enum GOptionArg">GOptionArg</a>;
|
83
83
|
enum <a class="link" href="glib-Commandline-option-parser.html#GOptionFlags" title="enum GOptionFlags">GOptionFlags</a>;
|
84
84
|
#define <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-REMAINING:CAPS" title="G_OPTION_REMAINING">G_OPTION_REMAINING</a>
|
85
|
-
|
85
|
+
struct <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry">GOptionEntry</a>;
|
86
86
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-context-add-main-entries" title="g_option_context_add_main_entries ()">g_option_context_add_main_entries</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
87
|
-
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>,
|
87
|
+
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>,
|
88
88
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *translation_domain</code></em>);
|
89
89
|
<a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup">GOptionGroup</a>;
|
90
90
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-context-add-group" title="g_option_context_add_group ()">g_option_context_add_group</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
@@ -99,18 +99,18 @@ enum <a class="link" href="glib-Commandline-option-parser.html#GO
|
|
99
99
|
<em class="parameter"><code><a class="link" href="glib-Datasets.html#GDestroyNotify" title="GDestroyNotify ()"><span class="type">GDestroyNotify</span></a> destroy</code></em>);
|
100
100
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-group-free" title="g_option_group_free ()">g_option_group_free</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>);
|
101
101
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-group-add-entries" title="g_option_group_add_entries ()">g_option_group_add_entries</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
102
|
-
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>);
|
102
|
+
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>);
|
103
103
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="glib-Commandline-option-parser.html#GOptionParseFunc" title="GOptionParseFunc ()">*GOptionParseFunc</a>) (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
104
104
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
105
105
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
106
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
106
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
107
107
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-group-set-parse-hooks" title="g_option_group_set_parse_hooks ()">g_option_group_set_parse_hooks</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
108
108
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionParseFunc" title="GOptionParseFunc ()"><span class="type">GOptionParseFunc</span></a> pre_parse_func</code></em>,
|
109
109
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionParseFunc" title="GOptionParseFunc ()"><span class="type">GOptionParseFunc</span></a> post_parse_func</code></em>);
|
110
110
|
<span class="returnvalue">void</span> (<a class="link" href="glib-Commandline-option-parser.html#GOptionErrorFunc" title="GOptionErrorFunc ()">*GOptionErrorFunc</a>) (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
111
111
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
112
112
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
113
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
113
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
114
114
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-group-set-error-hook" title="g_option_group_set_error_hook ()">g_option_group_set_error_hook</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
115
115
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionErrorFunc" title="GOptionErrorFunc ()"><span class="type">GOptionErrorFunc</span></a> error_func</code></em>);
|
116
116
|
<span class="returnvalue">void</span> <a class="link" href="glib-Commandline-option-parser.html#g-option-group-set-translate-func" title="g_option_group_set_translate_func ()">g_option_group_set_translate_func</a> (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
@@ -122,7 +122,7 @@ enum <a class="link" href="glib-Commandline-option-parser.html#GO
|
|
122
122
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *domain</code></em>);
|
123
123
|
</pre>
|
124
124
|
</div>
|
125
|
-
<div class="refsect1"
|
125
|
+
<div class="refsect1">
|
126
126
|
<a name="glib-Commandline-option-parser.description"></a><h2>Description</h2>
|
127
127
|
<p>
|
128
128
|
The GOption commandline parser is intended to be a simpler replacement
|
@@ -199,7 +199,7 @@ GOption groups options in <a class="link" href="glib-Commandline-option-parser.h
|
|
199
199
|
incorporate options from multiple sources. The intended use for this is
|
200
200
|
to let applications collect option groups from the libraries it uses,
|
201
201
|
add them to their <a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a>, and parse all options by a single call
|
202
|
-
to <a class="link" href="glib-Commandline-option-parser.html#g-option-context-parse" title="g_option_context_parse ()"><code class="function">g_option_context_parse()</code></a>. See <a href="http://library.gnome.org/devel/gtk/
|
202
|
+
to <a class="link" href="glib-Commandline-option-parser.html#g-option-context-parse" title="g_option_context_parse ()"><code class="function">g_option_context_parse()</code></a>. See <a href="http://library.gnome.org/devel/gtk/2.24/gtk3-General.html#gtk-get-option-group"><code class="function">gtk_get_option_group()</code></a> for an example.
|
203
203
|
</p>
|
204
204
|
<p>
|
205
205
|
If an option is declared to be of type string or filename, GOption takes
|
@@ -276,7 +276,7 @@ commandline above and produce the example help output.
|
|
276
276
|
|
277
277
|
<span class="normal"> context </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-Commandline-option-parser.html#g-option-context-new">g_option_context_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"- test tree model performance"</span><span class="symbol">);</span>
|
278
278
|
<span class="normal"> </span><span class="function"><a href="glib-Commandline-option-parser.html#g-option-context-add-main-entries">g_option_context_add_main_entries</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> entries</span><span class="symbol">,</span><span class="normal"> GETTEXT_PACKAGE</span><span class="symbol">);</span>
|
279
|
-
<span class="normal"> </span><span class="function"><a href="glib-Commandline-option-parser.html#g-option-context-add-group">g_option_context_add_group</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gtk/
|
279
|
+
<span class="normal"> </span><span class="function"><a href="glib-Commandline-option-parser.html#g-option-context-add-group">g_option_context_add_group</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gtk/2.24/gtk3-General.html#gtk-get-option-group">gtk_get_option_group</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">));</span>
|
280
280
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="function"><a href="glib-Commandline-option-parser.html#g-option-context-parse">g_option_context_parse</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argv</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">))</span>
|
281
281
|
<span class="normal"> </span><span class="cbracket">{</span>
|
282
282
|
<span class="normal"> </span><span class="function"><a href="glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"option parsing failed: %s</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
@@ -294,9 +294,9 @@ commandline above and produce the example help output.
|
|
294
294
|
<p>
|
295
295
|
</p>
|
296
296
|
</div>
|
297
|
-
<div class="refsect1"
|
297
|
+
<div class="refsect1">
|
298
298
|
<a name="glib-Commandline-option-parser.details"></a><h2>Details</h2>
|
299
|
-
<div class="refsect2"
|
299
|
+
<div class="refsect2">
|
300
300
|
<a name="GOptionError"></a><h3>enum GOptionError</h3>
|
301
301
|
<pre class="programlisting">typedef enum
|
302
302
|
{
|
@@ -332,23 +332,23 @@ Error codes returned by option parsing.
|
|
332
332
|
</table></div>
|
333
333
|
</div>
|
334
334
|
<hr>
|
335
|
-
<div class="refsect2"
|
335
|
+
<div class="refsect2">
|
336
336
|
<a name="G-OPTION-ERROR:CAPS"></a><h3>G_OPTION_ERROR</h3>
|
337
337
|
<pre class="programlisting">#define G_OPTION_ERROR (g_option_error_quark ())
|
338
338
|
</pre>
|
339
339
|
<p>
|
340
340
|
Error domain for option parsing. Errors in this domain will
|
341
|
-
be from the <a class="link" href="glib-Commandline-option-parser.html#GOptionError" title="enum GOptionError"><span class="type">GOptionError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> for information on
|
341
|
+
be from the <a class="link" href="glib-Commandline-option-parser.html#GOptionError" title="enum GOptionError"><span class="type">GOptionError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> for information on
|
342
342
|
error domains.
|
343
343
|
</p>
|
344
344
|
</div>
|
345
345
|
<hr>
|
346
|
-
<div class="refsect2"
|
346
|
+
<div class="refsect2">
|
347
347
|
<a name="GOptionArgFunc"></a><h3>GOptionArgFunc ()</h3>
|
348
348
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (*GOptionArgFunc) (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *option_name</code></em>,
|
349
349
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *value</code></em>,
|
350
350
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
351
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
351
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
352
352
|
<p>
|
353
353
|
The type of function to be passed as callback for <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-CALLBACK:CAPS"><code class="literal">G_OPTION_ARG_CALLBACK</code></a>
|
354
354
|
options.
|
@@ -358,39 +358,37 @@ options.
|
|
358
358
|
<tbody>
|
359
359
|
<tr>
|
360
360
|
<td><p><span class="term"><em class="parameter"><code>option_name</code></em> :</span></p></td>
|
361
|
-
<td>The name of the option being parsed. This will be either a
|
362
|
-
|
363
|
-
|
364
|
-
</td>
|
361
|
+
<td>The name of the option being parsed. This will be either a
|
362
|
+
single dash followed by a single letter (for a short name) or two dashes
|
363
|
+
followed by a long option name.</td>
|
365
364
|
</tr>
|
366
365
|
<tr>
|
367
366
|
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
368
|
-
<td>The value to be parsed
|
369
|
-
</td>
|
367
|
+
<td>The value to be parsed.</td>
|
370
368
|
</tr>
|
371
369
|
<tr>
|
372
370
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
373
371
|
<td>User data added to the <a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> containing the option when it
|
374
|
-
|
372
|
+
was created with <a class="link" href="glib-Commandline-option-parser.html#g-option-group-new" title="g_option_group_new ()"><code class="function">g_option_group_new()</code></a>
|
375
373
|
</td>
|
376
374
|
</tr>
|
377
375
|
<tr>
|
378
376
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
379
377
|
<td>A return location for errors. The error code <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ERROR-FAILED:CAPS"><code class="literal">G_OPTION_ERROR_FAILED</code></a>
|
380
|
-
|
381
|
-
</td>
|
378
|
+
is intended to be used for errors in <a class="link" href="glib-Commandline-option-parser.html#GOptionArgFunc" title="GOptionArgFunc ()"><span class="type">GOptionArgFunc</span></a> callbacks.</td>
|
382
379
|
</tr>
|
383
380
|
<tr>
|
384
381
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
385
|
-
<td>
|
386
|
-
|
382
|
+
<td>
|
383
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the option was successfully parsed, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if an error
|
384
|
+
occurred, in which case <em class="parameter"><code>error</code></em> should be set with <a class="link" href="glib-Error-Reporting.html#g-set-error" title="g_set_error ()"><code class="function">g_set_error()</code></a>
|
387
385
|
</td>
|
388
386
|
</tr>
|
389
387
|
</tbody>
|
390
388
|
</table></div>
|
391
389
|
</div>
|
392
390
|
<hr>
|
393
|
-
<div class="refsect2"
|
391
|
+
<div class="refsect2">
|
394
392
|
<a name="GOptionContext"></a><h3>GOptionContext</h3>
|
395
393
|
<pre class="programlisting">typedef struct _GOptionContext GOptionContext;</pre>
|
396
394
|
<p>
|
@@ -400,7 +398,7 @@ fields and should not be directly accessed.
|
|
400
398
|
</p>
|
401
399
|
</div>
|
402
400
|
<hr>
|
403
|
-
<div class="refsect2"
|
401
|
+
<div class="refsect2">
|
404
402
|
<a name="g-option-context-new"></a><h3>g_option_context_new ()</h3>
|
405
403
|
<pre class="programlisting"><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="returnvalue">GOptionContext</span></a> * g_option_context_new (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *parameter_string</code></em>);</pre>
|
406
404
|
<p>
|
@@ -412,7 +410,7 @@ to add descriptions for "rest" arguments, which are not parsed by
|
|
412
410
|
the <a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a>, typically something like "FILES" or
|
413
411
|
"FILE1 FILE2...". If you are using <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-REMAINING:CAPS" title="G_OPTION_REMAINING"><span class="type">G_OPTION_REMAINING</span></a> for
|
414
412
|
collecting "rest" arguments, GLib handles this automatically by
|
415
|
-
using the <em class="parameter"><code>arg_description</code></em> of the corresponding <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a> in
|
413
|
+
using the <em class="parameter"><code>arg_description</code></em> of the corresponding <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a> in
|
416
414
|
the usage summary.
|
417
415
|
</p>
|
418
416
|
<p>
|
@@ -433,24 +431,22 @@ it should normally be passed untranslated.
|
|
433
431
|
<tr>
|
434
432
|
<td><p><span class="term"><em class="parameter"><code>parameter_string</code></em> :</span></p></td>
|
435
433
|
<td>a string which is displayed in
|
436
|
-
|
437
|
-
|
438
|
-
|
434
|
+
the first line of <code class="option">--help</code> output, after the
|
435
|
+
usage summary
|
436
|
+
<code class="literal"><em class="replaceable"><code>programname</code></em> [OPTION...]</code>
|
439
437
|
</td>
|
440
438
|
</tr>
|
441
439
|
<tr>
|
442
440
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
443
|
-
<td>
|
444
|
-
|
445
|
-
|
446
|
-
</td>
|
441
|
+
<td>a newly created <a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a>, which must be
|
442
|
+
freed with <a class="link" href="glib-Commandline-option-parser.html#g-option-context-free" title="g_option_context_free ()"><code class="function">g_option_context_free()</code></a> after use.</td>
|
447
443
|
</tr>
|
448
444
|
</tbody>
|
449
445
|
</table></div>
|
450
446
|
<p class="since">Since 2.6</p>
|
451
447
|
</div>
|
452
448
|
<hr>
|
453
|
-
<div class="refsect2"
|
449
|
+
<div class="refsect2">
|
454
450
|
<a name="g-option-context-set-summary"></a><h3>g_option_context_set_summary ()</h3>
|
455
451
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_set_summary (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
456
452
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *summary</code></em>);</pre>
|
@@ -475,7 +471,7 @@ Note that the summary is translated (see
|
|
475
471
|
<tr>
|
476
472
|
<td><p><span class="term"><em class="parameter"><code>summary</code></em> :</span></p></td>
|
477
473
|
<td>a string to be shown in <code class="option">--help</code> output
|
478
|
-
|
474
|
+
before the list of options, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
479
475
|
</td>
|
480
476
|
</tr>
|
481
477
|
</tbody>
|
@@ -483,7 +479,7 @@ Note that the summary is translated (see
|
|
483
479
|
<p class="since">Since 2.12</p>
|
484
480
|
</div>
|
485
481
|
<hr>
|
486
|
-
<div class="refsect2"
|
482
|
+
<div class="refsect2">
|
487
483
|
<a name="g-option-context-get-summary"></a><h3>g_option_context_get_summary ()</h3>
|
488
484
|
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_option_context_get_summary (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>);</pre>
|
489
485
|
<p>
|
@@ -499,16 +495,14 @@ Returns the summary. See <a class="link" href="glib-Commandline-option-parser.ht
|
|
499
495
|
</tr>
|
500
496
|
<tr>
|
501
497
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
502
|
-
<td>
|
503
|
-
|
504
|
-
</td>
|
498
|
+
<td>the summary</td>
|
505
499
|
</tr>
|
506
500
|
</tbody>
|
507
501
|
</table></div>
|
508
502
|
<p class="since">Since 2.12</p>
|
509
503
|
</div>
|
510
504
|
<hr>
|
511
|
-
<div class="refsect2"
|
505
|
+
<div class="refsect2">
|
512
506
|
<a name="g-option-context-set-description"></a><h3>g_option_context_set_description ()</h3>
|
513
507
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_set_description (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
514
508
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *description</code></em>);</pre>
|
@@ -532,7 +526,7 @@ Note that the summary is translated (see
|
|
532
526
|
<tr>
|
533
527
|
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
|
534
528
|
<td>a string to be shown in <code class="option">--help</code> output
|
535
|
-
|
529
|
+
after the list of options, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
536
530
|
</td>
|
537
531
|
</tr>
|
538
532
|
</tbody>
|
@@ -540,7 +534,7 @@ Note that the summary is translated (see
|
|
540
534
|
<p class="since">Since 2.12</p>
|
541
535
|
</div>
|
542
536
|
<hr>
|
543
|
-
<div class="refsect2"
|
537
|
+
<div class="refsect2">
|
544
538
|
<a name="g-option-context-get-description"></a><h3>g_option_context_get_description ()</h3>
|
545
539
|
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_option_context_get_description (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>);</pre>
|
546
540
|
<p>
|
@@ -556,16 +550,14 @@ Returns the description. See <a class="link" href="glib-Commandline-option-parse
|
|
556
550
|
</tr>
|
557
551
|
<tr>
|
558
552
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
559
|
-
<td>
|
560
|
-
|
561
|
-
</td>
|
553
|
+
<td>the description</td>
|
562
554
|
</tr>
|
563
555
|
</tbody>
|
564
556
|
</table></div>
|
565
557
|
<p class="since">Since 2.12</p>
|
566
558
|
</div>
|
567
559
|
<hr>
|
568
|
-
<div class="refsect2"
|
560
|
+
<div class="refsect2">
|
569
561
|
<a name="GTranslateFunc"></a><h3>GTranslateFunc ()</h3>
|
570
562
|
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * (*GTranslateFunc) (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>,
|
571
563
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
@@ -578,26 +570,24 @@ strings, for <code class="option">--help</code> output.
|
|
578
570
|
<tbody>
|
579
571
|
<tr>
|
580
572
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
581
|
-
<td>the untranslated string
|
582
|
-
</td>
|
573
|
+
<td>the untranslated string</td>
|
583
574
|
</tr>
|
584
575
|
<tr>
|
585
576
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
586
577
|
<td>user data specified when installing the function, e.g.
|
587
|
-
|
578
|
+
in <a class="link" href="glib-Commandline-option-parser.html#g-option-group-set-translate-func" title="g_option_group_set_translate_func ()"><code class="function">g_option_group_set_translate_func()</code></a>
|
588
579
|
</td>
|
589
580
|
</tr>
|
590
581
|
<tr>
|
591
582
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
592
|
-
<td>
|
593
|
-
|
594
|
-
</td>
|
583
|
+
<td>a translation of the string for the current locale.
|
584
|
+
The returned string is owned by GLib and must not be freed.</td>
|
595
585
|
</tr>
|
596
586
|
</tbody>
|
597
587
|
</table></div>
|
598
588
|
</div>
|
599
589
|
<hr>
|
600
|
-
<div class="refsect2"
|
590
|
+
<div class="refsect2">
|
601
591
|
<a name="g-option-context-set-translate-func"></a><h3>g_option_context_set_translate_func ()</h3>
|
602
592
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_set_translate_func (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
603
593
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GTranslateFunc" title="GTranslateFunc ()"><span class="type">GTranslateFunc</span></a> func</code></em>,
|
@@ -646,7 +636,7 @@ domain, see <a class="link" href="glib-Commandline-option-parser.html#g-option-c
|
|
646
636
|
<p class="since">Since 2.12</p>
|
647
637
|
</div>
|
648
638
|
<hr>
|
649
|
-
<div class="refsect2"
|
639
|
+
<div class="refsect2">
|
650
640
|
<a name="g-option-context-set-translation-domain"></a><h3>g_option_context_set_translation_domain ()</h3>
|
651
641
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_set_translation_domain
|
652
642
|
(<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
@@ -665,15 +655,14 @@ user-visible strings.
|
|
665
655
|
</tr>
|
666
656
|
<tr>
|
667
657
|
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
|
668
|
-
<td>the domain to use
|
669
|
-
</td>
|
658
|
+
<td>the domain to use</td>
|
670
659
|
</tr>
|
671
660
|
</tbody>
|
672
661
|
</table></div>
|
673
662
|
<p class="since">Since 2.12</p>
|
674
663
|
</div>
|
675
664
|
<hr>
|
676
|
-
<div class="refsect2"
|
665
|
+
<div class="refsect2">
|
677
666
|
<a name="g-option-context-free"></a><h3>g_option_context_free ()</h3>
|
678
667
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_free (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>);</pre>
|
679
668
|
<p>
|
@@ -682,7 +671,7 @@ added to it.
|
|
682
671
|
</p>
|
683
672
|
<p>
|
684
673
|
Please note that parsed arguments need to be freed separately (see
|
685
|
-
<a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a>).
|
674
|
+
<a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a>).
|
686
675
|
</p>
|
687
676
|
<div class="variablelist"><table border="0">
|
688
677
|
<col align="left" valign="top">
|
@@ -695,12 +684,12 @@ Please note that parsed arguments need to be freed separately (see
|
|
695
684
|
<p class="since">Since 2.6</p>
|
696
685
|
</div>
|
697
686
|
<hr>
|
698
|
-
<div class="refsect2"
|
687
|
+
<div class="refsect2">
|
699
688
|
<a name="g-option-context-parse"></a><h3>g_option_context_parse ()</h3>
|
700
689
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_option_context_parse (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
701
690
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *argc</code></em>,
|
702
691
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> ***argv</code></em>,
|
703
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
692
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
704
693
|
<p>
|
705
694
|
Parses the command line arguments, recognizing options
|
706
695
|
which have been added to <em class="parameter"><code>context</code></em>. A side-effect of
|
@@ -738,32 +727,28 @@ arguments.
|
|
738
727
|
</tr>
|
739
728
|
<tr>
|
740
729
|
<td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
|
741
|
-
<td>a pointer to the number of command line arguments
|
742
|
-
</td>
|
730
|
+
<td>a pointer to the number of command line arguments</td>
|
743
731
|
</tr>
|
744
732
|
<tr>
|
745
733
|
<td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
|
746
|
-
<td>a pointer to the array of command line arguments
|
747
|
-
</td>
|
734
|
+
<td>a pointer to the array of command line arguments</td>
|
748
735
|
</tr>
|
749
736
|
<tr>
|
750
737
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
751
|
-
<td>a return location for errors
|
752
|
-
</td>
|
738
|
+
<td>a return location for errors</td>
|
753
739
|
</tr>
|
754
740
|
<tr>
|
755
741
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
756
|
-
<td>
|
757
|
-
|
758
|
-
|
759
|
-
</td>
|
742
|
+
<td>
|
743
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the parsing was successful,
|
744
|
+
<a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if an error occurred</td>
|
760
745
|
</tr>
|
761
746
|
</tbody>
|
762
747
|
</table></div>
|
763
748
|
<p class="since">Since 2.6</p>
|
764
749
|
</div>
|
765
750
|
<hr>
|
766
|
-
<div class="refsect2"
|
751
|
+
<div class="refsect2">
|
767
752
|
<a name="g-option-context-set-help-enabled"></a><h3>g_option_context_set_help_enabled ()</h3>
|
768
753
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_set_help_enabled (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
769
754
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> help_enabled</code></em>);</pre>
|
@@ -786,15 +771,14 @@ suitable output to stdout.
|
|
786
771
|
<tr>
|
787
772
|
<td><p><span class="term"><em class="parameter"><code>help_enabled</code></em> :</span></p></td>
|
788
773
|
<td>
|
789
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> to enable <code class="option">--help</code>, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> to disable it
|
790
|
-
</td>
|
774
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> to enable <code class="option">--help</code>, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> to disable it</td>
|
791
775
|
</tr>
|
792
776
|
</tbody>
|
793
777
|
</table></div>
|
794
778
|
<p class="since">Since 2.6</p>
|
795
779
|
</div>
|
796
780
|
<hr>
|
797
|
-
<div class="refsect2"
|
781
|
+
<div class="refsect2">
|
798
782
|
<a name="g-option-context-get-help-enabled"></a><h3>g_option_context_get_help_enabled ()</h3>
|
799
783
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_option_context_get_help_enabled (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>);</pre>
|
800
784
|
<p>
|
@@ -811,16 +795,15 @@ is turned on for <em class="parameter"><code>context</code></em>. See <a class="
|
|
811
795
|
</tr>
|
812
796
|
<tr>
|
813
797
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
814
|
-
<td>
|
815
|
-
|
816
|
-
</td>
|
798
|
+
<td>
|
799
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if automatic help generation is turned on.</td>
|
817
800
|
</tr>
|
818
801
|
</tbody>
|
819
802
|
</table></div>
|
820
803
|
<p class="since">Since 2.6</p>
|
821
804
|
</div>
|
822
805
|
<hr>
|
823
|
-
<div class="refsect2"
|
806
|
+
<div class="refsect2">
|
824
807
|
<a name="g-option-context-set-ignore-unknown-options"></a><h3>g_option_context_set_ignore_unknown_options ()</h3>
|
825
808
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_set_ignore_unknown_options
|
826
809
|
(<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
@@ -847,15 +830,14 @@ determine whether a non-option belongs to a preceding unknown option.
|
|
847
830
|
<td><p><span class="term"><em class="parameter"><code>ignore_unknown</code></em> :</span></p></td>
|
848
831
|
<td>
|
849
832
|
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> to ignore unknown options, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> to produce
|
850
|
-
|
851
|
-
</td>
|
833
|
+
an error when unknown options are met</td>
|
852
834
|
</tr>
|
853
835
|
</tbody>
|
854
836
|
</table></div>
|
855
837
|
<p class="since">Since 2.6</p>
|
856
838
|
</div>
|
857
839
|
<hr>
|
858
|
-
<div class="refsect2"
|
840
|
+
<div class="refsect2">
|
859
841
|
<a name="g-option-context-get-ignore-unknown-options"></a><h3>g_option_context_get_ignore_unknown_options ()</h3>
|
860
842
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_option_context_get_ignore_unknown_options
|
861
843
|
(<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>);</pre>
|
@@ -873,16 +855,15 @@ Returns whether unknown options are ignored or not. See
|
|
873
855
|
</tr>
|
874
856
|
<tr>
|
875
857
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
876
|
-
<td>
|
877
|
-
|
878
|
-
</td>
|
858
|
+
<td>
|
859
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if unknown options are ignored.</td>
|
879
860
|
</tr>
|
880
861
|
</tbody>
|
881
862
|
</table></div>
|
882
863
|
<p class="since">Since 2.6</p>
|
883
864
|
</div>
|
884
865
|
<hr>
|
885
|
-
<div class="refsect2"
|
866
|
+
<div class="refsect2">
|
886
867
|
<a name="g-option-context-get-help"></a><h3>g_option_context_get_help ()</h3>
|
887
868
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_option_context_get_help (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
888
869
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> main_help</code></em>,
|
@@ -906,8 +887,7 @@ To obtain the help text for an option group, call
|
|
906
887
|
</tr>
|
907
888
|
<tr>
|
908
889
|
<td><p><span class="term"><em class="parameter"><code>main_help</code></em> :</span></p></td>
|
909
|
-
<td>if <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>, only include the main group
|
910
|
-
</td>
|
890
|
+
<td>if <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>, only include the main group</td>
|
911
891
|
</tr>
|
912
892
|
<tr>
|
913
893
|
<td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
|
@@ -916,16 +896,14 @@ To obtain the help text for an option group, call
|
|
916
896
|
</tr>
|
917
897
|
<tr>
|
918
898
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
919
|
-
<td>
|
920
|
-
|
921
|
-
</td>
|
899
|
+
<td>A newly allocated string containing the help text</td>
|
922
900
|
</tr>
|
923
901
|
</tbody>
|
924
902
|
</table></div>
|
925
903
|
<p class="since">Since 2.14</p>
|
926
904
|
</div>
|
927
905
|
<hr>
|
928
|
-
<div class="refsect2"
|
906
|
+
<div class="refsect2">
|
929
907
|
<a name="GOptionArg"></a><h3>enum GOptionArg</h3>
|
930
908
|
<pre class="programlisting">typedef enum
|
931
909
|
{
|
@@ -1006,7 +984,7 @@ or combined in a single argument: <code class="option">--name=arg</code>.
|
|
1006
984
|
</table></div>
|
1007
985
|
</div>
|
1008
986
|
<hr>
|
1009
|
-
<div class="refsect2"
|
987
|
+
<div class="refsect2">
|
1010
988
|
<a name="GOptionFlags"></a><h3>enum GOptionFlags</h3>
|
1011
989
|
<pre class="programlisting">typedef enum
|
1012
990
|
{
|
@@ -1078,7 +1056,7 @@ Flags which modify individual options.
|
|
1078
1056
|
</table></div>
|
1079
1057
|
</div>
|
1080
1058
|
<hr>
|
1081
|
-
<div class="refsect2"
|
1059
|
+
<div class="refsect2">
|
1082
1060
|
<a name="G-OPTION-REMAINING:CAPS"></a><h3>G_OPTION_REMAINING</h3>
|
1083
1061
|
<pre class="programlisting">#define G_OPTION_REMAINING ""
|
1084
1062
|
</pre>
|
@@ -1097,9 +1075,9 @@ necessary encoding conversions for strings or filenames.
|
|
1097
1075
|
<p class="since">Since 2.6</p>
|
1098
1076
|
</div>
|
1099
1077
|
<hr>
|
1100
|
-
<div class="refsect2"
|
1101
|
-
<a name="GOptionEntry"></a><h3>GOptionEntry</h3>
|
1102
|
-
<pre class="programlisting">
|
1078
|
+
<div class="refsect2">
|
1079
|
+
<a name="GOptionEntry"></a><h3>struct GOptionEntry</h3>
|
1080
|
+
<pre class="programlisting">struct GOptionEntry {
|
1103
1081
|
const gchar *long_name;
|
1104
1082
|
gchar short_name;
|
1105
1083
|
gint flags;
|
@@ -1109,7 +1087,7 @@ necessary encoding conversions for strings or filenames.
|
|
1109
1087
|
|
1110
1088
|
const gchar *description;
|
1111
1089
|
const gchar *arg_description;
|
1112
|
-
}
|
1090
|
+
};
|
1113
1091
|
</pre>
|
1114
1092
|
<p>
|
1115
1093
|
A <span class="structname">GOptionEntry</span> defines a single option.
|
@@ -1122,38 +1100,34 @@ To have an effect, they must be added to a <a class="link" href="glib-Commandlin
|
|
1122
1100
|
<tr>
|
1123
1101
|
<td><p><span class="term">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GOptionEntry.long-name"></a>long_name</code></em>;</span></p></td>
|
1124
1102
|
<td>The long name of an option can be used to specify it
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
</td>
|
1103
|
+
in a commandline as --<em class="replaceable"><code>long_name</code></em>. Every
|
1104
|
+
option must have a long name. To resolve conflicts if multiple
|
1105
|
+
option groups contain the same long name, it is also possible to
|
1106
|
+
specify the option as
|
1107
|
+
--<em class="replaceable"><code>groupname</code></em>-<em class="replaceable"><code>long_name</code></em>.</td>
|
1131
1108
|
</tr>
|
1132
1109
|
<tr>
|
1133
1110
|
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> <em class="structfield"><code><a name="GOptionEntry.short-name"></a>short_name</code></em>;</span></p></td>
|
1134
1111
|
<td>If an option has a short name, it can be specified
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
</td>
|
1112
|
+
-<em class="replaceable"><code>short_name</code></em> in a commandline. <em class="parameter"><code>short_name</code></em> must be
|
1113
|
+
a printable ASCII character different from '-', or zero if the option has no
|
1114
|
+
short name.</td>
|
1139
1115
|
</tr>
|
1140
1116
|
<tr>
|
1141
1117
|
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GOptionEntry.flags"></a>flags</code></em>;</span></p></td>
|
1142
|
-
<td>Flags from <a class="link" href="glib-Commandline-option-parser.html#GOptionFlags" title="enum GOptionFlags"><span class="type">GOptionFlags</span></a
|
1143
|
-
</td>
|
1118
|
+
<td>Flags from <a class="link" href="glib-Commandline-option-parser.html#GOptionFlags" title="enum GOptionFlags"><span class="type">GOptionFlags</span></a>.</td>
|
1144
1119
|
</tr>
|
1145
1120
|
<tr>
|
1146
1121
|
<td><p><span class="term"><a class="link" href="glib-Commandline-option-parser.html#GOptionArg" title="enum GOptionArg"><span class="type">GOptionArg</span></a> <em class="structfield"><code><a name="GOptionEntry.arg"></a>arg</code></em>;</span></p></td>
|
1147
|
-
<td>The type of the option, as a <a class="link" href="glib-Commandline-option-parser.html#GOptionArg" title="enum GOptionArg"><span class="type">GOptionArg</span></a
|
1148
|
-
</td>
|
1122
|
+
<td>The type of the option, as a <a class="link" href="glib-Commandline-option-parser.html#GOptionArg" title="enum GOptionArg"><span class="type">GOptionArg</span></a>.</td>
|
1149
1123
|
</tr>
|
1150
1124
|
<tr>
|
1151
1125
|
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="GOptionEntry.arg-data"></a>arg_data</code></em>;</span></p></td>
|
1152
|
-
<td>If the <em class="parameter"><code>arg</code></em> type is <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-CALLBACK:CAPS"><code class="literal">G_OPTION_ARG_CALLBACK</code></a>, then <em class="parameter"><code>arg_data</code></em> must
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1126
|
+
<td>If the <em class="parameter"><code>arg</code></em> type is <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-CALLBACK:CAPS"><code class="literal">G_OPTION_ARG_CALLBACK</code></a>, then <em class="parameter"><code>arg_data</code></em> must
|
1127
|
+
point to a <a class="link" href="glib-Commandline-option-parser.html#GOptionArgFunc" title="GOptionArgFunc ()"><span class="type">GOptionArgFunc</span></a> callback function, which will be called to handle
|
1128
|
+
the extra argument. Otherwise, <em class="parameter"><code>arg_data</code></em> is a pointer to a location to store
|
1129
|
+
the value, the required type of the location depends on the <em class="parameter"><code>arg</code></em> type:
|
1130
|
+
<div class="variablelist"><table border="0">
|
1157
1131
|
<col align="left" valign="top">
|
1158
1132
|
<tbody>
|
1159
1133
|
<tr>
|
@@ -1186,36 +1160,33 @@ To have an effect, they must be added to a <a class="link" href="glib-Commandlin
|
|
1186
1160
|
</tr>
|
1187
1161
|
</tbody>
|
1188
1162
|
</table></div>
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
</td>
|
1163
|
+
If <em class="parameter"><code>arg</code></em> type is <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-STRING:CAPS"><code class="literal">G_OPTION_ARG_STRING</code></a> or <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-FILENAME:CAPS"><code class="literal">G_OPTION_ARG_FILENAME</code></a> the location
|
1164
|
+
will contain a newly allocated string if the option was given. That string
|
1165
|
+
needs to be freed by the callee using <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. Likewise if <em class="parameter"><code>arg</code></em> type is
|
1166
|
+
<a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-STRING-ARRAY:CAPS"><code class="literal">G_OPTION_ARG_STRING_ARRAY</code></a> or <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-FILENAME-ARRAY:CAPS"><code class="literal">G_OPTION_ARG_FILENAME_ARRAY</code></a>, the data should
|
1167
|
+
be freed using <a class="link" href="glib-String-Utility-Functions.html#g-strfreev" title="g_strfreev ()"><code class="function">g_strfreev()</code></a>.</td>
|
1195
1168
|
</tr>
|
1196
1169
|
<tr>
|
1197
1170
|
<td><p><span class="term">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GOptionEntry.description"></a>description</code></em>;</span></p></td>
|
1198
1171
|
<td>the description for the option in <code class="option">--help</code>
|
1199
|
-
|
1200
|
-
|
1201
|
-
</td>
|
1172
|
+
output. The <em class="parameter"><code>description</code></em> is translated using the <em class="parameter"><code>translate_func</code></em> of the
|
1173
|
+
group, see <a class="link" href="glib-Commandline-option-parser.html#g-option-group-set-translation-domain" title="g_option_group_set_translation_domain ()"><code class="function">g_option_group_set_translation_domain()</code></a>.</td>
|
1202
1174
|
</tr>
|
1203
1175
|
<tr>
|
1204
1176
|
<td><p><span class="term">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GOptionEntry.arg-description"></a>arg_description</code></em>;</span></p></td>
|
1205
1177
|
<td>The placeholder to use for the extra argument parsed
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
</td>
|
1178
|
+
by the option in <code class="option">--help</code>
|
1179
|
+
output. The <em class="parameter"><code>arg_description</code></em> is translated using the <em class="parameter"><code>translate_func</code></em> of the
|
1180
|
+
group, see <a class="link" href="glib-Commandline-option-parser.html#g-option-group-set-translation-domain" title="g_option_group_set_translation_domain ()"><code class="function">g_option_group_set_translation_domain()</code></a>.</td>
|
1210
1181
|
</tr>
|
1211
1182
|
</tbody>
|
1212
1183
|
</table></div>
|
1213
1184
|
</div>
|
1214
1185
|
<hr>
|
1215
|
-
<div class="refsect2"
|
1186
|
+
<div class="refsect2">
|
1216
1187
|
<a name="g-option-context-add-main-entries"></a><h3>g_option_context_add_main_entries ()</h3>
|
1217
1188
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_add_main_entries (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
1218
|
-
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>,
|
1189
|
+
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>,
|
1219
1190
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *translation_domain</code></em>);</pre>
|
1220
1191
|
<p>
|
1221
1192
|
A convenience function which creates a main group if it doesn't
|
@@ -1231,14 +1202,13 @@ exist, adds the <em class="parameter"><code>entries</code></em> to it and sets t
|
|
1231
1202
|
</tr>
|
1232
1203
|
<tr>
|
1233
1204
|
<td><p><span class="term"><em class="parameter"><code>entries</code></em> :</span></p></td>
|
1234
|
-
<td>a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a>s
|
1235
|
-
</td>
|
1205
|
+
<td>a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a>s</td>
|
1236
1206
|
</tr>
|
1237
1207
|
<tr>
|
1238
1208
|
<td><p><span class="term"><em class="parameter"><code>translation_domain</code></em> :</span></p></td>
|
1239
1209
|
<td>a translation domain to use for translating
|
1240
|
-
|
1241
|
-
|
1210
|
+
the <code class="option">--help</code> output for the options in <em class="parameter"><code>entries</code></em>
|
1211
|
+
with <code class="function">gettext()</code>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1242
1212
|
</td>
|
1243
1213
|
</tr>
|
1244
1214
|
</tbody>
|
@@ -1246,7 +1216,7 @@ exist, adds the <em class="parameter"><code>entries</code></em> to it and sets t
|
|
1246
1216
|
<p class="since">Since 2.6</p>
|
1247
1217
|
</div>
|
1248
1218
|
<hr>
|
1249
|
-
<div class="refsect2"
|
1219
|
+
<div class="refsect2">
|
1250
1220
|
<a name="GOptionGroup"></a><h3>GOptionGroup</h3>
|
1251
1221
|
<pre class="programlisting">typedef struct _GOptionGroup GOptionGroup;</pre>
|
1252
1222
|
<p>
|
@@ -1261,7 +1231,7 @@ the application can then add to its <a class="link" href="glib-Commandline-optio
|
|
1261
1231
|
</p>
|
1262
1232
|
</div>
|
1263
1233
|
<hr>
|
1264
|
-
<div class="refsect2"
|
1234
|
+
<div class="refsect2">
|
1265
1235
|
<a name="g-option-context-add-group"></a><h3>g_option_context_add_group ()</h3>
|
1266
1236
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_add_group (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
1267
1237
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>);</pre>
|
@@ -1282,15 +1252,14 @@ to a context.
|
|
1282
1252
|
</tr>
|
1283
1253
|
<tr>
|
1284
1254
|
<td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
|
1285
|
-
<td>the group to add
|
1286
|
-
</td>
|
1255
|
+
<td>the group to add</td>
|
1287
1256
|
</tr>
|
1288
1257
|
</tbody>
|
1289
1258
|
</table></div>
|
1290
1259
|
<p class="since">Since 2.6</p>
|
1291
1260
|
</div>
|
1292
1261
|
<hr>
|
1293
|
-
<div class="refsect2"
|
1262
|
+
<div class="refsect2">
|
1294
1263
|
<a name="g-option-context-set-main-group"></a><h3>g_option_context_set_main_group ()</h3>
|
1295
1264
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_context_set_main_group (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
1296
1265
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>);</pre>
|
@@ -1310,15 +1279,14 @@ treated differently when generating <code class="option">--help</code> output.
|
|
1310
1279
|
</tr>
|
1311
1280
|
<tr>
|
1312
1281
|
<td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
|
1313
|
-
<td>the group to set as main group
|
1314
|
-
</td>
|
1282
|
+
<td>the group to set as main group</td>
|
1315
1283
|
</tr>
|
1316
1284
|
</tbody>
|
1317
1285
|
</table></div>
|
1318
1286
|
<p class="since">Since 2.6</p>
|
1319
1287
|
</div>
|
1320
1288
|
<hr>
|
1321
|
-
<div class="refsect2"
|
1289
|
+
<div class="refsect2">
|
1322
1290
|
<a name="g-option-context-get-main-group"></a><h3>g_option_context_get_main_group ()</h3>
|
1323
1291
|
<pre class="programlisting"><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="returnvalue">GOptionGroup</span></a> * g_option_context_get_main_group (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>);</pre>
|
1324
1292
|
<p>
|
@@ -1334,18 +1302,16 @@ Returns a pointer to the main group of <em class="parameter"><code>context</code
|
|
1334
1302
|
</tr>
|
1335
1303
|
<tr>
|
1336
1304
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1337
|
-
<td>
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
</td>
|
1305
|
+
<td>the main group of <em class="parameter"><code>context</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if <em class="parameter"><code>context</code></em> doesn't
|
1306
|
+
have a main group. Note that group belongs to <em class="parameter"><code>context</code></em> and should
|
1307
|
+
not be modified or freed.</td>
|
1342
1308
|
</tr>
|
1343
1309
|
</tbody>
|
1344
1310
|
</table></div>
|
1345
1311
|
<p class="since">Since 2.6</p>
|
1346
1312
|
</div>
|
1347
1313
|
<hr>
|
1348
|
-
<div class="refsect2"
|
1314
|
+
<div class="refsect2">
|
1349
1315
|
<a name="g-option-group-new"></a><h3>g_option_group_new ()</h3>
|
1350
1316
|
<pre class="programlisting"><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="returnvalue">GOptionGroup</span></a> * g_option_group_new (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
|
1351
1317
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *description</code></em>,
|
@@ -1361,27 +1327,25 @@ Creates a new <a class="link" href="glib-Commandline-option-parser.html#GOptionG
|
|
1361
1327
|
<tr>
|
1362
1328
|
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
|
1363
1329
|
<td>the name for the option group, this is used to provide
|
1364
|
-
|
1330
|
+
help for the options in this group with <code class="option">--help-</code><em class="parameter"><code>name</code></em>
|
1365
1331
|
</td>
|
1366
1332
|
</tr>
|
1367
1333
|
<tr>
|
1368
1334
|
<td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
|
1369
1335
|
<td>a description for this group to be shown in
|
1370
|
-
|
1371
|
-
|
1372
|
-
</td>
|
1336
|
+
<code class="option">--help</code>. This string is translated using the translation
|
1337
|
+
domain or translation function of the group</td>
|
1373
1338
|
</tr>
|
1374
1339
|
<tr>
|
1375
1340
|
<td><p><span class="term"><em class="parameter"><code>help_description</code></em> :</span></p></td>
|
1376
1341
|
<td>a description for the <code class="option">--help-</code><em class="parameter"><code>name</code></em> option.
|
1377
|
-
|
1378
|
-
|
1379
|
-
</td>
|
1342
|
+
This string is translated using the translation domain or translation function
|
1343
|
+
of the group</td>
|
1380
1344
|
</tr>
|
1381
1345
|
<tr>
|
1382
1346
|
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
1383
1347
|
<td>user data that will be passed to the pre- and post-parse hooks,
|
1384
|
-
|
1348
|
+
the error hook and to callbacks of <a class="link" href="glib-Commandline-option-parser.html#G-OPTION-ARG-CALLBACK:CAPS"><code class="literal">G_OPTION_ARG_CALLBACK</code></a> options, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1385
1349
|
</td>
|
1386
1350
|
</tr>
|
1387
1351
|
<tr>
|
@@ -1391,17 +1355,15 @@ Creates a new <a class="link" href="glib-Commandline-option-parser.html#GOptionG
|
|
1391
1355
|
</tr>
|
1392
1356
|
<tr>
|
1393
1357
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1394
|
-
<td>
|
1395
|
-
|
1396
|
-
|
1397
|
-
</td>
|
1358
|
+
<td>a newly created option group. It should be added
|
1359
|
+
to a <a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> or freed with <a class="link" href="glib-Commandline-option-parser.html#g-option-group-free" title="g_option_group_free ()"><code class="function">g_option_group_free()</code></a>.</td>
|
1398
1360
|
</tr>
|
1399
1361
|
</tbody>
|
1400
1362
|
</table></div>
|
1401
1363
|
<p class="since">Since 2.6</p>
|
1402
1364
|
</div>
|
1403
1365
|
<hr>
|
1404
|
-
<div class="refsect2"
|
1366
|
+
<div class="refsect2">
|
1405
1367
|
<a name="g-option-group-free"></a><h3>g_option_group_free ()</h3>
|
1406
1368
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_group_free (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>);</pre>
|
1407
1369
|
<p>
|
@@ -1419,10 +1381,10 @@ free groups which have been added to a <a class="link" href="glib-Commandline-op
|
|
1419
1381
|
<p class="since">Since 2.6</p>
|
1420
1382
|
</div>
|
1421
1383
|
<hr>
|
1422
|
-
<div class="refsect2"
|
1384
|
+
<div class="refsect2">
|
1423
1385
|
<a name="g-option-group-add-entries"></a><h3>g_option_group_add_entries ()</h3>
|
1424
1386
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_group_add_entries (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
1425
|
-
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>);</pre>
|
1387
|
+
<em class="parameter"><code>const <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a> *entries</code></em>);</pre>
|
1426
1388
|
<p>
|
1427
1389
|
Adds the options specified in <em class="parameter"><code>entries</code></em> to <em class="parameter"><code>group</code></em>.
|
1428
1390
|
</p>
|
@@ -1436,20 +1398,19 @@ Adds the options specified in <em class="parameter"><code>entries</code></em> to
|
|
1436
1398
|
</tr>
|
1437
1399
|
<tr>
|
1438
1400
|
<td><p><span class="term"><em class="parameter"><code>entries</code></em> :</span></p></td>
|
1439
|
-
<td>a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="GOptionEntry"><span class="type">GOptionEntry</span></a>s
|
1440
|
-
</td>
|
1401
|
+
<td>a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of <a class="link" href="glib-Commandline-option-parser.html#GOptionEntry" title="struct GOptionEntry"><span class="type">GOptionEntry</span></a>s</td>
|
1441
1402
|
</tr>
|
1442
1403
|
</tbody>
|
1443
1404
|
</table></div>
|
1444
1405
|
<p class="since">Since 2.6</p>
|
1445
1406
|
</div>
|
1446
1407
|
<hr>
|
1447
|
-
<div class="refsect2"
|
1408
|
+
<div class="refsect2">
|
1448
1409
|
<a name="GOptionParseFunc"></a><h3>GOptionParseFunc ()</h3>
|
1449
1410
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (*GOptionParseFunc) (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
1450
1411
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
1451
1412
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
1452
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1413
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1453
1414
|
<p>
|
1454
1415
|
The type of function that can be called before and after parsing.
|
1455
1416
|
</p>
|
@@ -1463,31 +1424,30 @@ The type of function that can be called before and after parsing.
|
|
1463
1424
|
</tr>
|
1464
1425
|
<tr>
|
1465
1426
|
<td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
|
1466
|
-
<td>The group to which the function belongs
|
1467
|
-
</td>
|
1427
|
+
<td>The group to which the function belongs</td>
|
1468
1428
|
</tr>
|
1469
1429
|
<tr>
|
1470
1430
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
1471
1431
|
<td>User data added to the <a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> containing the option when it
|
1472
|
-
|
1432
|
+
was created with <a class="link" href="glib-Commandline-option-parser.html#g-option-group-new" title="g_option_group_new ()"><code class="function">g_option_group_new()</code></a>
|
1473
1433
|
</td>
|
1474
1434
|
</tr>
|
1475
1435
|
<tr>
|
1476
1436
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1477
|
-
<td>A return location for error details
|
1478
|
-
</td>
|
1437
|
+
<td>A return location for error details</td>
|
1479
1438
|
</tr>
|
1480
1439
|
<tr>
|
1481
1440
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1482
|
-
<td>
|
1483
|
-
|
1441
|
+
<td>
|
1442
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the function completed successfully, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if an error
|
1443
|
+
occurred, in which case <em class="parameter"><code>error</code></em> should be set with <a class="link" href="glib-Error-Reporting.html#g-set-error" title="g_set_error ()"><code class="function">g_set_error()</code></a>
|
1484
1444
|
</td>
|
1485
1445
|
</tr>
|
1486
1446
|
</tbody>
|
1487
1447
|
</table></div>
|
1488
1448
|
</div>
|
1489
1449
|
<hr>
|
1490
|
-
<div class="refsect2"
|
1450
|
+
<div class="refsect2">
|
1491
1451
|
<a name="g-option-group-set-parse-hooks"></a><h3>g_option_group_set_parse_hooks ()</h3>
|
1492
1452
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_group_set_parse_hooks (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
1493
1453
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionParseFunc" title="GOptionParseFunc ()"><span class="type">GOptionParseFunc</span></a> pre_parse_func</code></em>,
|
@@ -1525,12 +1485,12 @@ with <a class="link" href="glib-Commandline-option-parser.html#g-option-group-ne
|
|
1525
1485
|
<p class="since">Since 2.6</p>
|
1526
1486
|
</div>
|
1527
1487
|
<hr>
|
1528
|
-
<div class="refsect2"
|
1488
|
+
<div class="refsect2">
|
1529
1489
|
<a name="GOptionErrorFunc"></a><h3>GOptionErrorFunc ()</h3>
|
1530
1490
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GOptionErrorFunc) (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionContext" title="GOptionContext"><span class="type">GOptionContext</span></a> *context</code></em>,
|
1531
1491
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
1532
1492
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
1533
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1493
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1534
1494
|
<p>
|
1535
1495
|
The type of function to be used as callback when a parse error occurs.
|
1536
1496
|
</p>
|
@@ -1544,25 +1504,23 @@ The type of function to be used as callback when a parse error occurs.
|
|
1544
1504
|
</tr>
|
1545
1505
|
<tr>
|
1546
1506
|
<td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
|
1547
|
-
<td>The group to which the function belongs
|
1548
|
-
</td>
|
1507
|
+
<td>The group to which the function belongs</td>
|
1549
1508
|
</tr>
|
1550
1509
|
<tr>
|
1551
1510
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
1552
1511
|
<td>User data added to the <a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> containing the option when it
|
1553
|
-
|
1512
|
+
was created with <a class="link" href="glib-Commandline-option-parser.html#g-option-group-new" title="g_option_group_new ()"><code class="function">g_option_group_new()</code></a>
|
1554
1513
|
</td>
|
1555
1514
|
</tr>
|
1556
1515
|
<tr>
|
1557
1516
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1558
|
-
<td>The <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> containing details about the parse error
|
1559
|
-
</td>
|
1517
|
+
<td>The <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> containing details about the parse error</td>
|
1560
1518
|
</tr>
|
1561
1519
|
</tbody>
|
1562
1520
|
</table></div>
|
1563
1521
|
</div>
|
1564
1522
|
<hr>
|
1565
|
-
<div class="refsect2"
|
1523
|
+
<div class="refsect2">
|
1566
1524
|
<a name="g-option-group-set-error-hook"></a><h3>g_option_group_set_error_hook ()</h3>
|
1567
1525
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_group_set_error_hook (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
1568
1526
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionErrorFunc" title="GOptionErrorFunc ()"><span class="type">GOptionErrorFunc</span></a> error_func</code></em>);</pre>
|
@@ -1584,15 +1542,14 @@ specified when constructing the group with <a class="link" href="glib-Commandlin
|
|
1584
1542
|
</tr>
|
1585
1543
|
<tr>
|
1586
1544
|
<td><p><span class="term"><em class="parameter"><code>error_func</code></em> :</span></p></td>
|
1587
|
-
<td>a function to call when an error occurs
|
1588
|
-
</td>
|
1545
|
+
<td>a function to call when an error occurs</td>
|
1589
1546
|
</tr>
|
1590
1547
|
</tbody>
|
1591
1548
|
</table></div>
|
1592
1549
|
<p class="since">Since 2.6</p>
|
1593
1550
|
</div>
|
1594
1551
|
<hr>
|
1595
|
-
<div class="refsect2"
|
1552
|
+
<div class="refsect2">
|
1596
1553
|
<a name="g-option-group-set-translate-func"></a><h3>g_option_group_set_translate_func ()</h3>
|
1597
1554
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_group_set_translate_func (<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
1598
1555
|
<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GTranslateFunc" title="GTranslateFunc ()"><span class="type">GTranslateFunc</span></a> func</code></em>,
|
@@ -1636,7 +1593,7 @@ domain, see <a class="link" href="glib-Commandline-option-parser.html#g-option-g
|
|
1636
1593
|
<p class="since">Since 2.6</p>
|
1637
1594
|
</div>
|
1638
1595
|
<hr>
|
1639
|
-
<div class="refsect2"
|
1596
|
+
<div class="refsect2">
|
1640
1597
|
<a name="g-option-group-set-translation-domain"></a><h3>g_option_group_set_translation_domain ()</h3>
|
1641
1598
|
<pre class="programlisting"><span class="returnvalue">void</span> g_option_group_set_translation_domain
|
1642
1599
|
(<em class="parameter"><code><a class="link" href="glib-Commandline-option-parser.html#GOptionGroup" title="GOptionGroup"><span class="type">GOptionGroup</span></a> *group</code></em>,
|
@@ -1655,8 +1612,7 @@ user-visible strings.
|
|
1655
1612
|
</tr>
|
1656
1613
|
<tr>
|
1657
1614
|
<td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
|
1658
|
-
<td>the domain to use
|
1659
|
-
</td>
|
1615
|
+
<td>the domain to use</td>
|
1660
1616
|
</tr>
|
1661
1617
|
</tbody>
|
1662
1618
|
</table></div>
|
@@ -1666,6 +1622,6 @@ user-visible strings.
|
|
1666
1622
|
</div>
|
1667
1623
|
<div class="footer">
|
1668
1624
|
<hr>
|
1669
|
-
Generated by GTK-Doc V1.
|
1625
|
+
Generated by GTK-Doc V1.16.1</div>
|
1670
1626
|
</body>
|
1671
1627
|
</html>
|