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
@@ -1,16 +1,24 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2004 Ruby-GNOME2 Project Team
|
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
|
+
*/
|
14
22
|
|
15
23
|
#include "rbgprivate.h"
|
16
24
|
|
data/ext/glib2/rbgobj_signal.c
CHANGED
@@ -1,20 +1,30 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
|
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
|
+
*/
|
14
22
|
|
15
23
|
#include "rbgprivate.h"
|
16
24
|
|
17
|
-
|
25
|
+
#define RG_TARGET_NAMESPACE cSignal
|
26
|
+
|
27
|
+
static VALUE RG_TARGET_NAMESPACE;
|
18
28
|
VALUE rbgobj_signal_wrap(guint sig_id);
|
19
29
|
|
20
30
|
#define default_handler_method_prefix "signal_do_"
|
@@ -47,10 +57,10 @@ static VALUE eNoSignalError;
|
|
47
57
|
|
48
58
|
// FIXME: use rb_protect
|
49
59
|
static gboolean
|
50
|
-
accumulator_func(GSignalInvocationHint*
|
51
|
-
GValue*
|
52
|
-
const GValue*
|
53
|
-
gpointer
|
60
|
+
accumulator_func(G_GNUC_UNUSED GSignalInvocationHint *ihint,
|
61
|
+
GValue *return_accu,
|
62
|
+
const GValue *handler_return,
|
63
|
+
gpointer data)
|
54
64
|
{
|
55
65
|
VALUE proc = (VALUE)data;
|
56
66
|
VALUE val = GVAL2RVAL(return_accu);
|
@@ -72,34 +82,97 @@ accumulator_func(GSignalInvocationHint* ihint,
|
|
72
82
|
return continue_emission;
|
73
83
|
}
|
74
84
|
|
85
|
+
struct rval2gtypes_args {
|
86
|
+
VALUE ary;
|
87
|
+
long n;
|
88
|
+
GType *result;
|
89
|
+
};
|
90
|
+
|
91
|
+
static VALUE
|
92
|
+
rbg_rval2gtypes_body(VALUE value)
|
93
|
+
{
|
94
|
+
long i;
|
95
|
+
struct rval2gtypes_args *args = (struct rval2gtypes_args *)value;
|
96
|
+
|
97
|
+
for (i = 0; i < args->n; i++)
|
98
|
+
args->result[i] = rbgobj_gtype_get(RARRAY_PTR(args->ary)[i]);
|
99
|
+
|
100
|
+
return Qnil;
|
101
|
+
}
|
102
|
+
|
103
|
+
static G_GNUC_NORETURN VALUE
|
104
|
+
rbg_rval2gtypes_rescue(VALUE value)
|
105
|
+
{
|
106
|
+
g_free(((struct rval2gtypes_args *)value)->result);
|
107
|
+
|
108
|
+
rb_exc_raise(rb_errinfo());
|
109
|
+
}
|
110
|
+
|
111
|
+
static GType *
|
112
|
+
rbg_rval2gtypes(volatile VALUE *value, long *n)
|
113
|
+
{
|
114
|
+
struct rval2gtypes_args args;
|
115
|
+
|
116
|
+
args.ary = *value = rb_ary_dup(rb_ary_to_ary(*value));
|
117
|
+
args.n = RARRAY_LEN(args.ary);
|
118
|
+
args.result = g_new(GType, args.n + 1);
|
119
|
+
|
120
|
+
rb_rescue(rbg_rval2gtypes_body, (VALUE)&args,
|
121
|
+
rbg_rval2gtypes_rescue, (VALUE)&args);
|
122
|
+
|
123
|
+
if (n != NULL)
|
124
|
+
*n = args.n;
|
125
|
+
|
126
|
+
return args.result;
|
127
|
+
}
|
128
|
+
|
129
|
+
static GType *
|
130
|
+
rbg_rval2gtypes_accept_nil(volatile VALUE *value, long *n)
|
131
|
+
{
|
132
|
+
if (!NIL_P(*value))
|
133
|
+
return rbg_rval2gtypes(value, n);
|
134
|
+
|
135
|
+
if (n != NULL)
|
136
|
+
*n = 0;
|
137
|
+
|
138
|
+
return NULL;
|
139
|
+
}
|
140
|
+
|
141
|
+
#define RVAL2GTYPES(value, n) rbg_rval2gtypes(&(value), &(n))
|
142
|
+
#define RVAL2GTYPES_ACCEPT_NIL(value, n) rbg_rval2gtypes_accept_nil(&(value), &(n))
|
143
|
+
|
75
144
|
static VALUE
|
76
145
|
gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
|
77
146
|
{
|
78
|
-
const RGObjClassInfo*
|
79
|
-
VALUE
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
147
|
+
const RGObjClassInfo *cinfo = rbgobj_lookup_class(self);
|
148
|
+
VALUE rbsignal_name, rbsignal_flags, accumulator, rbreturn_type, params;
|
149
|
+
const gchar *signal_name;
|
150
|
+
GSignalFlags signal_flags;
|
151
|
+
GClosure *class_closure;
|
152
|
+
GType return_type;
|
153
|
+
GType *param_types;
|
154
|
+
long n_params;
|
155
|
+
guint signal;
|
84
156
|
|
85
|
-
rb_scan_args(argc, argv, "4*",
|
86
|
-
&accumulator, &
|
157
|
+
rb_scan_args(argc, argv, "4*",
|
158
|
+
&rbsignal_name, &rbsignal_flags, &accumulator, &rbreturn_type, ¶ms);
|
87
159
|
|
88
160
|
if (cinfo->klass != self)
|
89
|
-
rb_raise(rb_eTypeError, "
|
161
|
+
rb_raise(rb_eTypeError, "not a registered class: %s",
|
90
162
|
rb_class2name(self));
|
91
163
|
|
92
|
-
if (SYMBOL_P(
|
93
|
-
|
94
|
-
|
95
|
-
|
164
|
+
if (SYMBOL_P(rbsignal_name))
|
165
|
+
rbsignal_name = rb_str_new2(rb_id2name(SYM2ID(rbsignal_name)));
|
166
|
+
signal_name = RVAL2CSTR(rbsignal_name);
|
167
|
+
|
168
|
+
signal_flags = NUM2INT(rbsignal_flags);
|
96
169
|
|
97
170
|
{
|
98
171
|
VALUE factory;
|
99
172
|
VALUE proc;
|
100
173
|
ID method_id;
|
101
174
|
|
102
|
-
method_id = rb_to_id(rb_str_concat(rb_str_new2(default_handler_method_prefix),
|
175
|
+
method_id = rb_to_id(rb_str_concat(rb_str_new2(default_handler_method_prefix), rbsignal_name));
|
103
176
|
|
104
177
|
factory = rb_eval_string(
|
105
178
|
"lambda{|klass, id|\n"
|
@@ -110,37 +183,33 @@ gobj_s_signal_new(int argc, VALUE* argv, VALUE self)
|
|
110
183
|
proc = rb_funcall(factory, rb_intern("call"), 2, self, ID2SYM(method_id));
|
111
184
|
|
112
185
|
class_closure = g_rclosure_new(proc, Qnil, NULL);
|
186
|
+
/* TODO: Should this be done even if something below it fails? */
|
113
187
|
g_rclosure_attach(class_closure, self);
|
114
188
|
}
|
115
189
|
|
116
|
-
|
117
|
-
|
118
|
-
param_types = NULL;
|
119
|
-
} else {
|
120
|
-
n_params = RARRAY_LEN(params);
|
121
|
-
param_types = ALLOCA_N(GType, n_params);
|
122
|
-
for (i = 0; i < n_params; i++)
|
123
|
-
param_types[i] = rbgobj_gtype_get(RARRAY_PTR(params)[i]);
|
124
|
-
}
|
190
|
+
return_type = rbgobj_gtype_get(rbreturn_type);
|
191
|
+
param_types = RVAL2GTYPES_ACCEPT_NIL(params, n_params);
|
125
192
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
193
|
+
signal = g_signal_newv(signal_name,
|
194
|
+
cinfo->gtype,
|
195
|
+
signal_flags,
|
196
|
+
class_closure,
|
197
|
+
NIL_P(accumulator) ? NULL : accumulator_func,
|
198
|
+
NIL_P(accumulator) ? NULL : (gpointer)accumulator,
|
199
|
+
NULL, /* c_marshaller */
|
200
|
+
return_type,
|
201
|
+
n_params,
|
202
|
+
param_types);
|
203
|
+
|
204
|
+
g_free(param_types);
|
205
|
+
|
206
|
+
if (!signal)
|
138
207
|
rb_raise(rb_eRuntimeError, "g_signal_newv failed");
|
139
208
|
|
140
209
|
if (!NIL_P(accumulator))
|
141
210
|
G_RELATIVE(self, accumulator); /* FIXME */
|
142
211
|
|
143
|
-
return rbgobj_signal_wrap(
|
212
|
+
return rbgobj_signal_wrap(signal);
|
144
213
|
}
|
145
214
|
|
146
215
|
static void
|
@@ -190,7 +259,7 @@ gobj_s_signal(VALUE self, VALUE name)
|
|
190
259
|
sig_name = rb_id2name(SYM2ID(name));
|
191
260
|
else
|
192
261
|
sig_name = StringValuePtr(name);
|
193
|
-
|
262
|
+
|
194
263
|
sig_id = g_signal_lookup(sig_name, CLASS2GTYPE(self));
|
195
264
|
if (!sig_id)
|
196
265
|
rb_raise(eNoSignalError, "no such signal: %s", sig_name);
|
@@ -298,7 +367,7 @@ struct emit_arg {
|
|
298
367
|
static VALUE
|
299
368
|
emit_body(struct emit_arg* arg)
|
300
369
|
{
|
301
|
-
GValue param =
|
370
|
+
GValue param = G_VALUE_INIT;
|
302
371
|
|
303
372
|
g_value_init(¶m, G_TYPE_FROM_INSTANCE(RVAL2GOBJ(arg->self)));
|
304
373
|
rbgobj_rvalue_to_gvalue(arg->self, ¶m);
|
@@ -320,7 +389,7 @@ emit_body(struct emit_arg* arg)
|
|
320
389
|
|
321
390
|
{
|
322
391
|
gboolean use_ret = (arg->query.return_type != G_TYPE_NONE);
|
323
|
-
GValue return_value =
|
392
|
+
GValue return_value = G_VALUE_INIT;
|
324
393
|
|
325
394
|
if (use_ret)
|
326
395
|
g_value_init(&return_value,
|
@@ -376,7 +445,7 @@ gobj_sig_emit(int argc, VALUE *argv, VALUE self)
|
|
376
445
|
|
377
446
|
arg.self = self;
|
378
447
|
arg.instance_and_params = g_value_array_new(1 + arg.query.n_params);
|
379
|
-
|
448
|
+
|
380
449
|
return rb_ensure(emit_body, (VALUE)&arg, emit_ensure, (VALUE)&arg);
|
381
450
|
}
|
382
451
|
|
@@ -444,34 +513,34 @@ gobj_sig_handler_is_connected(VALUE self, VALUE id)
|
|
444
513
|
}
|
445
514
|
|
446
515
|
#if 0
|
447
|
-
gulong
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
guint
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
guint
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
guint
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
516
|
+
gulong g_signal_handler_find (gpointer instance,
|
517
|
+
GSignalMatchType mask,
|
518
|
+
guint signal_id,
|
519
|
+
GQuark detail,
|
520
|
+
GClosure *closure,
|
521
|
+
gpointer func,
|
522
|
+
gpointer data);
|
523
|
+
guint g_signal_handlers_block_matched (gpointer instance,
|
524
|
+
GSignalMatchType mask,
|
525
|
+
guint signal_id,
|
526
|
+
GQuark detail,
|
527
|
+
GClosure *closure,
|
528
|
+
gpointer func,
|
529
|
+
gpointer data);
|
530
|
+
guint g_signal_handlers_unblock_matched (gpointer instance,
|
531
|
+
GSignalMatchType mask,
|
532
|
+
guint signal_id,
|
533
|
+
GQuark detail,
|
534
|
+
GClosure *closure,
|
535
|
+
gpointer func,
|
536
|
+
gpointer data);
|
537
|
+
guint g_signal_handlers_disconnect_matched (gpointer instance,
|
538
|
+
GSignalMatchType mask,
|
539
|
+
guint signal_id,
|
540
|
+
GQuark detail,
|
541
|
+
GClosure *closure,
|
542
|
+
gpointer func,
|
543
|
+
gpointer data);
|
475
544
|
#endif
|
476
545
|
|
477
546
|
static VALUE
|
@@ -493,7 +562,7 @@ chain_from_overridden_body(struct emit_arg* arg)
|
|
493
562
|
|
494
563
|
{
|
495
564
|
gboolean use_ret = (arg->query.return_type != G_TYPE_NONE);
|
496
|
-
GValue return_value =
|
565
|
+
GValue return_value = G_VALUE_INIT;
|
497
566
|
|
498
567
|
if (use_ret)
|
499
568
|
g_value_init(&return_value,
|
@@ -581,45 +650,6 @@ gobj_s_method_added(VALUE klass, VALUE id)
|
|
581
650
|
return Qnil;
|
582
651
|
}
|
583
652
|
|
584
|
-
static void
|
585
|
-
Init_signal_misc()
|
586
|
-
{
|
587
|
-
signal_func_table = rb_hash_new();
|
588
|
-
rb_global_variable(&signal_func_table);
|
589
|
-
|
590
|
-
rb_define_method(mMetaInterface, "signal_new", gobj_s_signal_new, -1);
|
591
|
-
rb_define_method(mMetaInterface, "signals", gobj_s_signals, -1);
|
592
|
-
rb_define_method(mMetaInterface, "signal", gobj_s_signal, 1);
|
593
|
-
|
594
|
-
rb_define_method(cInstantiatable, "signal_has_handler_pending?",
|
595
|
-
gobj_sig_has_handler_pending, -1);
|
596
|
-
rb_define_method(cInstantiatable, "signal_connect", gobj_sig_connect, -1);
|
597
|
-
rb_define_method(cInstantiatable, "signal_connect_after",
|
598
|
-
gobj_sig_connect_after, -1);
|
599
|
-
|
600
|
-
#if 0
|
601
|
-
rb_define_method(cInstantiatable, "signal_invocation_hint",
|
602
|
-
gobj_sig_get_invocation_hint, 0);
|
603
|
-
#endif
|
604
|
-
|
605
|
-
rb_define_method(cInstantiatable, "signal_emit",
|
606
|
-
gobj_sig_emit, -1);
|
607
|
-
rb_define_method(cInstantiatable, "signal_emit_stop",
|
608
|
-
gobj_sig_emit_stop, 1);
|
609
|
-
rb_define_method(cInstantiatable, "signal_handler_block",
|
610
|
-
gobj_sig_handler_block, 1);
|
611
|
-
rb_define_method(cInstantiatable, "signal_handler_unblock",
|
612
|
-
gobj_sig_handler_unblock, 1);
|
613
|
-
rb_define_method(cInstantiatable, "signal_handler_disconnect",
|
614
|
-
gobj_sig_handler_disconnect, 1);
|
615
|
-
|
616
|
-
rb_define_method(cInstantiatable, "signal_handler_is_connected?",
|
617
|
-
gobj_sig_handler_is_connected, 1);
|
618
|
-
|
619
|
-
rb_define_singleton_method(cInstantiatable, "method_added",
|
620
|
-
gobj_s_method_added, 1);
|
621
|
-
}
|
622
|
-
|
623
653
|
/**********************************************************************/
|
624
654
|
|
625
655
|
VALUE
|
@@ -628,13 +658,13 @@ rbgobj_signal_wrap(guint sig_id)
|
|
628
658
|
VALUE result;
|
629
659
|
GSignalQuery* query;
|
630
660
|
|
631
|
-
result = Data_Make_Struct(
|
661
|
+
result = Data_Make_Struct(RG_TARGET_NAMESPACE, GSignalQuery, NULL, free, query);
|
632
662
|
g_signal_query(sig_id, query);
|
633
663
|
return result;
|
634
664
|
}
|
635
665
|
|
636
666
|
static VALUE
|
637
|
-
|
667
|
+
rg_id(VALUE self)
|
638
668
|
{
|
639
669
|
GSignalQuery* query;
|
640
670
|
Data_Get_Struct(self, GSignalQuery, query);
|
@@ -642,7 +672,7 @@ query_signal_id(VALUE self)
|
|
642
672
|
}
|
643
673
|
|
644
674
|
static VALUE
|
645
|
-
|
675
|
+
rg_name(VALUE self)
|
646
676
|
{
|
647
677
|
GSignalQuery* query;
|
648
678
|
Data_Get_Struct(self, GSignalQuery, query);
|
@@ -650,7 +680,7 @@ query_signal_name(VALUE self)
|
|
650
680
|
}
|
651
681
|
|
652
682
|
static VALUE
|
653
|
-
|
683
|
+
rg_itype(VALUE self)
|
654
684
|
{
|
655
685
|
GSignalQuery* query;
|
656
686
|
Data_Get_Struct(self, GSignalQuery, query);
|
@@ -658,7 +688,7 @@ query_itype(VALUE self)
|
|
658
688
|
}
|
659
689
|
|
660
690
|
static VALUE
|
661
|
-
|
691
|
+
rg_owner(VALUE self)
|
662
692
|
{
|
663
693
|
GSignalQuery* query;
|
664
694
|
Data_Get_Struct(self, GSignalQuery, query);
|
@@ -666,7 +696,7 @@ query_owner(VALUE self)
|
|
666
696
|
}
|
667
697
|
|
668
698
|
static VALUE
|
669
|
-
|
699
|
+
rg_return_type(VALUE self)
|
670
700
|
{
|
671
701
|
GSignalQuery* query;
|
672
702
|
Data_Get_Struct(self, GSignalQuery, query);
|
@@ -674,7 +704,7 @@ query_return_type(VALUE self)
|
|
674
704
|
}
|
675
705
|
|
676
706
|
static VALUE
|
677
|
-
|
707
|
+
rg_flags(VALUE self)
|
678
708
|
{
|
679
709
|
GSignalQuery* query;
|
680
710
|
Data_Get_Struct(self, GSignalQuery, query);
|
@@ -682,7 +712,7 @@ query_signal_flags(VALUE self)
|
|
682
712
|
}
|
683
713
|
|
684
714
|
static VALUE
|
685
|
-
|
715
|
+
rg_param_types(VALUE self)
|
686
716
|
{
|
687
717
|
GSignalQuery* query;
|
688
718
|
VALUE result;
|
@@ -697,7 +727,7 @@ query_param_types(VALUE self)
|
|
697
727
|
}
|
698
728
|
|
699
729
|
static VALUE
|
700
|
-
|
730
|
+
rg_inspect(VALUE self)
|
701
731
|
{
|
702
732
|
GSignalQuery* query;
|
703
733
|
gchar* s;
|
@@ -734,7 +764,6 @@ query_is_flag(G_SIGNAL_DETAILED)
|
|
734
764
|
query_is_flag(G_SIGNAL_ACTION)
|
735
765
|
query_is_flag(G_SIGNAL_NO_HOOKS)
|
736
766
|
|
737
|
-
|
738
767
|
static gboolean
|
739
768
|
hook_func(GSignalInvocationHint* ihint,
|
740
769
|
guint n_param_values,
|
@@ -742,7 +771,7 @@ hook_func(GSignalInvocationHint* ihint,
|
|
742
771
|
gpointer data)
|
743
772
|
{
|
744
773
|
GClosure* closure = data;
|
745
|
-
GValue ret_val =
|
774
|
+
GValue ret_val =G_VALUE_INIT;
|
746
775
|
gboolean ret;
|
747
776
|
|
748
777
|
g_value_init(&ret_val, G_TYPE_BOOLEAN);
|
@@ -768,7 +797,7 @@ g_signal_add_emission_hook_closure (guint signal_id,
|
|
768
797
|
}
|
769
798
|
|
770
799
|
static VALUE
|
771
|
-
|
800
|
+
rg_add_emission_hook(int argc, VALUE* argv, VALUE self)
|
772
801
|
{
|
773
802
|
GSignalQuery* query;
|
774
803
|
VALUE proc;
|
@@ -798,7 +827,7 @@ signal_add_emission_hook(int argc, VALUE* argv, VALUE self)
|
|
798
827
|
}
|
799
828
|
|
800
829
|
static VALUE
|
801
|
-
|
830
|
+
rg_remove_emission_hook(VALUE self, VALUE hook_id)
|
802
831
|
{
|
803
832
|
GSignalQuery* query;
|
804
833
|
Data_Get_Struct(self, GSignalQuery, query);
|
@@ -806,56 +835,6 @@ signal_remove_emission_hook(VALUE self, VALUE hook_id)
|
|
806
835
|
return Qnil;
|
807
836
|
}
|
808
837
|
|
809
|
-
static void
|
810
|
-
Init_signal_class()
|
811
|
-
{
|
812
|
-
VALUE cSignalFlags, cSignalMatchType;
|
813
|
-
|
814
|
-
cSignal = rb_define_class_under(mGLib, "Signal", rb_cData);
|
815
|
-
|
816
|
-
rb_define_method(cSignal, "id", query_signal_id, 0);
|
817
|
-
rb_define_method(cSignal, "name", query_signal_name, 0);
|
818
|
-
rb_define_method(cSignal, "flags", query_signal_flags, 0);
|
819
|
-
rb_define_method(cSignal, "itype", query_itype, 0);
|
820
|
-
rb_define_method(cSignal, "owner", query_owner, 0);
|
821
|
-
rb_define_method(cSignal, "return_type", query_return_type, 0);
|
822
|
-
rb_define_method(cSignal, "param_types", query_param_types, 0);
|
823
|
-
rb_define_method(cSignal, "inspect", query_inspect, 0);
|
824
|
-
|
825
|
-
rb_define_method(cSignal, "add_emission_hook", signal_add_emission_hook, -1);
|
826
|
-
rb_define_method(cSignal, "remove_emission_hook", signal_remove_emission_hook, 1);
|
827
|
-
|
828
|
-
/* GSignalFlags */
|
829
|
-
cSignalFlags = G_DEF_CLASS(G_TYPE_SIGNAL_FLAGS, "SignalFlags", mGLib);
|
830
|
-
G_DEF_CONSTANTS(cSignal, G_TYPE_SIGNAL_FLAGS, "G_SIGNAL_");
|
831
|
-
rb_define_const(cSignalFlags, "MASK", INT2NUM(G_SIGNAL_FLAGS_MASK));
|
832
|
-
rb_define_const(cSignal, "FLAGS_MASK", INT2NUM(G_SIGNAL_FLAGS_MASK));
|
833
|
-
|
834
|
-
rb_define_method(cSignal, "run_first?", query_is_G_SIGNAL_RUN_FIRST, 0);
|
835
|
-
rb_define_method(cSignal, "run_last?", query_is_G_SIGNAL_RUN_LAST, 0);
|
836
|
-
rb_define_method(cSignal, "run_cleanup?", query_is_G_SIGNAL_RUN_CLEANUP, 0);
|
837
|
-
rb_define_method(cSignal, "no_recurse?", query_is_G_SIGNAL_NO_RECURSE, 0);
|
838
|
-
rb_define_method(cSignal, "detailed?", query_is_G_SIGNAL_DETAILED, 0);
|
839
|
-
rb_define_method(cSignal, "action?", query_is_G_SIGNAL_ACTION, 0);
|
840
|
-
rb_define_method(cSignal, "no_hooks?", query_is_G_SIGNAL_NO_HOOKS, 0);
|
841
|
-
|
842
|
-
|
843
|
-
/* GConnectFlags */
|
844
|
-
G_DEF_CLASS(G_TYPE_CONNECT_FLAGS, "ConnectFlags", mGLib);
|
845
|
-
G_DEF_CONSTANTS(cSignal, G_TYPE_CONNECT_FLAGS, "G_");
|
846
|
-
|
847
|
-
/* GSignalMatchType */
|
848
|
-
cSignalMatchType = G_DEF_CLASS(G_TYPE_SIGNAL_MATCH_TYPE,
|
849
|
-
"SignalMatchType", mGLib);
|
850
|
-
G_DEF_CONSTANTS(cSignal, G_TYPE_SIGNAL_MATCH_TYPE, "G_SIGNAL_");
|
851
|
-
rb_define_const(cSignalMatchType, "MASK", INT2NUM(G_SIGNAL_MATCH_MASK));
|
852
|
-
rb_define_const(cSignal, "MATCH_MASK", INT2NUM(G_SIGNAL_MATCH_MASK));
|
853
|
-
|
854
|
-
rb_define_const(cSignal, "TYPE_STATIC_SCOPE", INT2FIX(G_SIGNAL_TYPE_STATIC_SCOPE));
|
855
|
-
|
856
|
-
eNoSignalError = rb_define_class_under(mGLib, "NoSignalError", rb_eNameError);
|
857
|
-
}
|
858
|
-
|
859
838
|
/**********************************************************************/
|
860
839
|
|
861
840
|
void
|
@@ -897,7 +876,7 @@ rbgobj_define_action_methods(VALUE klass)
|
|
897
876
|
source,
|
898
877
|
"def %s(%s)\n signal_emit('%s'%s)\nend\n",
|
899
878
|
method_name,
|
900
|
-
(query.n_params > 0) ? args->str + 1 : "", //
|
879
|
+
(query.n_params > 0) ? args->str + 1 : "", // Skip initial ','
|
901
880
|
query.signal_name,
|
902
881
|
args->str);
|
903
882
|
|
@@ -914,9 +893,85 @@ rbgobj_define_action_methods(VALUE klass)
|
|
914
893
|
/**********************************************************************/
|
915
894
|
|
916
895
|
void
|
917
|
-
Init_gobject_gsignal()
|
896
|
+
Init_gobject_gsignal(void)
|
918
897
|
{
|
919
|
-
|
920
|
-
|
921
|
-
|
898
|
+
VALUE cSignalFlags, cSignalMatchType;
|
899
|
+
|
900
|
+
RG_TARGET_NAMESPACE = rb_define_class_under(mGLib, "Signal", rb_cData);
|
901
|
+
|
902
|
+
RG_DEF_METHOD(id, 0);
|
903
|
+
RG_DEF_METHOD(name, 0);
|
904
|
+
RG_DEF_METHOD(flags, 0);
|
905
|
+
RG_DEF_METHOD(itype, 0);
|
906
|
+
RG_DEF_METHOD(owner, 0);
|
907
|
+
RG_DEF_METHOD(return_type, 0);
|
908
|
+
RG_DEF_METHOD(param_types, 0);
|
909
|
+
RG_DEF_METHOD(inspect, 0);
|
910
|
+
|
911
|
+
RG_DEF_METHOD(add_emission_hook, -1);
|
912
|
+
RG_DEF_METHOD(remove_emission_hook, 1);
|
913
|
+
|
914
|
+
/* GSignalFlags */
|
915
|
+
cSignalFlags = G_DEF_CLASS(G_TYPE_SIGNAL_FLAGS, "SignalFlags", mGLib);
|
916
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_SIGNAL_FLAGS, "G_SIGNAL_");
|
917
|
+
rb_define_const(cSignalFlags, "MASK", INT2NUM(G_SIGNAL_FLAGS_MASK));
|
918
|
+
rb_define_const(RG_TARGET_NAMESPACE, "FLAGS_MASK", INT2NUM(G_SIGNAL_FLAGS_MASK));
|
919
|
+
|
920
|
+
rb_define_method(RG_TARGET_NAMESPACE, "run_first?", query_is_G_SIGNAL_RUN_FIRST, 0);
|
921
|
+
rb_define_method(RG_TARGET_NAMESPACE, "run_last?", query_is_G_SIGNAL_RUN_LAST, 0);
|
922
|
+
rb_define_method(RG_TARGET_NAMESPACE, "run_cleanup?", query_is_G_SIGNAL_RUN_CLEANUP, 0);
|
923
|
+
rb_define_method(RG_TARGET_NAMESPACE, "no_recurse?", query_is_G_SIGNAL_NO_RECURSE, 0);
|
924
|
+
rb_define_method(RG_TARGET_NAMESPACE, "detailed?", query_is_G_SIGNAL_DETAILED, 0);
|
925
|
+
rb_define_method(RG_TARGET_NAMESPACE, "action?", query_is_G_SIGNAL_ACTION, 0);
|
926
|
+
rb_define_method(RG_TARGET_NAMESPACE, "no_hooks?", query_is_G_SIGNAL_NO_HOOKS, 0);
|
927
|
+
|
928
|
+
/* GConnectFlags */
|
929
|
+
G_DEF_CLASS(G_TYPE_CONNECT_FLAGS, "ConnectFlags", mGLib);
|
930
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_CONNECT_FLAGS, "G_");
|
931
|
+
|
932
|
+
/* GSignalMatchType */
|
933
|
+
cSignalMatchType = G_DEF_CLASS(G_TYPE_SIGNAL_MATCH_TYPE,
|
934
|
+
"SignalMatchType", mGLib);
|
935
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_SIGNAL_MATCH_TYPE, "G_SIGNAL_");
|
936
|
+
rb_define_const(cSignalMatchType, "MASK", INT2NUM(G_SIGNAL_MATCH_MASK));
|
937
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MATCH_MASK", INT2NUM(G_SIGNAL_MATCH_MASK));
|
938
|
+
|
939
|
+
rb_define_const(RG_TARGET_NAMESPACE, "TYPE_STATIC_SCOPE", INT2FIX(G_SIGNAL_TYPE_STATIC_SCOPE));
|
940
|
+
|
941
|
+
eNoSignalError = rb_define_class_under(mGLib, "NoSignalError", rb_eNameError);
|
942
|
+
|
943
|
+
signal_func_table = rb_hash_new();
|
944
|
+
rb_global_variable(&signal_func_table);
|
945
|
+
|
946
|
+
rb_define_method(mMetaInterface, "signal_new", gobj_s_signal_new, -1);
|
947
|
+
rb_define_method(mMetaInterface, "signals", gobj_s_signals, -1);
|
948
|
+
rb_define_method(mMetaInterface, "signal", gobj_s_signal, 1);
|
949
|
+
|
950
|
+
rb_define_method(cInstantiatable, "signal_has_handler_pending?",
|
951
|
+
gobj_sig_has_handler_pending, -1);
|
952
|
+
rb_define_method(cInstantiatable, "signal_connect", gobj_sig_connect, -1);
|
953
|
+
rb_define_method(cInstantiatable, "signal_connect_after",
|
954
|
+
gobj_sig_connect_after, -1);
|
922
955
|
|
956
|
+
#if 0
|
957
|
+
rb_define_method(cInstantiatable, "signal_invocation_hint",
|
958
|
+
gobj_sig_get_invocation_hint, 0);
|
959
|
+
#endif
|
960
|
+
|
961
|
+
rb_define_method(cInstantiatable, "signal_emit",
|
962
|
+
gobj_sig_emit, -1);
|
963
|
+
rb_define_method(cInstantiatable, "signal_emit_stop",
|
964
|
+
gobj_sig_emit_stop, 1);
|
965
|
+
rb_define_method(cInstantiatable, "signal_handler_block",
|
966
|
+
gobj_sig_handler_block, 1);
|
967
|
+
rb_define_method(cInstantiatable, "signal_handler_unblock",
|
968
|
+
gobj_sig_handler_unblock, 1);
|
969
|
+
rb_define_method(cInstantiatable, "signal_handler_disconnect",
|
970
|
+
gobj_sig_handler_disconnect, 1);
|
971
|
+
|
972
|
+
rb_define_method(cInstantiatable, "signal_handler_is_connected?",
|
973
|
+
gobj_sig_handler_is_connected, 1);
|
974
|
+
|
975
|
+
rb_define_singleton_method(cInstantiatable, "method_added",
|
976
|
+
gobj_s_method_added, 1);
|
977
|
+
}
|