glib2 1.1.9-x86-mingw32 → 1.2.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +26 -4
- data/ext/glib2/glib2.def +3 -1
- data/ext/glib2/rbgcompat.h +0 -15
- data/ext/glib2/rbglib.h +11 -3
- data/ext/glib2/rbglib_source.c +6 -1
- data/ext/glib2/rbgobj_boxed.c +65 -48
- data/ext/glib2/rbgobj_convert.c +29 -14
- data/ext/glib2/rbgobj_value.c +42 -0
- data/ext/glib2/rbgobject.c +7 -4
- data/ext/glib2/rbgobject.h +15 -9
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +6 -1
- data/lib/gnome2-win32-binary-build-task.rb +40 -10
- data/vendor/local/bin/certtool.exe +0 -0
- data/vendor/local/bin/danetool.exe +0 -0
- data/vendor/local/bin/gdbus-codegen +1 -1
- data/vendor/local/bin/gdbus.exe +0 -0
- data/vendor/local/bin/gio-querymodules.exe +0 -0
- data/vendor/local/bin/glib-compile-resources.exe +0 -0
- data/vendor/local/bin/glib-compile-schemas.exe +0 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +1 -1
- data/vendor/local/bin/glib-mkenums +1 -1
- data/vendor/local/bin/gnutls-cli-debug.exe +0 -0
- data/vendor/local/bin/gnutls-cli.exe +0 -0
- data/vendor/local/bin/gnutls-serv.exe +0 -0
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gresource.exe +0 -0
- data/vendor/local/bin/gsettings.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/libgmp-10.dll +0 -0
- data/vendor/local/bin/libgnutls-28.dll +0 -0
- data/vendor/local/bin/libgnutls-openssl-27.dll +0 -0
- data/vendor/local/bin/libgnutls-openssl-28.def +87 -93
- data/vendor/local/bin/libgnutlsxx-28.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/bin/libhogweed-2-2.dll +0 -0
- data/vendor/local/bin/libnettle-4-4.dll +0 -0
- data/vendor/local/bin/nettle-hash.exe +0 -0
- data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
- data/vendor/local/bin/ocsptool.exe +0 -0
- data/vendor/local/bin/pkcs1-conv.exe +0 -0
- data/vendor/local/bin/psktool.exe +0 -0
- data/vendor/local/bin/sexp-conv.exe +0 -0
- data/vendor/local/bin/srptool.exe +0 -0
- data/vendor/local/{lib/libffi-3.0.6/include → include}/ffi.h +0 -0
- data/vendor/local/{lib/libffi-3.0.6/include → include}/ffitarget.h +0 -0
- data/vendor/local/include/glib-2.0/gio/gactionmap.h +0 -4
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +1 -3
- data/vendor/local/include/glib-2.0/gio/gapplication.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +0 -4
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +1 -6
- data/vendor/local/include/glib-2.0/gio/gfile.h +0 -3
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -3
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +0 -2
- data/vendor/local/include/glib-2.0/gio/ginetaddressmask.h +0 -6
- data/vendor/local/include/glib-2.0/gio/gio.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gioenums.h +1 -3
- data/vendor/local/include/glib-2.0/gio/giomodule.h +0 -5
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +0 -4
- data/vendor/local/include/glib-2.0/gio/giotypes.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +0 -2
- data/vendor/local/include/glib-2.0/gio/gmenu.h +0 -27
- data/vendor/local/include/glib-2.0/gio/gmenumodel.h +0 -19
- data/vendor/local/include/glib-2.0/gio/gresource.h +0 -2
- data/vendor/local/include/glib-2.0/gio/gsettingsschema.h +0 -4
- data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gsocket.h +0 -13
- data/vendor/local/include/glib-2.0/glib/deprecated/gthread.h +0 -1
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +1 -3
- data/vendor/local/include/glib-2.0/glib/gconvert.h +9 -24
- data/vendor/local/include/glib-2.0/glib/gdir.h +8 -10
- data/vendor/local/include/glib-2.0/glib/genviron.h +8 -12
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +15 -20
- data/vendor/local/include/glib-2.0/glib/giochannel.h +4 -14
- data/vendor/local/include/glib-2.0/glib/gslice.h +0 -4
- data/vendor/local/include/glib-2.0/glib/gspawn.h +10 -46
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +0 -1
- data/vendor/local/include/glib-2.0/glib/gunicode.h +5 -5
- data/vendor/local/include/glib-2.0/glib/gutils.h +14 -14
- data/vendor/local/include/glib-2.0/glib/gvariant.h +0 -8
- data/vendor/local/include/glib-2.0/glib/gversionmacros.h +0 -24
- data/vendor/local/include/glib-2.0/glib/gwin32.h +7 -14
- data/vendor/local/include/glib-2.0/gmodule.h +7 -11
- data/vendor/local/include/glib-2.0/gobject/glib-types.h +0 -33
- data/vendor/local/include/glib-2.0/gobject/gobject.h +7 -7
- data/vendor/local/include/glib-2.0/gobject/gtype.h +7 -13
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/__init__.py +0 -0
- data/vendor/local/lib/gdbus-2.0/codegen/__init__.pyc +0 -0
- data/vendor/local/lib/gdbus-2.0/codegen/__init__.pyo +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen.py +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen.pyc +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen.pyo +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_docbook.py +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_docbook.pyc +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_docbook.pyo +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_main.py +0 -2
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_main.pyc +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_main.pyo +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/config.py +1 -1
- data/vendor/local/lib/gdbus-2.0/codegen/config.pyc +0 -0
- data/vendor/local/lib/gdbus-2.0/codegen/config.pyo +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/dbustypes.py +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/dbustypes.pyc +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/dbustypes.pyo +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/parser.py +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/parser.pyc +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/parser.pyo +0 -0
- data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/utils.py +0 -0
- data/vendor/local/lib/gdbus-2.0/codegen/utils.pyc +0 -0
- data/vendor/local/lib/gdbus-2.0/codegen/utils.pyo +0 -0
- data/vendor/local/lib/gio-2.0.def +2 -41
- data/vendor/local/lib/gio/modules/libgiognutls.a +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll.a +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.la +1 -1
- data/vendor/local/lib/glib-2.0.def +0 -2
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gobject-2.0.def +0 -4
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.la +4 -4
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.la +3 -3
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.la +3 -3
- data/vendor/local/lib/libgmp.dll.a +0 -0
- data/vendor/local/lib/libgnutls-openssl.a +0 -0
- data/vendor/local/lib/libgnutls-openssl.dll.a +0 -0
- data/vendor/local/lib/libgnutls.a +0 -0
- data/vendor/local/lib/libgnutls.dll.a +0 -0
- data/vendor/local/lib/libgnutlsxx.a +0 -0
- data/vendor/local/lib/libgnutlsxx.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.la +4 -4
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.la +3 -3
- data/vendor/local/lib/libhogweed.a +0 -0
- data/vendor/local/lib/libhogweed.dll.a +0 -0
- data/vendor/local/lib/libnettle.a +0 -0
- data/vendor/local/lib/libnettle.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +1 -1
- 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-export-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/share/gdb/auto-load/{libglib-2.0.so.0.3503.0-gdb.py → libglib-2.0.so.0.3400.3-gdb.py} +0 -0
- data/vendor/local/share/gdb/auto-load/{libgobject-2.0.so.0.3503.0-gdb.py → libgobject-2.0.so.0.3400.3-gdb.py} +0 -0
- data/vendor/local/share/glib-2.0/gdb/glib.py +4 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +2 -2
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +17 -5
- data/vendor/local/share/gtk-doc/html/gio/GActionMap.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +1 -27
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +15 -8
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +6 -47
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +37 -21
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +4 -16
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +32 -16
- data/vendor/local/share/gtk-doc/html/gio/GDBusInterfaceSkeleton.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerClient.html +2 -4
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +10 -6
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +7 -3
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +17 -65
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +2 -59
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +1 -29
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +0 -13
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +4 -12
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +1 -137
- data/vendor/local/share/gtk-doc/html/gio/GTestDBus.html +2 -3
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +0 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +0 -19
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +0 -180
- data/vendor/local/share/gtk-doc/html/gio/async.html +0 -3
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch30.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch30s02.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch30s03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch31.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch31s02.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch31s03.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch31s04.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch31s05.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch31s06.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch31s07.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch32.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch32s02.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch32s03.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch32s04.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch32s05.html +17 -9
- data/vendor/local/share/gtk-doc/html/gio/gdbus-codegen.html +11 -11
- data/vendor/local/share/gtk-doc/html/gio/gdbus-org.gtk.GDBus.Example.ObjectManager.Animal.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +0 -109
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +1 -7
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +12 -29
- data/vendor/local/share/gtk-doc/html/gio/gio-GResource.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +7 -3
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +8 -10
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +0 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +11 -64
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-resources.html +3 -15
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gresource-tool.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/index.html +4 -10
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -59
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/networking.html +0 -3
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +1 -7
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-34.html +0 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +1 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +4 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Deprecated-Thread-APIs.html +11 -7
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +10 -86
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +46 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +7 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +34 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +2 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-UNIX-specific-utilities-and-integration.html +7 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +5 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +4 -28
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-programming.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +45 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +25 -32
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +12 -12
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +0 -7
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +0 -12
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +0 -12
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +0 -22
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +5 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +32 -6
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +24 -51
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -11
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/index.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +0 -3
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +4 -4
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib-networking.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/or/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/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/man/man1/gdbus-codegen.1 +1 -1
- data/vendor/local/share/man/man1/gdbus.1 +1 -1
- data/vendor/local/share/man/man1/gio-querymodules.1 +1 -1
- data/vendor/local/share/man/man1/glib-compile-resources.1 +1 -13
- data/vendor/local/share/man/man1/glib-compile-schemas.1 +1 -1
- data/vendor/local/share/man/man1/glib-genmarshal.1 +1 -1
- data/vendor/local/share/man/man1/glib-gettextize.1 +1 -1
- data/vendor/local/share/man/man1/glib-mkenums.1 +1 -1
- data/vendor/local/share/man/man1/gobject-query.1 +1 -1
- data/vendor/local/share/man/man1/gresource.1 +1 -1
- data/vendor/local/share/man/man1/gsettings.1 +1 -1
- data/vendor/local/share/man/man1/gtester-report.1 +1 -1
- data/vendor/local/share/man/man1/gtester.1 +1 -1
- metadata +33 -197
- data/ext/glib2/rbgobj_fundamental.c +0 -43
- data/vendor/local/bin/asn1Coding.exe +0 -0
- data/vendor/local/bin/asn1Decoding.exe +0 -0
- data/vendor/local/bin/asn1Parser.exe +0 -0
- data/vendor/local/bin/dumpsexp.exe +0 -0
- data/vendor/local/bin/gpg-error.exe +0 -0
- data/vendor/local/bin/hmac256.exe +0 -0
- data/vendor/local/bin/libgcrypt-11.dll +0 -0
- data/vendor/local/bin/libgcrypt-config +0 -177
- data/vendor/local/bin/libgnutls-26.dll +0 -0
- data/vendor/local/bin/libgnutls-extra-26.dll +0 -0
- data/vendor/local/bin/libgnutls-openssl-26.dll +0 -0
- data/vendor/local/bin/libgpg-error-0.dll +0 -0
- data/vendor/local/bin/libtasn1-3.dll +0 -0
- data/vendor/local/etc/bash_completion.d/gdbus-bash-completion.sh +0 -33
- data/vendor/local/etc/bash_completion.d/gsettings-bash-completion.sh +0 -67
- data/vendor/local/gnutls.README.txt +0 -6
- data/vendor/local/include/gcrypt-module.h +0 -226
- data/vendor/local/include/gcrypt.h +0 -1826
- data/vendor/local/include/glib-2.0/gio/gnetworking.h +0 -83
- data/vendor/local/include/glib-2.0/gio/gtask.h +0 -160
- data/vendor/local/include/glib-2.0/glib/gcache.h +0 -69
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +0 -81
- data/vendor/local/include/glib-2.0/glib/grel.h +0 -101
- data/vendor/local/include/gnutls/extra.h +0 -137
- data/vendor/local/include/gpg-error.h +0 -651
- data/vendor/local/include/libtasn1.h +0 -246
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/gmodule-2.0.lib +0 -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/libgcrypt.def +0 -237
- data/vendor/local/lib/libgcrypt.dll.a +0 -0
- data/vendor/local/lib/libgnutls-extra.dll.a +0 -0
- data/vendor/local/lib/libgpg-error.dll.a +0 -0
- data/vendor/local/lib/libtasn1.dll.a +0 -0
- data/vendor/local/manifest/glib-dev_2.28.8-1_win32.mft +0 -619
- data/vendor/local/manifest/glib_2.28.8-1_win32.mft +0 -103
- data/vendor/local/manifest/gnutls-dev_2.4.2-1_win32.mft +0 -593
- data/vendor/local/manifest/gnutls_2.4.2-1_win32.mft +0 -8
- data/vendor/local/share/aclocal/gpg-error.m4 +0 -65
- data/vendor/local/share/aclocal/libgcrypt.m4 +0 -108
- data/vendor/local/share/aclocal/libgnutls-extra.m4 +0 -161
- data/vendor/local/share/aclocal/libgnutls.m4 +0 -160
- data/vendor/local/share/aclocal/libtasn1.m4 +0 -160
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error-codes.lisp +0 -417
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error-package.lisp +0 -64
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error.asd +0 -36
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error.lisp +0 -236
- data/vendor/local/share/doc/glib-2.28.8/COPYING +0 -482
- data/vendor/local/share/doc/glib-dev-2.28.8/COPYING +0 -482
- data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusError.html +0 -879
- data/vendor/local/share/gtk-doc/html/gio/GTask.html +0 -2296
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +0 -57
- data/vendor/local/share/gtk-doc/html/gio/ch28s02.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/ch28s03.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/ch28s04.html +0 -46
- data/vendor/local/share/gtk-doc/html/gio/ch28s05.html +0 -48
- data/vendor/local/share/gtk-doc/html/gio/ch28s06.html +0 -279
- data/vendor/local/share/gtk-doc/html/gio/ch28s07.html +0 -160
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +0 -130
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +0 -202
- data/vendor/local/share/gtk-doc/html/gio/ch29s04.html +0 -96
- data/vendor/local/share/gtk-doc/html/gio/ch29s05.html +0 -823
- data/vendor/local/share/gtk-doc/html/gio/ch29s06.html +0 -828
- data/vendor/local/share/gtk-doc/html/gio/gio-gnetworking.h.html +0 -91
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +0 -1956
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +0 -389
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +0 -137
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +0 -679
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +0 -2218
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +0 -766
- data/vendor/local/share/info/gcrypt.info +0 -6243
- data/vendor/local/share/info/gnutls-certificate-user-use-case.png +0 -0
- data/vendor/local/share/info/gnutls-extensions_st.png +0 -0
- data/vendor/local/share/info/gnutls-mod_auth_st.png +0 -0
- data/vendor/local/share/info/gnutls-objects.png +0 -0
- data/vendor/local/share/info/libtasn1.info +0 -2993
- data/vendor/local/share/man/man1/asn1Coding.1 +0 -46
- data/vendor/local/share/man/man1/asn1Decoding.1 +0 -41
- data/vendor/local/share/man/man1/asn1Parser.1 +0 -49
- data/vendor/local/share/man/man3/asn1_array2tree.3 +0 -47
- data/vendor/local/share/man/man3/asn1_bit_der.3 +0 -39
- data/vendor/local/share/man/man3/asn1_check_version.3 +0 -39
- data/vendor/local/share/man/man3/asn1_copy_node.3 +0 -39
- data/vendor/local/share/man/man3/asn1_create_element.3 +0 -45
- data/vendor/local/share/man/man3/asn1_delete_element.3 +0 -39
- data/vendor/local/share/man/man3/asn1_delete_structure.3 +0 -37
- data/vendor/local/share/man/man3/asn1_der_coding.3 +0 -52
- data/vendor/local/share/man/man3/asn1_der_decoding.3 +0 -50
- data/vendor/local/share/man/man3/asn1_der_decoding_element.3 +0 -54
- data/vendor/local/share/man/man3/asn1_der_decoding_startEnd.3 +0 -58
- data/vendor/local/share/man/man3/asn1_expand_any_defined_by.3 +0 -45
- data/vendor/local/share/man/man3/asn1_expand_octet_string.3 +0 -51
- data/vendor/local/share/man/man3/asn1_find_node.3 +0 -38
- data/vendor/local/share/man/man3/asn1_find_structure_from_oid.3 +0 -37
- data/vendor/local/share/man/man3/asn1_get_bit_der.3 +0 -43
- data/vendor/local/share/man/man3/asn1_get_length_der.3 +0 -38
- data/vendor/local/share/man/man3/asn1_get_octet_der.3 +0 -43
- data/vendor/local/share/man/man3/asn1_get_tag_der.3 +0 -41
- data/vendor/local/share/man/man3/asn1_length_der.3 +0 -36
- data/vendor/local/share/man/man3/asn1_number_of_elements.3 +0 -43
- data/vendor/local/share/man/man3/asn1_octet_der.3 +0 -37
- data/vendor/local/share/man/man3/asn1_parser2array.3 +0 -58
- data/vendor/local/share/man/man3/asn1_parser2tree.3 +0 -55
- data/vendor/local/share/man/man3/asn1_print_structure.3 +0 -40
- data/vendor/local/share/man/man3/asn1_read_tag.3 +0 -46
- data/vendor/local/share/man/man3/asn1_read_value.3 +0 -92
- data/vendor/local/share/man/man3/asn1_write_value.3 +0 -136
- data/vendor/local/share/man/man3/gnutls_certificate_client_set_retrieve_function.3 +0 -58
- data/vendor/local/share/man/man3/gnutls_certificate_get_openpgp_keyring.3 +0 -37
- data/vendor/local/share/man/man3/gnutls_certificate_get_x509_cas.3 +0 -40
- data/vendor/local/share/man/man3/gnutls_certificate_get_x509_crls.3 +0 -40
- data/vendor/local/share/man/man3/gnutls_certificate_server_set_retrieve_function.3 +0 -47
- data/vendor/local/share/man/man3/gnutls_certificate_verify_peers.3 +0 -44
- data/vendor/local/share/man/man3/gnutls_crypto_cipher_register.3 +0 -45
- data/vendor/local/share/man/man3/gnutls_crypto_digest_register.3 +0 -45
- data/vendor/local/share/man/man3/gnutls_crypto_mac_register.3 +0 -45
- data/vendor/local/share/man/man3/gnutls_crypto_rnd_register.3 +0 -43
- data/vendor/local/share/man/man3/gnutls_extra_check_version.3 +0 -36
- data/vendor/local/share/man/man3/gnutls_free.3 +0 -34
- data/vendor/local/share/man/man3/gnutls_global_init_extra.3 +0 -38
- data/vendor/local/share/man/man3/gnutls_ia_allocate_client_credentials.3 +0 -42
- data/vendor/local/share/man/man3/gnutls_ia_allocate_server_credentials.3 +0 -42
- data/vendor/local/share/man/man3/gnutls_ia_enable.3 +0 -53
- data/vendor/local/share/man/man3/gnutls_ia_endphase_send.3 +0 -43
- data/vendor/local/share/man/man3/gnutls_ia_extract_inner_secret.3 +0 -44
- data/vendor/local/share/man/man3/gnutls_ia_free_client_credentials.3 +0 -34
- data/vendor/local/share/man/man3/gnutls_ia_free_server_credentials.3 +0 -34
- data/vendor/local/share/man/man3/gnutls_ia_generate_challenge.3 +0 -40
- data/vendor/local/share/man/man3/gnutls_ia_get_client_avp_ptr.3 +0 -36
- data/vendor/local/share/man/man3/gnutls_ia_get_server_avp_ptr.3 +0 -36
- data/vendor/local/share/man/man3/gnutls_ia_handshake.3 +0 -36
- data/vendor/local/share/man/man3/gnutls_ia_handshake_p.3 +0 -37
- data/vendor/local/share/man/man3/gnutls_ia_permute_inner_secret.3 +0 -43
- data/vendor/local/share/man/man3/gnutls_ia_recv.3 +0 -57
- data/vendor/local/share/man/man3/gnutls_ia_send.3 +0 -56
- data/vendor/local/share/man/man3/gnutls_ia_set_client_avp_function.3 +0 -61
- data/vendor/local/share/man/man3/gnutls_ia_set_client_avp_ptr.3 +0 -36
- data/vendor/local/share/man/man3/gnutls_ia_set_server_avp_function.3 +0 -68
- data/vendor/local/share/man/man3/gnutls_ia_set_server_avp_ptr.3 +0 -36
- data/vendor/local/share/man/man3/gnutls_ia_verify_endphase.3 +0 -45
- data/vendor/local/share/man/man3/gnutls_malloc.3 +0 -37
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_expiration_time.3 +0 -40
- data/vendor/local/share/man/man3/gnutls_oprfi_enable_client.3 +0 -42
- data/vendor/local/share/man/man3/gnutls_oprfi_enable_server.3 +0 -49
- data/vendor/local/share/man/man3/gnutls_psk_netconf_derive_key.3 +0 -44
- data/vendor/local/share/man/man3/gnutls_session_get_client_random.3 +0 -40
- data/vendor/local/share/man/man3/gnutls_session_get_master_secret.3 +0 -43
- data/vendor/local/share/man/man3/gnutls_session_get_server_random.3 +0 -40
- data/vendor/local/share/man/man3/gnutls_sign_algorithm_get_name.3 +0 -35
- data/vendor/local/share/man/man3/gnutls_transport_set_global_errno.3 +0 -47
- data/vendor/local/share/man/man3/gnutls_transport_set_lowat.3 +0 -40
- data/vendor/local/share/man/man3/gnutls_x509_privkey_verify_data.3 +0 -43
- data/vendor/local/share/man/man3/libtasn1_perror.3 +0 -32
- data/vendor/local/share/man/man3/libtasn1_strerror.3 +0 -35
- data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.log +0 -2919
- data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.sh +0 -157
@@ -1,160 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Data conversion</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
7
|
-
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
-
<link rel="up" href="ch28.html" title="Migrating from GConf to GSettings">
|
9
|
-
<link rel="prev" href="ch28s06.html" title="Schema conversion">
|
10
|
-
<link rel="next" href="ch29.html" title="Migrating to GDBus">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
16
|
-
<td><a accesskey="p" href="ch28s06.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
17
|
-
<td><a accesskey="u" href="ch28.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
18
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
19
|
-
<th width="100%" align="center">GIO Reference Manual</th>
|
20
|
-
<td><a accesskey="n" href="ch29.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
21
|
-
</tr></table>
|
22
|
-
<div class="section">
|
23
|
-
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
-
<a name="id526803"></a>Data conversion</h2></div></div></div>
|
25
|
-
<p>
|
26
|
-
GConf comes with a GSettings backend that can be used to
|
27
|
-
facility the transition to the GSettings API until you are
|
28
|
-
ready to make the jump to a different backend (most likely
|
29
|
-
dconf). To use it, you need to set the <code class="envar">GSETTINGS_BACKEND</code>
|
30
|
-
to 'gconf', e.g. by using
|
31
|
-
</p>
|
32
|
-
<pre class="programlisting">
|
33
|
-
g_setenv ("GSETTINGS_BACKEND", "gconf", TRUE);
|
34
|
-
</pre>
|
35
|
-
<p>
|
36
|
-
early on in your program. Note that this backend is meant purely
|
37
|
-
as a transition tool, and should not be used in production.
|
38
|
-
</p>
|
39
|
-
<p>
|
40
|
-
GConf also comes with a utility called
|
41
|
-
<span class="command"><strong>gsettings-data-convert</strong></span>, which is designed to help
|
42
|
-
with the task of migrating user settings from GConf into another
|
43
|
-
GSettings backend. It can be run manually, but it is designed to be
|
44
|
-
executed automatically, every time a user logs in. It keeps track of
|
45
|
-
the data migrations that it has already done, and it is harmless to
|
46
|
-
run it more than once.
|
47
|
-
</p>
|
48
|
-
<p>
|
49
|
-
To make use of this utility, you must install a keyfile in the
|
50
|
-
directory <code class="filename">/usr/share/GConf/gsettings</code> which
|
51
|
-
lists the GSettings keys and GConf paths to map to each other, for
|
52
|
-
each schema that you want to migrate user data for.
|
53
|
-
</p>
|
54
|
-
<p>
|
55
|
-
Here is an example:
|
56
|
-
</p>
|
57
|
-
<pre class="programlisting">
|
58
|
-
|
59
|
-
[org.gnome.fonts]
|
60
|
-
antialiasing = /desktop/gnome/font_rendering/antialiasing
|
61
|
-
dpi = /desktop/gnome/font_rendering/dpi
|
62
|
-
hinting = /desktop/gnome/font_rendering/hinting
|
63
|
-
rgba-order = /desktop/gnome/font_rendering/rgba_order
|
64
|
-
|
65
|
-
[apps.myapp:/path/to/myapps/]
|
66
|
-
some-odd-key1 = /apps/myapp/some_ODD-key1
|
67
|
-
|
68
|
-
</pre>
|
69
|
-
<p>
|
70
|
-
The last key demonstrates that it may be necessary to modify the key
|
71
|
-
name to comply with stricter GSettings key name rules. Of course,
|
72
|
-
that means your application must use the new key names when looking
|
73
|
-
up settings in GSettings.
|
74
|
-
</p>
|
75
|
-
<p>
|
76
|
-
The last group in the example also shows how to handle the case
|
77
|
-
of 'relocatable' schemas, which don't have a fixed path. You can
|
78
|
-
specify the path to use in the group name, separated by a colon.
|
79
|
-
</p>
|
80
|
-
<p>
|
81
|
-
There are some limitations: <span class="command"><strong>gsettings-data-convert</strong></span>
|
82
|
-
does not do any transformation of the values. And it does not handle
|
83
|
-
complex GConf types other than lists of strings or integers.
|
84
|
-
</p>
|
85
|
-
<p>
|
86
|
-
Don't forget to require GConf 2.31.1 or newer in your configure
|
87
|
-
script if you are making use of the GConf backend or the conversion
|
88
|
-
utility.
|
89
|
-
</p>
|
90
|
-
<p>
|
91
|
-
If, as an application developer, you are interested in manually
|
92
|
-
ensuring that <span class="command"><strong>gsettings-data-convert</strong></span> has been
|
93
|
-
invoked (for example, to deal with the case where the user is
|
94
|
-
logged in during a distribution upgrade or for non-XDG desktop
|
95
|
-
environments which do not run the command as an autostart) you
|
96
|
-
may invoke it manually during your program initialisation. This
|
97
|
-
is not recommended for all application authors -- it is your
|
98
|
-
choice if this use case concerns you enough.
|
99
|
-
</p>
|
100
|
-
<p>
|
101
|
-
Internally, <span class="command"><strong>gsettings-data-convert</strong></span> uses a
|
102
|
-
keyfile to track which settings have been migrated. The
|
103
|
-
following code fragment will check that keyfile to see if your
|
104
|
-
data conversion script has been run yet and, if not, will
|
105
|
-
attempt to invoke the tool to run it. You should adapt it to
|
106
|
-
your application as you see fit.
|
107
|
-
</p>
|
108
|
-
<p>
|
109
|
-
</p>
|
110
|
-
<pre class="programlisting">
|
111
|
-
|
112
|
-
static void
|
113
|
-
ensure_migrated (const gchar *name)
|
114
|
-
{
|
115
|
-
gboolean needed = TRUE;
|
116
|
-
GKeyFile *kf;
|
117
|
-
gchar **list;
|
118
|
-
gsize i, n;
|
119
|
-
|
120
|
-
kf = g_key_file_new ();
|
121
|
-
|
122
|
-
g_key_file_load_from_data_dirs (kf, "gsettings-data-convert",
|
123
|
-
NULL, G_KEY_FILE_NONE, NULL);
|
124
|
-
list = g_key_file_get_string_list (kf, "State", "converted", &n, NULL);
|
125
|
-
|
126
|
-
if (list)
|
127
|
-
{
|
128
|
-
for (i = 0; i < n; i++)
|
129
|
-
if (strcmp (list[i], name) == 0)
|
130
|
-
{
|
131
|
-
needed = FALSE;
|
132
|
-
break;
|
133
|
-
}
|
134
|
-
|
135
|
-
g_strfreev (list);
|
136
|
-
}
|
137
|
-
|
138
|
-
g_key_file_free (kf);
|
139
|
-
|
140
|
-
if (needed)
|
141
|
-
g_spawn_command_line_sync ("gsettings-data-convert",
|
142
|
-
NULL, NULL, NULL, NULL);
|
143
|
-
}
|
144
|
-
|
145
|
-
|
146
|
-
</pre>
|
147
|
-
<p>
|
148
|
-
</p>
|
149
|
-
<p>
|
150
|
-
Although there is the possibility that the
|
151
|
-
<span class="command"><strong>gsettings-data-convert</strong></span> script will end up
|
152
|
-
running multiple times concurrently with this approach, it is
|
153
|
-
believed that this is safe.
|
154
|
-
</p>
|
155
|
-
</div>
|
156
|
-
<div class="footer">
|
157
|
-
<hr>
|
158
|
-
Generated by GTK-Doc V1.17</div>
|
159
|
-
</body>
|
160
|
-
</html>
|
@@ -1,130 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>API comparison</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
7
|
-
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
-
<link rel="up" href="ch29.html" title="Migrating to GDBus">
|
9
|
-
<link rel="prev" href="ch29.html" title="Migrating to GDBus">
|
10
|
-
<link rel="next" href="ch29s03.html" title="Owning bus names">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
16
|
-
<td><a accesskey="p" href="ch29.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
17
|
-
<td><a accesskey="u" href="ch29.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
18
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
19
|
-
<th width="100%" align="center">GIO Reference Manual</th>
|
20
|
-
<td><a accesskey="n" href="ch29s03.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
21
|
-
</tr></table>
|
22
|
-
<div class="section">
|
23
|
-
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
-
<a name="id379971"></a>API comparison</h2></div></div></div>
|
25
|
-
<div class="table">
|
26
|
-
<a name="dbus-glib-vs-gdbus"></a><p class="title"><b>Table 7. dbus-glib APIs and their GDBus counterparts</b></p>
|
27
|
-
<div class="table-contents"><table summary="dbus-glib APIs and their GDBus counterparts" border="1">
|
28
|
-
<colgroup>
|
29
|
-
<col>
|
30
|
-
<col>
|
31
|
-
</colgroup>
|
32
|
-
<thead><tr>
|
33
|
-
<th>dbus-glib</th>
|
34
|
-
<th>GDBus</th>
|
35
|
-
</tr></thead>
|
36
|
-
<tbody>
|
37
|
-
<tr>
|
38
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#DBusGConnection"><span class="type">DBusGConnection</span></a></td>
|
39
|
-
<td><a class="link" href="GDBusConnection.html" title="GDBusConnection"><span class="type">GDBusConnection</span></a></td>
|
40
|
-
</tr>
|
41
|
-
<tr>
|
42
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#DBusGProxy"><span class="type">DBusGProxy</span></a></td>
|
43
|
-
<td><a class="link" href="GDBusProxy.html" title="GDBusProxy"><span class="type">GDBusProxy</span></a></td>
|
44
|
-
</tr>
|
45
|
-
<tr>
|
46
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGMethod.html#DBusGMethodInvocation"><span class="type">DBusGMethodInvocation</span></a></td>
|
47
|
-
<td><a class="link" href="GDBusMethodInvocation.html" title="GDBusMethodInvocation"><span class="type">GDBusMethodInvocation</span></a></td>
|
48
|
-
</tr>
|
49
|
-
<tr>
|
50
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#dbus-g-bus-get"><code class="function">dbus_g_bus_get()</code></a></td>
|
51
|
-
<td>
|
52
|
-
<a class="link" href="GDBusConnection.html#g-bus-get-sync" title="g_bus_get_sync ()"><code class="function">g_bus_get_sync()</code></a>, also see
|
53
|
-
<a class="link" href="GDBusConnection.html#g-bus-get" title="g_bus_get ()"><code class="function">g_bus_get()</code></a>
|
54
|
-
</td>
|
55
|
-
</tr>
|
56
|
-
<tr>
|
57
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-new-for-name"><code class="function">dbus_g_proxy_new_for_name()</code></a></td>
|
58
|
-
<td>
|
59
|
-
<a class="link" href="GDBusProxy.html#g-dbus-proxy-new-sync" title="g_dbus_proxy_new_sync ()"><code class="function">g_dbus_proxy_new_sync()</code></a> and
|
60
|
-
<a class="link" href="GDBusProxy.html#g-dbus-proxy-new-for-bus-sync" title="g_dbus_proxy_new_for_bus_sync ()"><code class="function">g_dbus_proxy_new_for_bus_sync()</code></a>, also see <a class="link" href="GDBusProxy.html#g-dbus-proxy-new" title="g_dbus_proxy_new ()"><code class="function">g_dbus_proxy_new()</code></a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-add-signal"><code class="function">dbus_g_proxy_add_signal()</code></a></td>
|
65
|
-
<td>not needed, use the generic <a class="link" href="GDBusProxy.html#GDBusProxy-g-signal" title='The "g-signal" signal'><span class="type">"g-signal"</span></a>
|
66
|
-
</td>
|
67
|
-
</tr>
|
68
|
-
<tr>
|
69
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-connect-signal"><code class="function">dbus_g_proxy_connect_signal()</code></a></td>
|
70
|
-
<td>use <a href="../gobject/gobject-Signals.html#g-signal-connect"><code class="function">g_signal_connect()</code></a> with <a class="link" href="GDBusProxy.html#GDBusProxy-g-signal" title='The "g-signal" signal'><span class="type">"g-signal"</span></a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
<tr>
|
74
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#dbus-g-connection-register-g-object"><code class="function">dbus_g_connection_register_g_object()</code></a></td>
|
75
|
-
<td><a class="link" href="GDBusConnection.html#g-dbus-connection-register-object" title="g_dbus_connection_register_object ()"><code class="function">g_dbus_connection_register_object()</code></a></td>
|
76
|
-
</tr>
|
77
|
-
<tr>
|
78
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#dbus-g-connection-unregister-g-object"><code class="function">dbus_g_connection_unregister_g_object()</code></a></td>
|
79
|
-
<td><a class="link" href="GDBusConnection.html#g-dbus-connection-unregister-object" title="g_dbus_connection_unregister_object ()"><code class="function">g_dbus_connection_unregister_object()</code></a></td>
|
80
|
-
</tr>
|
81
|
-
<tr>
|
82
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBus-GObject-related-functions.html#dbus-g-object-type-install-info"><code class="function">dbus_g_object_type_install_info()</code></a></td>
|
83
|
-
<td>introspection data is installed while registering
|
84
|
-
an object, see <a class="link" href="GDBusConnection.html#g-dbus-connection-register-object" title="g_dbus_connection_register_object ()"><code class="function">g_dbus_connection_register_object()</code></a>
|
85
|
-
</td>
|
86
|
-
</tr>
|
87
|
-
<tr>
|
88
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-begin-call"><code class="function">dbus_g_proxy_begin_call()</code></a></td>
|
89
|
-
<td><a class="link" href="GDBusProxy.html#g-dbus-proxy-call" title="g_dbus_proxy_call ()"><code class="function">g_dbus_proxy_call()</code></a></td>
|
90
|
-
</tr>
|
91
|
-
<tr>
|
92
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-end-call"><code class="function">dbus_g_proxy_end_call()</code></a></td>
|
93
|
-
<td><a class="link" href="GDBusProxy.html#g-dbus-proxy-call-finish" title="g_dbus_proxy_call_finish ()"><code class="function">g_dbus_proxy_call_finish()</code></a></td>
|
94
|
-
</tr>
|
95
|
-
<tr>
|
96
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-call"><code class="function">dbus_g_proxy_call()</code></a></td>
|
97
|
-
<td><a class="link" href="GDBusProxy.html#g-dbus-proxy-call-sync" title="g_dbus_proxy_call_sync ()"><code class="function">g_dbus_proxy_call_sync()</code></a></td>
|
98
|
-
</tr>
|
99
|
-
<tr>
|
100
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGError.html#dbus-g-error-domain-register"><code class="function">dbus_g_error_domain_register()</code></a></td>
|
101
|
-
<td><a class="link" href="GDBusError.html#g-dbus-error-register-error-domain" title="g_dbus_error_register_error_domain ()"><code class="function">g_dbus_error_register_error_domain()</code></a></td>
|
102
|
-
</tr>
|
103
|
-
<tr>
|
104
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGError.html#dbus-g-error-has-name"><code class="function">dbus_g_error_has_name()</code></a></td>
|
105
|
-
<td>no direct equivalent, see <a class="link" href="GDBusError.html#g-dbus-error-get-remote-error" title="g_dbus_error_get_remote_error ()"><code class="function">g_dbus_error_get_remote_error()</code></a>
|
106
|
-
</td>
|
107
|
-
</tr>
|
108
|
-
<tr>
|
109
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGMethod.html#dbus-g-method-return"><code class="function">dbus_g_method_return()</code></a></td>
|
110
|
-
<td><a class="link" href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-value" title="g_dbus_method_invocation_return_value ()"><code class="function">g_dbus_method_invocation_return_value()</code></a></td>
|
111
|
-
</tr>
|
112
|
-
<tr>
|
113
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGMethod.html#dbus-g-method-return-error"><code class="function">dbus_g_method_return_error()</code></a></td>
|
114
|
-
<td>
|
115
|
-
<a class="link" href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-error" title="g_dbus_method_invocation_return_error ()"><code class="function">g_dbus_method_invocation_return_error()</code></a> and variants</td>
|
116
|
-
</tr>
|
117
|
-
<tr>
|
118
|
-
<td><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGMethod.html#dbus-g-method-get-sender"><code class="function">dbus_g_method_get_sender()</code></a></td>
|
119
|
-
<td><a class="link" href="GDBusMethodInvocation.html#g-dbus-method-invocation-get-sender" title="g_dbus_method_invocation_get_sender ()"><code class="function">g_dbus_method_invocation_get_sender()</code></a></td>
|
120
|
-
</tr>
|
121
|
-
</tbody>
|
122
|
-
</table></div>
|
123
|
-
</div>
|
124
|
-
<br class="table-break">
|
125
|
-
</div>
|
126
|
-
<div class="footer">
|
127
|
-
<hr>
|
128
|
-
Generated by GTK-Doc V1.17</div>
|
129
|
-
</body>
|
130
|
-
</html>
|
@@ -1,202 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Owning bus names</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
7
|
-
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
-
<link rel="up" href="ch29.html" title="Migrating to GDBus">
|
9
|
-
<link rel="prev" href="ch29s02.html" title="API comparison">
|
10
|
-
<link rel="next" href="ch29s04.html" title="Creating proxies for well-known names">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
16
|
-
<td><a accesskey="p" href="ch29s02.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
17
|
-
<td><a accesskey="u" href="ch29.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
18
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
19
|
-
<th width="100%" align="center">GIO Reference Manual</th>
|
20
|
-
<td><a accesskey="n" href="ch29s04.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
21
|
-
</tr></table>
|
22
|
-
<div class="section">
|
23
|
-
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
-
<a name="id380024"></a>Owning bus names</h2></div></div></div>
|
25
|
-
<p>
|
26
|
-
Using dbus-glib, you typically call RequestName manually
|
27
|
-
to own a name, like in the following excerpt:
|
28
|
-
</p>
|
29
|
-
<div class="informalexample">
|
30
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
31
|
-
<tbody>
|
32
|
-
<tr>
|
33
|
-
<td class="listing_lines" align="right"><pre>1
|
34
|
-
2
|
35
|
-
3
|
36
|
-
4
|
37
|
-
5
|
38
|
-
6
|
39
|
-
7
|
40
|
-
8
|
41
|
-
9
|
42
|
-
10
|
43
|
-
11
|
44
|
-
12
|
45
|
-
13
|
46
|
-
14
|
47
|
-
15
|
48
|
-
16
|
49
|
-
17
|
50
|
-
18
|
51
|
-
19
|
52
|
-
20
|
53
|
-
21
|
54
|
-
22
|
55
|
-
23
|
56
|
-
24
|
57
|
-
25
|
58
|
-
26
|
59
|
-
27
|
60
|
-
28
|
61
|
-
29
|
62
|
-
30
|
63
|
-
31
|
64
|
-
32
|
65
|
-
33
|
66
|
-
34
|
67
|
-
35
|
68
|
-
36
|
69
|
-
37
|
70
|
-
38
|
71
|
-
39
|
72
|
-
40
|
73
|
-
41
|
74
|
-
42
|
75
|
-
43
|
76
|
-
44
|
77
|
-
45</pre></td>
|
78
|
-
<td class="listing_code"><pre class="programlisting"><span class="normal">error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
79
|
-
<span class="normal">res </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-call">dbus_g_proxy_call</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">system_bus_proxy</span><span class="symbol">,</span>
|
80
|
-
<span class="normal"> </span><span class="string">"RequestName"</span><span class="symbol">,</span>
|
81
|
-
<span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span>
|
82
|
-
<span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span>
|
83
|
-
<span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-UINT:CAPS">G_TYPE_UINT</a></span><span class="symbol">,</span><span class="normal"> DBUS_NAME_FLAG_ALLOW_REPLACEMENT</span><span class="symbol">,</span>
|
84
|
-
<span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-INVALID:CAPS">G_TYPE_INVALID</a></span><span class="symbol">,</span>
|
85
|
-
<span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-UINT:CAPS">G_TYPE_UINT</a></span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">result</span><span class="symbol">,</span>
|
86
|
-
<span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-INVALID:CAPS">G_TYPE_INVALID</a></span><span class="symbol">);</span>
|
87
|
-
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">res</span><span class="symbol">)</span>
|
88
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
89
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
90
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
91
|
-
<span class="normal"> </span><span class="function"><a href="../glib/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s: %s"</span><span class="symbol">,</span>
|
92
|
-
<span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
93
|
-
<span class="normal"> </span><span class="function"><a href="../glib/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
94
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
95
|
-
<span class="normal"> </span><span class="keyword">else</span>
|
96
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
97
|
-
<span class="normal"> </span><span class="function"><a href="../glib/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s"</span><span class="symbol">,</span><span class="normal"> NAME_TO_CLAIM</span><span class="symbol">);</span>
|
98
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
99
|
-
<span class="normal"> </span><span class="keyword">goto</span><span class="normal"> out</span><span class="symbol">;</span>
|
100
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
101
|
-
|
102
|
-
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">result </span><span class="symbol">!=</span><span class="normal"> DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER</span><span class="symbol">)</span>
|
103
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
104
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
105
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
106
|
-
<span class="normal"> </span><span class="function"><a href="../glib/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s: %s"</span><span class="symbol">,</span>
|
107
|
-
<span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
108
|
-
<span class="normal"> </span><span class="function"><a href="../glib/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
109
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
110
|
-
<span class="normal"> </span><span class="keyword">else</span>
|
111
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
112
|
-
<span class="normal"> </span><span class="function"><a href="../glib/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s"</span><span class="symbol">,</span><span class="normal"> NAME_TO_CLAIM</span><span class="symbol">);</span>
|
113
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
114
|
-
<span class="normal"> </span><span class="function">exit</span><span class="normal"> </span><span class="symbol">(</span><span class="number">1</span><span class="symbol">);</span>
|
115
|
-
<span class="normal"> </span><span class="cbracket">}</span>
|
116
|
-
|
117
|
-
<span class="function"><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-add-signal">dbus_g_proxy_add_signal</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">system_bus_proxy</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"NameLost"</span><span class="symbol">,</span>
|
118
|
-
<span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-INVALID:CAPS">G_TYPE_INVALID</a></span><span class="symbol">);</span>
|
119
|
-
<span class="function"><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-connect-signal">dbus_g_proxy_connect_signal</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">system_bus_proxy</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"NameLost"</span><span class="symbol">,</span>
|
120
|
-
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_name_lost</span><span class="symbol">),</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
121
|
-
|
122
|
-
<span class="comment">/* further setup ... */</span></pre></td>
|
123
|
-
</tr>
|
124
|
-
</tbody>
|
125
|
-
</table>
|
126
|
-
</div>
|
127
|
-
|
128
|
-
<p>
|
129
|
-
</p>
|
130
|
-
<p>
|
131
|
-
While you can do things this way with GDBus too, using
|
132
|
-
<a class="link" href="GDBusProxy.html#g-dbus-proxy-call-sync" title="g_dbus_proxy_call_sync ()"><code class="function">g_dbus_proxy_call_sync()</code></a>, it is much nicer to use the high-level API
|
133
|
-
for this:
|
134
|
-
</p>
|
135
|
-
<div class="informalexample">
|
136
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
137
|
-
<tbody>
|
138
|
-
<tr>
|
139
|
-
<td class="listing_lines" align="right"><pre>1
|
140
|
-
2
|
141
|
-
3
|
142
|
-
4
|
143
|
-
5
|
144
|
-
6
|
145
|
-
7
|
146
|
-
8
|
147
|
-
9
|
148
|
-
10
|
149
|
-
11
|
150
|
-
12
|
151
|
-
13
|
152
|
-
14
|
153
|
-
15
|
154
|
-
16
|
155
|
-
17
|
156
|
-
18
|
157
|
-
19
|
158
|
-
20
|
159
|
-
21
|
160
|
-
22</pre></td>
|
161
|
-
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
162
|
-
<span class="function">on_name_acquired</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GDBusConnection</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">connection</span><span class="symbol">,</span>
|
163
|
-
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">name</span><span class="symbol">,</span>
|
164
|
-
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
165
|
-
<span class="cbracket">{</span>
|
166
|
-
<span class="normal"> </span><span class="comment">/* further setup ... */</span>
|
167
|
-
<span class="cbracket">}</span>
|
168
|
-
|
169
|
-
<span class="comment">/* ... */</span>
|
170
|
-
|
171
|
-
<span class="normal"> owner_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gio-Owning-Bus-Names.html#g-bus-own-name">g_bus_own_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GDBusConnection.html#G-BUS-TYPE-SYSTEM:CAPS">G_BUS_TYPE_SYSTEM</a></span><span class="symbol">,</span>
|
172
|
-
<span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span>
|
173
|
-
<span class="normal"> <a href="gio-Owning-Bus-Names.html#G-BUS-NAME-OWNER-FLAGS-ALLOW-REPLACEMENT:CAPS">G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT</a></span><span class="symbol">,</span>
|
174
|
-
<span class="normal"> on_bus_acquired</span><span class="symbol">,</span>
|
175
|
-
<span class="normal"> on_name_acquired</span><span class="symbol">,</span>
|
176
|
-
<span class="normal"> on_name_lost</span><span class="symbol">,</span>
|
177
|
-
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
178
|
-
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
179
|
-
|
180
|
-
<span class="normal"> </span><span class="function"><a href="../glib/glib-The-Main-Event-Loop.html#g-main-loop-run">g_main_loop_run</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">loop</span><span class="symbol">);</span>
|
181
|
-
|
182
|
-
<span class="normal"> </span><span class="function"><a href="gio-Owning-Bus-Names.html#g-bus-unown-name">g_bus_unown_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">owner_id</span><span class="symbol">);</span></pre></td>
|
183
|
-
</tr>
|
184
|
-
</tbody>
|
185
|
-
</table>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
<p>
|
189
|
-
Note that <a class="link" href="gio-Owning-Bus-Names.html#g-bus-own-name" title="g_bus_own_name ()"><code class="function">g_bus_own_name()</code></a> works asynchronously and requires
|
190
|
-
you to enter your mainloop to await the <code class="function">on_name_aquired()</code>
|
191
|
-
callback. Also note that in order to avoid race conditions (e.g.
|
192
|
-
when your service is activated by a method call), you have to export
|
193
|
-
your manager object <span class="emphasis"><em>before</em></span> acquiring the
|
194
|
-
name. The <code class="function">on_bus_acquired()</code> callback is the right place to do
|
195
|
-
such preparations.
|
196
|
-
</p>
|
197
|
-
</div>
|
198
|
-
<div class="footer">
|
199
|
-
<hr>
|
200
|
-
Generated by GTK-Doc V1.17</div>
|
201
|
-
</body>
|
202
|
-
</html>
|