glib2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/glib2/extconf.rb +1 -0
- data/ext/glib2/glib2.def +23 -0
- data/ext/glib2/rbgcompat.h +19 -5
- data/ext/glib2/rbglib.c +607 -160
- data/ext/glib2/rbglib.h +81 -26
- data/ext/glib2/rbglib2conversions.h +57 -0
- data/ext/glib2/rbglib_bookmarkfile.c +117 -107
- data/ext/glib2/rbglib_completion.c +37 -26
- data/ext/glib2/rbglib_convert.c +42 -30
- data/ext/glib2/rbglib_error.c +20 -10
- data/ext/glib2/rbglib_fileutils.c +48 -37
- data/ext/glib2/rbglib_i18n.c +24 -14
- data/ext/glib2/rbglib_int64.c +24 -16
- data/ext/glib2/rbglib_iochannel.c +146 -204
- data/ext/glib2/rbglib_iochannel_win32_socket.c +56 -0
- data/ext/glib2/rbglib_iochannelerror.c +49 -0
- data/ext/glib2/rbglib_keyfile.c +171 -182
- data/ext/glib2/rbglib_maincontext.c +107 -92
- data/ext/glib2/rbglib_mainloop.c +34 -21
- data/ext/glib2/rbglib_messages.c +53 -44
- data/ext/glib2/rbglib_pollfd.c +37 -26
- data/ext/glib2/rbglib_shell.c +29 -22
- data/ext/glib2/rbglib_shellerror.c +34 -0
- data/ext/glib2/rbglib_source.c +49 -36
- data/ext/glib2/rbglib_spawn.c +50 -61
- data/ext/glib2/rbglib_spawnerror.c +53 -0
- data/ext/glib2/rbglib_threads.c +28 -16
- data/ext/glib2/rbglib_timer.c +35 -24
- data/ext/glib2/rbglib_ucs4.c +79 -0
- data/ext/glib2/rbglib_unichar.c +209 -0
- data/ext/glib2/rbglib_unicode.c +34 -584
- data/ext/glib2/rbglib_utf16.c +78 -0
- data/ext/glib2/rbglib_utf8.c +259 -0
- data/ext/glib2/rbglib_utils.c +95 -91
- data/ext/glib2/rbglib_win32.c +52 -45
- data/ext/glib2/rbglibdeprecated.c +56 -0
- data/ext/glib2/rbglibdeprecated.h +34 -0
- data/ext/glib2/rbgobj_boxed.c +40 -33
- data/ext/glib2/rbgobj_closure.c +45 -34
- data/ext/glib2/rbgobj_convert.c +19 -9
- data/ext/glib2/rbgobj_enumflags.c +109 -0
- data/ext/glib2/rbgobj_enums.c +67 -646
- data/ext/glib2/rbgobj_flags.c +522 -0
- data/ext/glib2/rbgobj_fundamental.c +19 -6
- data/ext/glib2/rbgobj_object.c +90 -81
- data/ext/glib2/rbgobj_param.c +78 -83
- data/ext/glib2/rbgobj_paramspecs.c +20 -12
- data/ext/glib2/rbgobj_signal.c +248 -193
- data/ext/glib2/rbgobj_strv.c +20 -10
- data/ext/glib2/rbgobj_type.c +153 -149
- data/ext/glib2/rbgobj_typeinstance.c +49 -39
- data/ext/glib2/rbgobj_typeinterface.c +37 -27
- data/ext/glib2/rbgobj_typemodule.c +39 -29
- data/ext/glib2/rbgobj_typeplugin.c +36 -26
- data/ext/glib2/rbgobj_value.c +41 -11
- data/ext/glib2/rbgobj_valuearray.c +59 -23
- data/ext/glib2/rbgobj_valuetypes.c +27 -17
- data/ext/glib2/rbgobject.c +26 -40
- data/ext/glib2/rbgobject.h +38 -20
- data/ext/glib2/rbgprivate.h +87 -5
- data/ext/glib2/rbgutil.c +52 -238
- data/ext/glib2/rbgutil.h +55 -42
- data/ext/glib2/rbgutil_callback.c +47 -12
- data/ext/glib2/rbgutil_list.c +173 -0
- data/ext/glib2/rbgutil_list.h +85 -0
- data/ext/glib2/rbgutildeprecated.c +252 -0
- data/ext/glib2/rbgutildeprecated.h +63 -0
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib-mkenums.rb +2 -2
- data/lib/glib2.rb +2 -25
- data/lib/glib2/deprecatable.rb +149 -0
- data/lib/gnome2-raketask.rb +45 -15
- data/lib/gnome2-win32-binary-downloader.rb +1 -1
- data/lib/mkmf-gnome2.rb +37 -18
- data/test/test_flags.rb +129 -0
- data/test/test_key_file.rb +6 -2
- data/test/test_spawn.rb +33 -0
- data/vendor/local/bin/gdbus.exe +0 -0
- data/vendor/local/bin/gio-querymodules.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 +2 -2
- data/vendor/local/bin/glib-mkenums +1 -1
- 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/etc/bash_completion.d/gdbus-bash-completion.sh +33 -0
- data/vendor/local/etc/bash_completion.d/gsettings-bash-completion.sh +67 -0
- data/vendor/local/include/gio-win32-2.0/gio/gwin32inputstream.h +79 -0
- data/vendor/local/include/gio-win32-2.0/gio/gwin32outputstream.h +78 -0
- data/vendor/local/include/glib-2.0/gio/gapplication.h +13 -7
- data/vendor/local/include/glib-2.0/gio/gioenums.h +16 -5
- data/vendor/local/include/glib-2.0/glib/gconvert.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gdir.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +2 -0
- data/vendor/local/include/glib-2.0/glib/giochannel.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gspawn.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gutils.h +6 -2
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +10 -10
- data/vendor/local/include/glib-2.0/gobject/gtype.h +1 -1
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +9 -1
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +1 -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.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 +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-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.28.1-1_win32.mft → glib-dev_2.28.8-1_win32.mft} +33 -20
- data/vendor/local/manifest/{glib_2.28.1-1_win32.mft → glib_2.28.8-1_win32.mft} +3 -3
- data/vendor/local/share/aclocal/gsettings.m4 +83 -0
- data/vendor/local/share/doc/{glib-2.28.1 → glib-2.28.8}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.28.1 → glib-dev-2.28.8}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +0 -0
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +115 -32
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +329 -312
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +95 -40
- data/vendor/local/share/gtk-doc/html/gio/GDBusError.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +6 -4
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +21 -11
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +3 -4
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +9 -7
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +11 -4
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GSrvTarget.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/application.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/async.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch28s02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch28s03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch28s04.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch28s05.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch28s06.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch28s07.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch29s04.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch29s05.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch29s06.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/extending.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +9 -9
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +6 -5
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +8 -8
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +8 -8
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +7 -5
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/icons.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/index.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/networking.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/settings.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/tls.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/tools.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/types.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/utils.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +99 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +2 -2
- 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 +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +147 -49
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +123 -94
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +52 -47
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +4 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +5 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +83 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +6 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +2 -2
- 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 +287 -52
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +19 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +17 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +16 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +47 -47
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +49 -49
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +49 -49
- data/vendor/local/share/gtk-doc/html/glib/glib.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +1 -0
- data/vendor/local/share/gtk-doc/html/glib/tools.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +8 -3
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +5 -3
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/index.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +2 -2
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/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/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/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/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/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/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/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/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/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/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/gdbus.1 +249 -0
- data/vendor/local/share/man/man1/gio-querymodules.1 +44 -0
- data/vendor/local/share/man/man1/glib-compile-schemas.1 +86 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
- data/vendor/local/share/man/man1/glib-gettextize.1 +80 -0
- 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/share/man/man1/gsettings.1 +153 -0
- data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.log +2919 -0
- data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.sh +157 -0
- metadata +45 -13
- data/ChangeLog +0 -3513
- data/vendor/local/src/tml/packaging/glib_2.28.1-1_win32.log +0 -2775
- data/vendor/local/src/tml/packaging/glib_2.28.1-1_win32.sh +0 -62
data/ext/glib2/rbglib.h
CHANGED
@@ -1,19 +1,31 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011-2012 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2002-2005 Ruby-GNOME2 Project
|
5
|
+
* Copyright (C) 2002,2003 Masahiro Sakai
|
6
|
+
*
|
7
|
+
* This library is free software; you can redistribute it and/or
|
8
|
+
* modify it under the terms of the GNU Lesser General Public
|
9
|
+
* License as published by the Free Software Foundation; either
|
10
|
+
* version 2.1 of the License, or (at your option) any later version.
|
11
|
+
*
|
12
|
+
* This library is distributed in the hope that it will be useful,
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
+
* Lesser General Public License for more details.
|
16
|
+
*
|
17
|
+
* You should have received a copy of the GNU Lesser General Public
|
18
|
+
* License along with this library; if not, write to the Free Software
|
19
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20
|
+
* MA 02110-1301 USA
|
21
|
+
*/
|
13
22
|
|
14
23
|
#include <glib.h>
|
15
24
|
#include "ruby.h"
|
16
25
|
|
26
|
+
#include "rbglibdeprecated.h"
|
27
|
+
#include "rbglib2conversions.h"
|
28
|
+
|
17
29
|
#ifndef __RBGLIB_H__
|
18
30
|
#define __RBGLIB_H__
|
19
31
|
|
@@ -22,8 +34,8 @@ extern "C" {
|
|
22
34
|
#endif /* __cplusplus */
|
23
35
|
|
24
36
|
#define RBGLIB_MAJOR_VERSION 1
|
25
|
-
#define RBGLIB_MINOR_VERSION
|
26
|
-
#define RBGLIB_MICRO_VERSION
|
37
|
+
#define RBGLIB_MINOR_VERSION 1
|
38
|
+
#define RBGLIB_MICRO_VERSION 0
|
27
39
|
|
28
40
|
#ifndef RSTRING_PTR
|
29
41
|
# define RSTRING_PTR(s) (RSTRING(s)->ptr)
|
@@ -45,29 +57,56 @@ typedef int GPid;
|
|
45
57
|
|
46
58
|
#define RBG_INSPECT(object) (rbg_rval_inspect(object))
|
47
59
|
|
48
|
-
#define RVAL2CSTR(v) (rbg_rval2cstr(&v))
|
49
|
-
#define RVAL2CSTR_ACCEPT_NIL(v) (rbg_rval2cstr_accept_nil(&v))
|
60
|
+
#define RVAL2CSTR(v) (rbg_rval2cstr(&(v)))
|
61
|
+
#define RVAL2CSTR_ACCEPT_NIL(v) (rbg_rval2cstr_accept_nil(&(v)))
|
50
62
|
#define RVAL2CSTR2(v) (RVAL2CSTR_ACCEPT_NIL(v))
|
63
|
+
#define RVAL2CSTR_ACCEPT_SYMBOL(v) (rbg_rval2cstr_accept_symbol(&(v)))
|
64
|
+
#define RVAL2CSTR_ACCEPT_SYMBOL_ACCEPT_NIL(v) (rbg_rval2cstr_accept_symbol_accept_nil(&(v)))
|
65
|
+
#define RVAL2GLIBID(v, buf) (rbg_rval2glibid(&(v), &(buf), FALSE))
|
66
|
+
#define RVAL2GLIBID_ACCEPT_NIL(v, buf) (rbg_rval2glibid(&(v), &(buf), TRUE))
|
51
67
|
#define CSTR2RVAL(s) (rbg_cstr2rval(s))
|
52
68
|
#define CSTR2RVAL_LEN(s, l) (rbg_cstr2rval_len(s, l))
|
69
|
+
#define CSTR2RVAL_LEN_FREE(s, l) (rbg_cstr2rval_len_free(s, l))
|
53
70
|
#define CSTR2RVAL_ENC(s, e) (rbg_cstr2rval_with_encoding(s, e))
|
54
71
|
#define CSTR2RVAL_LEN_ENC(s, l, e) (rbg_cstr2rval_len_with_encoding(s, l, e))
|
55
72
|
#define CSTR2RVAL_FREE(s) (rbg_cstr2rval_free(s))
|
56
73
|
#define CSTR2RVAL2(s) (CSTR2RVAL_FREE(s))
|
57
74
|
|
75
|
+
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
76
|
+
# define CSTR2RVAL_LEN_UCS4(s, l) (CSTR2RVAL_LEN_ENC(s, l, "UTF-32LE"))
|
77
|
+
# define CSTR2RVAL_LEN_UTF16(s, l) (CSTR2RVAL_LEN_ENC(s, l, "UTF-16LE"))
|
78
|
+
#else
|
79
|
+
# define CSTR2RVAL_LEN_UCS4(s, l) (CSTR2RVAL_LEN_ENC(s, l, "UTF-32BE"))
|
80
|
+
# define CSTR2RVAL_LEN_UTF16(s, l) (CSTR2RVAL_LEN_ENC(s, l, "UTF-16BE"))
|
81
|
+
#endif
|
82
|
+
|
58
83
|
#define RVAL2CSTRFILENAME(v) (rbg_filename_from_ruby(v))
|
59
84
|
#define CSTRFILENAME2RVAL(s) (rbg_filename_to_ruby(s))
|
60
85
|
#define CSTRFILENAME2RVAL_FREE(s) (rbg_filename_to_ruby_free(s))
|
61
|
-
#define CSTRFILENAMEARRAY2RVAL_FREE(s) (rbg_filename_gslist_to_array_free(s))
|
62
86
|
|
63
|
-
#define
|
64
|
-
#define
|
65
|
-
#define
|
66
|
-
#define
|
87
|
+
#define RVAL2STRS(ary, n) rbg_rval2strv(&(ary), &(n))
|
88
|
+
#define RVAL2STRS_ACCEPT_NIL(ary, n) rbg_rval2strv_accept_nil(&(ary), &(n))
|
89
|
+
#define RVAL2STRV(ary) rbg_rval2strv(&(ary), NULL)
|
90
|
+
#define RVAL2STRV_ACCEPT_NIL(ary) rbg_rval2strv_accept_nil(&(ary), NULL)
|
91
|
+
#define RVAL2STRS_DUP(ary, n) rbg_rval2strv_dup(&(ary), &(n))
|
92
|
+
#define RVAL2STRS_DUP_ACCEPT_NIL(ary, n) rbg_rval2strv_dup_accept_nil(&(ary), &(n))
|
93
|
+
#define RVAL2STRV_DUP(ary) rbg_rval2strv_dup(&(ary), NULL)
|
94
|
+
#define RVAL2STRV_DUP_ACCEPT_NIL(ary) rbg_rval2strv_dup_accept_nil(&(ary), NULL)
|
67
95
|
|
68
96
|
#define STRV2RVAL(strings) rbg_strv2rval(strings)
|
69
97
|
#define STRV2RVAL_FREE(strings) rbg_strv2rval_free(strings)
|
70
98
|
|
99
|
+
#define RVAL2GBOOLEANS(ary, n) rbg_rval2gbooleans(&(ary), &(n))
|
100
|
+
#define RVAL2GINTS(ary, n) rbg_rval2gints(&(ary), &(n))
|
101
|
+
#define RVAL2GINT8S(ary, n) rbg_rval2gint8s(&(ary), &(n))
|
102
|
+
#define RVAL2GUINT8S(ary, n) rbg_rval2guint8s(&(ary), &(n))
|
103
|
+
#define RVAL2GUINT16S(ary, n) rbg_rval2guint16s(&(ary), &(n))
|
104
|
+
#define RVAL2GUINT32S(ary, n) rbg_rval2guint32s(&(ary), &(n))
|
105
|
+
#define RVAL2GDOUBLES(ary, n) rbg_rval2gdoubles(&(ary), &(n))
|
106
|
+
|
107
|
+
#define GINTS2RVAL(ary, n) rbg_gints2rval(ary, n)
|
108
|
+
#define GINTS2RVAL_FREE(ary, n) rbg_gints2rval(ary, n)
|
109
|
+
|
71
110
|
#define CBOOL2RVAL(b) ((b) ? Qtrue : Qfalse)
|
72
111
|
#define RVAL2CBOOL(b) (RTEST(b))
|
73
112
|
#define GERROR2RVAL(error) (rbgerr_gerror2exception(error))
|
@@ -94,8 +133,13 @@ extern const gchar *rbg_rval_inspect(VALUE object);
|
|
94
133
|
extern gchar* rbg_string_value_ptr(volatile VALUE* ptr); /* no longer used */
|
95
134
|
extern const gchar *rbg_rval2cstr(VALUE *str);
|
96
135
|
extern const gchar *rbg_rval2cstr_accept_nil(VALUE *str);
|
136
|
+
extern const gchar *rbg_rval2cstr_accept_symbol(volatile VALUE *value);
|
137
|
+
extern const gchar *rbg_rval2cstr_accept_symbol_accept_nil(volatile VALUE *value);
|
138
|
+
extern const gchar *rbg_rval2glibid(volatile VALUE *value, volatile VALUE *buf, gboolean accept_nil);
|
139
|
+
|
97
140
|
extern VALUE rbg_cstr2rval(const gchar* str);
|
98
141
|
extern VALUE rbg_cstr2rval_len(const gchar* str, gsize len);
|
142
|
+
extern VALUE rbg_cstr2rval_len_free(gchar *str, gsize len);
|
99
143
|
extern VALUE rbg_cstr2rval_with_encoding(const gchar* str,
|
100
144
|
const gchar *encoding);
|
101
145
|
extern VALUE rbg_cstr2rval_len_with_encoding(const gchar* str, gsize len,
|
@@ -107,16 +151,27 @@ extern VALUE rbg_cstr2rval_with_free(gchar *str);
|
|
107
151
|
VALUE rbg_filename_to_ruby(const gchar *filename);
|
108
152
|
extern VALUE rbg_filename_to_ruby_free(gchar *filename);
|
109
153
|
extern gchar *rbg_filename_from_ruby(VALUE filename);
|
110
|
-
extern VALUE rbg_filename_gslist_to_array_free(GSList *list);
|
111
154
|
|
112
|
-
const gchar **rbg_rval2strv(VALUE
|
113
|
-
const gchar **rbg_rval2strv_accept_nil(VALUE
|
114
|
-
gchar **rbg_rval2strv_dup(VALUE
|
115
|
-
gchar **rbg_rval2strv_dup_accept_nil(VALUE
|
116
|
-
const gchar **rbg_rval2argv(VALUE ary);
|
155
|
+
const gchar **rbg_rval2strv(volatile VALUE *value, long *n);
|
156
|
+
const gchar **rbg_rval2strv_accept_nil(volatile VALUE *value, long *n);
|
157
|
+
gchar **rbg_rval2strv_dup(volatile VALUE *value, long *n);
|
158
|
+
gchar **rbg_rval2strv_dup_accept_nil(volatile VALUE *value, long *n);
|
117
159
|
VALUE rbg_strv2rval(const gchar **strings);
|
118
160
|
VALUE rbg_strv2rval_free(gchar **strings);
|
119
161
|
|
162
|
+
gboolean *rbg_rval2gbooleans(volatile VALUE *value, long *n);
|
163
|
+
gint *rbg_rval2gints(volatile VALUE *value, long *n);
|
164
|
+
gint8 *rbg_rval2gint8s(volatile VALUE *value, long *n);
|
165
|
+
guint8 *rbg_rval2guint8s(volatile VALUE *value, long *n);
|
166
|
+
guint16 *rbg_rval2guint16s(volatile VALUE *value, long *n);
|
167
|
+
guint32 *rbg_rval2guint32s(volatile VALUE *value, long *n);
|
168
|
+
gdouble *rbg_rval2gdoubles(volatile VALUE *value, long *n);
|
169
|
+
|
170
|
+
VALUE rbg_gints2rval(const gint *gints, long n);
|
171
|
+
VALUE rbg_gints2rval_free(gint *gints, long n);
|
172
|
+
|
173
|
+
extern void rbg_scan_options(VALUE options, ...);
|
174
|
+
|
120
175
|
/* rbgerror.h */
|
121
176
|
extern VALUE rbgerr_gerror2exception(GError *error);
|
122
177
|
extern VALUE rbgerr_define_gerror(GQuark domain, const gchar* name, VALUE module, VALUE parent, VALUE gtype);
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18
|
+
* MA 02110-1301 USA
|
19
|
+
*/
|
20
|
+
|
21
|
+
#ifndef __GLIB2CONVERSIONS_H__
|
22
|
+
#define __GLIB2CONVERSIONS_H__
|
23
|
+
|
24
|
+
#define RVAL2GPARAMSPEC(o) (G_PARAM_SPEC(RVAL2GOBJ(o)))
|
25
|
+
|
26
|
+
#define RVAL2GCLOSURE(o) ((GClosure*)RVAL2BOXED(o, G_TYPE_CLOSURE))
|
27
|
+
#define GCLOSURE2RVAL(o) (BOXED2RVAL(o, G_TYPE_CLOSURE))
|
28
|
+
#define RVAL2GCOMPLETION(o) ((GCompletion*)RVAL2BOXED(o, G_TYPE_COMPLETION))
|
29
|
+
#define GCOMPLETION2RVAL(o) (BOXED2RVAL(o, G_TYPE_COMPLETION))
|
30
|
+
#define RVAL2GIOCHANNEL(o) ((GIOChannel*)RVAL2BOXED(o, G_TYPE_IO_CHANNEL))
|
31
|
+
#define GIOCHANNEL2RVAL(o) (BOXED2RVAL(o, G_TYPE_IO_CHANNEL))
|
32
|
+
#define RVAL2GKEYFILE(o) ((GKeyFile*)RVAL2BOXED(o, G_TYPE_KEY_FILE))
|
33
|
+
#define GKEYFILE2RVAL(o) (BOXED2RVAL(o, G_TYPE_KEY_FILE))
|
34
|
+
#define RVAL2GMAINCONTEXT(o) ((GMainContext*)RVAL2BOXED(o, G_TYPE_MAIN_CONTEXT))
|
35
|
+
#define GMAINCONTEXT2RVAL(o) (BOXED2RVAL(o, G_TYPE_MAIN_CONTEXT))
|
36
|
+
#define RVAL2GMAINLOOP(o) ((GMainLoop*)RVAL2BOXED(o, G_TYPE_MAIN_LOOP))
|
37
|
+
#define GMAINLOOP2RVAL(o) (BOXED2RVAL(o, G_TYPE_MAIN_LOOP))
|
38
|
+
#define RVAL2GPOLLFD(o) ((GPollFD*)RVAL2BOXED(o, G_TYPE_POLL_FD))
|
39
|
+
#define GPOLLFD2RVAL(o) (BOXED2RVAL(o, G_TYPE_POLL_FD))
|
40
|
+
#define RVAL2GSOURCE(o) ((GSource*)RVAL2BOXED(o, G_TYPE_SOURCE))
|
41
|
+
#define GSOURCE2RVAL(o) (BOXED2RVAL(o, G_TYPE_SOURCE))
|
42
|
+
#define RVAL2GTIMER(o) ((GTimer*)RVAL2BOXED(o, G_TYPE_TIMER))
|
43
|
+
#define GTIMER2RVAL(o) (BOXED2RVAL(o, G_TYPE_TIMER))
|
44
|
+
#define RVAL2GVALUE(o) ((GValue*)RVAL2BOXED(o, G_TYPE_VALUE))
|
45
|
+
#define GVALUE2RVAL(o) (BOXED2RVAL(o, G_TYPE_VALUE))
|
46
|
+
|
47
|
+
#define RVAL2GIOCONDITION(o) (RVAL2GENUM(o, G_TYPE_IO_CONDITION))
|
48
|
+
#define GIOCONDITION2RVAL(o) (GENUM2RVAL(o, G_TYPE_IO_CONDITION))
|
49
|
+
#define RVAL2GNORMALIZEMODE(o) (RVAL2GENUM(o, G_TYPE_NORMALIZE_MODE))
|
50
|
+
#define GNORMALIZEMODE2RVAL(o) (GENUM2RVAL(o, G_TYPE_NORMALIZE_MODE))
|
51
|
+
|
52
|
+
#define RVAL2GCONNECTFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_CONNECT_FLAGS))
|
53
|
+
#define GCONNECTFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_CONNECT_FLAGS))
|
54
|
+
#define RVAL2GKEYFILEFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_KEY_FILE_FLAGS))
|
55
|
+
#define GKEYFILEFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_KEY_FILE_FLAGS))
|
56
|
+
|
57
|
+
#endif /* __GLIB2CONVERSIONS_H__ */
|
@@ -1,13 +1,23 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2006 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
11
21
|
|
12
22
|
#include "rbgprivate.h"
|
13
23
|
|
@@ -26,8 +36,7 @@ bookmarkfile_copy(const GBookmarkFile* file)
|
|
26
36
|
return (GBookmarkFile*)file;
|
27
37
|
}
|
28
38
|
|
29
|
-
|
30
|
-
GType
|
39
|
+
static GType
|
31
40
|
g_bookmark_file_get_type(void)
|
32
41
|
{
|
33
42
|
static GType our_type = 0;
|
@@ -40,17 +49,19 @@ g_bookmark_file_get_type(void)
|
|
40
49
|
/************************************************/
|
41
50
|
|
42
51
|
#define G_TYPE_BOOKMARK_FILE (g_bookmark_file_get_type())
|
52
|
+
|
53
|
+
#define RG_TARGET_NAMESPACE cBookmarkFile
|
43
54
|
#define _SELF(self) ((GBookmarkFile*)(RVAL2BOXED(self, G_TYPE_BOOKMARK_FILE)))
|
44
55
|
|
45
56
|
static VALUE
|
46
|
-
|
57
|
+
rg_initialize(VALUE self)
|
47
58
|
{
|
48
59
|
G_INITIALIZE(self, g_bookmark_file_new());
|
49
60
|
return Qnil;
|
50
61
|
}
|
51
62
|
|
52
63
|
static VALUE
|
53
|
-
|
64
|
+
rg_load_from_file(VALUE self, VALUE rbfilename)
|
54
65
|
{
|
55
66
|
gchar *filename = RVAL2CSTRFILENAME(rbfilename);
|
56
67
|
GError* error = NULL;
|
@@ -63,22 +74,22 @@ bf_load_from_file(VALUE self, VALUE rbfilename)
|
|
63
74
|
}
|
64
75
|
|
65
76
|
static VALUE
|
66
|
-
|
77
|
+
rg_load_from_data(VALUE self, VALUE data)
|
67
78
|
{
|
68
79
|
GError *error = NULL;
|
69
80
|
|
70
81
|
StringValue(data);
|
71
82
|
if (!g_bookmark_file_load_from_data(_SELF(self),
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
83
|
+
RSTRING_PTR(data),
|
84
|
+
RSTRING_LEN(data),
|
85
|
+
&error))
|
86
|
+
RAISE_GERROR(error);
|
76
87
|
|
77
88
|
return Qnil;
|
78
89
|
}
|
79
90
|
|
80
91
|
static VALUE
|
81
|
-
|
92
|
+
rg_load_from_data_dirs(VALUE self, VALUE file)
|
82
93
|
{
|
83
94
|
GError* error = NULL;
|
84
95
|
gboolean ret;
|
@@ -94,18 +105,18 @@ bf_load_from_data_dirs(VALUE self, VALUE file)
|
|
94
105
|
}
|
95
106
|
|
96
107
|
static VALUE
|
97
|
-
|
108
|
+
rg_to_data(VALUE self)
|
98
109
|
{
|
99
110
|
GError* error = NULL;
|
100
111
|
gchar* data = g_bookmark_file_to_data(_SELF(self), NULL, &error);
|
101
112
|
|
102
113
|
if (error) RAISE_GERROR(error);
|
103
|
-
|
114
|
+
|
104
115
|
return CSTR2RVAL_FREE(data);
|
105
116
|
}
|
106
117
|
|
107
118
|
static VALUE
|
108
|
-
|
119
|
+
rg_to_file(VALUE self, VALUE rbfilename)
|
109
120
|
{
|
110
121
|
gchar *filename = RVAL2CSTRFILENAME(rbfilename);
|
111
122
|
GError* error = NULL;
|
@@ -118,14 +129,14 @@ bf_to_file(VALUE self, VALUE rbfilename)
|
|
118
129
|
}
|
119
130
|
|
120
131
|
static VALUE
|
121
|
-
|
132
|
+
rg_has_item_p(VALUE self, VALUE uri)
|
122
133
|
{
|
123
134
|
return CBOOL2RVAL(g_bookmark_file_has_item(_SELF(self),
|
124
135
|
RVAL2CSTR(uri)));
|
125
136
|
}
|
126
137
|
|
127
138
|
static VALUE
|
128
|
-
|
139
|
+
rg_has_group_p(VALUE self, VALUE uri, VALUE group)
|
129
140
|
{
|
130
141
|
GError* error = NULL;
|
131
142
|
return CBOOL2RVAL(g_bookmark_file_has_group(_SELF(self),
|
@@ -133,9 +144,9 @@ bf_has_group(VALUE self, VALUE uri, VALUE group)
|
|
133
144
|
RVAL2CSTR(group),
|
134
145
|
&error));
|
135
146
|
}
|
136
|
-
|
147
|
+
|
137
148
|
static VALUE
|
138
|
-
|
149
|
+
rg_has_application_p(VALUE self, VALUE uri, VALUE name)
|
139
150
|
{
|
140
151
|
GError* error = NULL;
|
141
152
|
return CBOOL2RVAL(g_bookmark_file_has_application(_SELF(self),
|
@@ -143,21 +154,21 @@ bf_has_application(VALUE self, VALUE uri, VALUE name)
|
|
143
154
|
RVAL2CSTR(name),
|
144
155
|
&error));
|
145
156
|
}
|
146
|
-
|
157
|
+
|
147
158
|
static VALUE
|
148
|
-
|
159
|
+
rg_size(VALUE self)
|
149
160
|
{
|
150
161
|
return INT2NUM(g_bookmark_file_get_size(_SELF(self)));
|
151
162
|
}
|
152
163
|
|
153
164
|
static VALUE
|
154
|
-
|
165
|
+
rg_uris(VALUE self)
|
155
166
|
{
|
156
167
|
return STRV2RVAL_FREE(g_bookmark_file_get_uris(_SELF(self), NULL));
|
157
168
|
}
|
158
169
|
|
159
170
|
static VALUE
|
160
|
-
|
171
|
+
rg_get_title(VALUE self, VALUE uri)
|
161
172
|
{
|
162
173
|
GError *error = NULL;
|
163
174
|
gchar* ret = g_bookmark_file_get_title(_SELF(self),
|
@@ -168,7 +179,7 @@ bf_get_title(VALUE self, VALUE uri)
|
|
168
179
|
}
|
169
180
|
|
170
181
|
static VALUE
|
171
|
-
|
182
|
+
rg_get_description(VALUE self, VALUE uri)
|
172
183
|
{
|
173
184
|
GError *error = NULL;
|
174
185
|
gchar* ret = g_bookmark_file_get_description(_SELF(self),
|
@@ -179,7 +190,7 @@ bf_get_description(VALUE self, VALUE uri)
|
|
179
190
|
}
|
180
191
|
|
181
192
|
static VALUE
|
182
|
-
|
193
|
+
rg_get_mime_type(VALUE self, VALUE uri)
|
183
194
|
{
|
184
195
|
GError *error = NULL;
|
185
196
|
gchar* ret = g_bookmark_file_get_mime_type(_SELF(self),
|
@@ -190,7 +201,7 @@ bf_get_mime_type(VALUE self, VALUE uri)
|
|
190
201
|
}
|
191
202
|
|
192
203
|
static VALUE
|
193
|
-
|
204
|
+
rg_private_p(VALUE self, VALUE uri)
|
194
205
|
{
|
195
206
|
GError *error = NULL;
|
196
207
|
gboolean ret = g_bookmark_file_get_is_private(_SELF(self),
|
@@ -201,7 +212,7 @@ bf_get_is_private(VALUE self, VALUE uri)
|
|
201
212
|
}
|
202
213
|
|
203
214
|
static VALUE
|
204
|
-
|
215
|
+
rg_get_icon(VALUE self, VALUE uri)
|
205
216
|
{
|
206
217
|
gchar* href;
|
207
218
|
gchar* mime_type;
|
@@ -218,7 +229,7 @@ bf_get_icon(VALUE self, VALUE uri)
|
|
218
229
|
}
|
219
230
|
|
220
231
|
static VALUE
|
221
|
-
|
232
|
+
rg_get_added(VALUE self, VALUE uri)
|
222
233
|
{
|
223
234
|
GError *error = NULL;
|
224
235
|
time_t ret = g_bookmark_file_get_added(_SELF(self),
|
@@ -230,7 +241,7 @@ bf_get_added(VALUE self, VALUE uri)
|
|
230
241
|
}
|
231
242
|
|
232
243
|
static VALUE
|
233
|
-
|
244
|
+
rg_get_modified(VALUE self, VALUE uri)
|
234
245
|
{
|
235
246
|
GError *error = NULL;
|
236
247
|
time_t ret = g_bookmark_file_get_modified(_SELF(self),
|
@@ -242,7 +253,7 @@ bf_get_modified(VALUE self, VALUE uri)
|
|
242
253
|
}
|
243
254
|
|
244
255
|
static VALUE
|
245
|
-
|
256
|
+
rg_get_visited(VALUE self, VALUE uri)
|
246
257
|
{
|
247
258
|
GError *error = NULL;
|
248
259
|
time_t ret = g_bookmark_file_get_visited(_SELF(self),
|
@@ -254,7 +265,7 @@ bf_get_visited(VALUE self, VALUE uri)
|
|
254
265
|
}
|
255
266
|
|
256
267
|
static VALUE
|
257
|
-
|
268
|
+
rg_get_groups(VALUE self, VALUE uri)
|
258
269
|
{
|
259
270
|
gsize length;
|
260
271
|
VALUE ary;
|
@@ -264,7 +275,6 @@ bf_get_groups(VALUE self, VALUE uri)
|
|
264
275
|
RVAL2CSTR(uri),
|
265
276
|
&length, &error);
|
266
277
|
if (error) RAISE_GERROR(error);
|
267
|
-
|
268
278
|
|
269
279
|
ary = rb_ary_new();
|
270
280
|
for(i = 0; i < length; i++){
|
@@ -276,7 +286,7 @@ bf_get_groups(VALUE self, VALUE uri)
|
|
276
286
|
}
|
277
287
|
|
278
288
|
static VALUE
|
279
|
-
|
289
|
+
rg_get_applications(VALUE self, VALUE uri)
|
280
290
|
{
|
281
291
|
gsize length;
|
282
292
|
VALUE ary;
|
@@ -286,7 +296,6 @@ bf_get_applications(VALUE self, VALUE uri)
|
|
286
296
|
RVAL2CSTR(uri),
|
287
297
|
&length, &error);
|
288
298
|
if (error) RAISE_GERROR(error);
|
289
|
-
|
290
299
|
|
291
300
|
ary = rb_ary_new();
|
292
301
|
for(i = 0; i < length; i++){
|
@@ -296,9 +305,9 @@ bf_get_applications(VALUE self, VALUE uri)
|
|
296
305
|
g_strfreev(ret);
|
297
306
|
return ary;
|
298
307
|
}
|
299
|
-
|
308
|
+
|
300
309
|
static VALUE
|
301
|
-
|
310
|
+
rg_get_app_info(VALUE self, VALUE uri, VALUE name)
|
302
311
|
{
|
303
312
|
gchar* exec;
|
304
313
|
guint count;
|
@@ -310,12 +319,12 @@ bf_get_app_info(VALUE self, VALUE uri, VALUE name)
|
|
310
319
|
RVAL2CSTR(name),
|
311
320
|
&exec, &count, &stamp, &error);
|
312
321
|
if (!ret) RAISE_GERROR(error);
|
313
|
-
|
322
|
+
|
314
323
|
return rb_ary_new3(3, CSTR2RVAL(exec), UINT2NUM(count), rb_time_new(stamp, 0));
|
315
324
|
}
|
316
325
|
|
317
326
|
static VALUE
|
318
|
-
|
327
|
+
rg_set_title(VALUE self, VALUE uri, VALUE title)
|
319
328
|
{
|
320
329
|
g_bookmark_file_set_title(_SELF(self),
|
321
330
|
RVAL2CSTR(uri),
|
@@ -324,7 +333,7 @@ bf_set_title(VALUE self, VALUE uri, VALUE title)
|
|
324
333
|
}
|
325
334
|
|
326
335
|
static VALUE
|
327
|
-
|
336
|
+
rg_set_description(VALUE self, VALUE uri, VALUE description)
|
328
337
|
{
|
329
338
|
g_bookmark_file_set_description(_SELF(self),
|
330
339
|
RVAL2CSTR(uri),
|
@@ -333,7 +342,7 @@ bf_set_description(VALUE self, VALUE uri, VALUE description)
|
|
333
342
|
}
|
334
343
|
|
335
344
|
static VALUE
|
336
|
-
|
345
|
+
rg_set_mime_type(VALUE self, VALUE uri, VALUE mime_type)
|
337
346
|
{
|
338
347
|
g_bookmark_file_set_mime_type(_SELF(self),
|
339
348
|
RVAL2CSTR(uri),
|
@@ -342,7 +351,7 @@ bf_set_mime_type(VALUE self, VALUE uri, VALUE mime_type)
|
|
342
351
|
}
|
343
352
|
|
344
353
|
static VALUE
|
345
|
-
|
354
|
+
rg_set_private(VALUE self, VALUE uri, VALUE is_private)
|
346
355
|
{
|
347
356
|
g_bookmark_file_set_is_private(_SELF(self),
|
348
357
|
RVAL2CSTR(uri),
|
@@ -351,7 +360,7 @@ bf_set_is_private(VALUE self, VALUE uri, VALUE is_private)
|
|
351
360
|
}
|
352
361
|
|
353
362
|
static VALUE
|
354
|
-
|
363
|
+
rg_set_icon(VALUE self, VALUE uri, VALUE href, VALUE mime_type)
|
355
364
|
{
|
356
365
|
g_bookmark_file_set_icon(_SELF(self),
|
357
366
|
RVAL2CSTR(uri),
|
@@ -361,7 +370,7 @@ bf_set_icon(VALUE self, VALUE uri, VALUE href, VALUE mime_type)
|
|
361
370
|
}
|
362
371
|
|
363
372
|
static VALUE
|
364
|
-
|
373
|
+
rg_set_added(VALUE self, VALUE uri, VALUE time)
|
365
374
|
{
|
366
375
|
g_bookmark_file_set_added(_SELF(self),
|
367
376
|
RVAL2CSTR(uri),
|
@@ -370,12 +379,14 @@ bf_set_added(VALUE self, VALUE uri, VALUE time)
|
|
370
379
|
}
|
371
380
|
|
372
381
|
static VALUE
|
373
|
-
|
382
|
+
rg_set_groups(VALUE self, VALUE rburi, VALUE rbgroups)
|
374
383
|
{
|
375
|
-
|
376
|
-
const gchar
|
377
|
-
|
378
|
-
|
384
|
+
GBookmarkFile *bookmark = _SELF(self);
|
385
|
+
const gchar *uri = RVAL2CSTR(rburi);
|
386
|
+
long n;
|
387
|
+
const gchar **groups = RVAL2STRS(rbgroups, n);
|
388
|
+
|
389
|
+
g_bookmark_file_set_groups(bookmark, uri, groups, n);
|
379
390
|
|
380
391
|
g_free(groups);
|
381
392
|
|
@@ -383,7 +394,7 @@ bf_set_groups(VALUE self, VALUE uri, VALUE rbgroups)
|
|
383
394
|
}
|
384
395
|
|
385
396
|
static VALUE
|
386
|
-
|
397
|
+
rg_set_modified(VALUE self, VALUE uri, VALUE time)
|
387
398
|
{
|
388
399
|
g_bookmark_file_set_modified(_SELF(self),
|
389
400
|
RVAL2CSTR(uri),
|
@@ -392,7 +403,7 @@ bf_set_modified(VALUE self, VALUE uri, VALUE time)
|
|
392
403
|
}
|
393
404
|
|
394
405
|
static VALUE
|
395
|
-
|
406
|
+
rg_set_visited(VALUE self, VALUE uri, VALUE time)
|
396
407
|
{
|
397
408
|
g_bookmark_file_set_visited(_SELF(self),
|
398
409
|
RVAL2CSTR(uri),
|
@@ -401,7 +412,7 @@ bf_set_visited(VALUE self, VALUE uri, VALUE time)
|
|
401
412
|
}
|
402
413
|
|
403
414
|
static VALUE
|
404
|
-
|
415
|
+
rg_set_app_info(VALUE self, VALUE uri, VALUE name, VALUE exec, VALUE count, VALUE stamp)
|
405
416
|
{
|
406
417
|
GError* error = NULL;
|
407
418
|
gboolean ret = g_bookmark_file_set_app_info(_SELF(self),
|
@@ -411,14 +422,14 @@ bf_set_app_info(VALUE self, VALUE uri, VALUE name, VALUE exec, VALUE count, VALU
|
|
411
422
|
NUM2INT(count),
|
412
423
|
(time_t)NUM2LONG(rb_Integer(stamp)),
|
413
424
|
&error);
|
414
|
-
|
425
|
+
|
415
426
|
if (! ret) RAISE_GERROR(error);
|
416
427
|
|
417
428
|
return self;
|
418
429
|
}
|
419
430
|
|
420
431
|
static VALUE
|
421
|
-
|
432
|
+
rg_add_group(VALUE self, VALUE uri, VALUE group)
|
422
433
|
{
|
423
434
|
g_bookmark_file_add_group(_SELF(self),
|
424
435
|
RVAL2CSTR(uri),
|
@@ -427,7 +438,7 @@ bf_add_group(VALUE self, VALUE uri, VALUE group)
|
|
427
438
|
}
|
428
439
|
|
429
440
|
static VALUE
|
430
|
-
|
441
|
+
rg_add_application(VALUE self, VALUE uri, VALUE name, VALUE exec)
|
431
442
|
{
|
432
443
|
g_bookmark_file_add_application(_SELF(self),
|
433
444
|
RVAL2CSTR(uri),
|
@@ -437,7 +448,7 @@ bf_add_application(VALUE self, VALUE uri, VALUE name, VALUE exec)
|
|
437
448
|
}
|
438
449
|
|
439
450
|
static VALUE
|
440
|
-
|
451
|
+
rg_remove_group(VALUE self, VALUE uri, VALUE group)
|
441
452
|
{
|
442
453
|
GError* error = NULL;
|
443
454
|
gboolean ret = g_bookmark_file_remove_group(_SELF(self),
|
@@ -450,7 +461,7 @@ bf_remove_group(VALUE self, VALUE uri, VALUE group)
|
|
450
461
|
}
|
451
462
|
|
452
463
|
static VALUE
|
453
|
-
|
464
|
+
rg_remove_application(VALUE self, VALUE uri, VALUE name)
|
454
465
|
{
|
455
466
|
GError *error = NULL;
|
456
467
|
gboolean ret = g_bookmark_file_remove_application(_SELF(self),
|
@@ -462,9 +473,8 @@ bf_remove_application(VALUE self, VALUE uri, VALUE name)
|
|
462
473
|
return self;
|
463
474
|
}
|
464
475
|
|
465
|
-
|
466
476
|
static VALUE
|
467
|
-
|
477
|
+
rg_remove_item(VALUE self, VALUE uri)
|
468
478
|
{
|
469
479
|
GError *error = NULL;
|
470
480
|
gboolean ret = g_bookmark_file_remove_item(_SELF(self),
|
@@ -476,7 +486,7 @@ bf_remove_item(VALUE self, VALUE uri)
|
|
476
486
|
}
|
477
487
|
|
478
488
|
static VALUE
|
479
|
-
|
489
|
+
rg_move_item(VALUE self, VALUE old_uri, VALUE new_uri)
|
480
490
|
{
|
481
491
|
GError *error = NULL;
|
482
492
|
gboolean ret = g_bookmark_file_move_item(_SELF(self),
|
@@ -491,51 +501,51 @@ bf_move_item(VALUE self, VALUE old_uri, VALUE new_uri)
|
|
491
501
|
#endif
|
492
502
|
|
493
503
|
void
|
494
|
-
Init_glib_bookmark_file()
|
504
|
+
Init_glib_bookmark_file(void)
|
495
505
|
{
|
496
506
|
#if GLIB_CHECK_VERSION(2,12,0)
|
497
|
-
VALUE
|
507
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_BOOKMARK_FILE, "BookmarkFile", mGLib);
|
498
508
|
|
499
509
|
G_DEF_ERROR(G_BOOKMARK_FILE_ERROR, "BookmarkFileError", mGLib,
|
500
510
|
rb_eRuntimeError, G_TYPE_BOOKMARK_FILE_ERROR);
|
501
511
|
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
512
|
+
RG_DEF_METHOD(initialize, 0);
|
513
|
+
RG_DEF_METHOD(load_from_file, 1);
|
514
|
+
RG_DEF_METHOD(load_from_data, 1);
|
515
|
+
RG_DEF_METHOD(load_from_data_dirs, 1);
|
516
|
+
RG_DEF_METHOD(to_data, 0);
|
517
|
+
RG_DEF_METHOD(to_file, 1);
|
518
|
+
RG_DEF_METHOD_P(has_item, 1);
|
519
|
+
RG_DEF_METHOD_P(has_group, 2);
|
520
|
+
RG_DEF_METHOD_P(has_application, 2);
|
521
|
+
RG_DEF_METHOD(size, 0);
|
522
|
+
RG_DEF_METHOD(uris, 0);
|
523
|
+
RG_DEF_METHOD(get_title, 1);
|
524
|
+
RG_DEF_METHOD(get_description, 1);
|
525
|
+
RG_DEF_METHOD(get_mime_type, 1);
|
526
|
+
RG_DEF_METHOD_P(private, 1);
|
527
|
+
RG_DEF_METHOD(get_icon, 1);
|
528
|
+
RG_DEF_METHOD(get_added, 1);
|
529
|
+
RG_DEF_METHOD(get_modified, 1);
|
530
|
+
RG_DEF_METHOD(get_visited, 1);
|
531
|
+
RG_DEF_METHOD(get_groups, 1);
|
532
|
+
RG_DEF_METHOD(get_applications, 1);
|
533
|
+
RG_DEF_METHOD(get_app_info, 2);
|
534
|
+
RG_DEF_METHOD(set_title, 2);
|
535
|
+
RG_DEF_METHOD(set_description, 2);
|
536
|
+
RG_DEF_METHOD(set_mime_type, 2);
|
537
|
+
RG_DEF_METHOD(set_private, 2);
|
538
|
+
RG_DEF_METHOD(set_icon, 3);
|
539
|
+
RG_DEF_METHOD(set_added, 2);
|
540
|
+
RG_DEF_METHOD(set_groups, 2);
|
541
|
+
RG_DEF_METHOD(set_modified, 2);
|
542
|
+
RG_DEF_METHOD(set_visited, 2);
|
543
|
+
RG_DEF_METHOD(set_app_info, 5);
|
544
|
+
RG_DEF_METHOD(add_group, 2);
|
545
|
+
RG_DEF_METHOD(add_application, 3);
|
546
|
+
RG_DEF_METHOD(remove_group, 2);
|
547
|
+
RG_DEF_METHOD(remove_application, 2);
|
548
|
+
RG_DEF_METHOD(remove_item, 1);
|
549
|
+
RG_DEF_METHOD(move_item, 2);
|
540
550
|
#endif
|
541
|
-
}
|
551
|
+
}
|