glib2 0.90.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +3115 -0
- data/README +40 -0
- data/Rakefile +69 -0
- data/ext/glib2/depend +10 -0
- data/ext/glib2/extconf.rb +61 -0
- data/ext/glib2/glib2.def +89 -0
- data/ext/glib2/rbgcompat.h +30 -0
- data/ext/glib2/rbglib.c +330 -0
- data/ext/glib2/rbglib.h +96 -0
- data/ext/glib2/rbglib_bookmarkfile.c +595 -0
- data/ext/glib2/rbglib_completion.c +192 -0
- data/ext/glib2/rbglib_convert.c +195 -0
- data/ext/glib2/rbglib_error.c +95 -0
- data/ext/glib2/rbglib_fileutils.c +83 -0
- data/ext/glib2/rbglib_i18n.c +44 -0
- data/ext/glib2/rbglib_int64.c +157 -0
- data/ext/glib2/rbglib_iochannel.c +883 -0
- data/ext/glib2/rbglib_keyfile.c +846 -0
- data/ext/glib2/rbglib_maincontext.c +915 -0
- data/ext/glib2/rbglib_mainloop.c +87 -0
- data/ext/glib2/rbglib_messages.c +150 -0
- data/ext/glib2/rbglib_pollfd.c +111 -0
- data/ext/glib2/rbglib_shell.c +68 -0
- data/ext/glib2/rbglib_source.c +190 -0
- data/ext/glib2/rbglib_spawn.c +345 -0
- data/ext/glib2/rbglib_threads.c +51 -0
- data/ext/glib2/rbglib_timer.c +127 -0
- data/ext/glib2/rbglib_unicode.c +611 -0
- data/ext/glib2/rbglib_utils.c +386 -0
- data/ext/glib2/rbglib_win32.c +136 -0
- data/ext/glib2/rbgobj_boxed.c +251 -0
- data/ext/glib2/rbgobj_closure.c +337 -0
- data/ext/glib2/rbgobj_convert.c +167 -0
- data/ext/glib2/rbgobj_enums.c +961 -0
- data/ext/glib2/rbgobj_fundamental.c +30 -0
- data/ext/glib2/rbgobj_object.c +892 -0
- data/ext/glib2/rbgobj_param.c +390 -0
- data/ext/glib2/rbgobj_paramspecs.c +305 -0
- data/ext/glib2/rbgobj_signal.c +963 -0
- data/ext/glib2/rbgobj_strv.c +61 -0
- data/ext/glib2/rbgobj_type.c +851 -0
- data/ext/glib2/rbgobj_typeinstance.c +121 -0
- data/ext/glib2/rbgobj_typeinterface.c +148 -0
- data/ext/glib2/rbgobj_typemodule.c +66 -0
- data/ext/glib2/rbgobj_typeplugin.c +49 -0
- data/ext/glib2/rbgobj_value.c +313 -0
- data/ext/glib2/rbgobj_valuearray.c +59 -0
- data/ext/glib2/rbgobj_valuetypes.c +298 -0
- data/ext/glib2/rbgobject.c +406 -0
- data/ext/glib2/rbgobject.h +265 -0
- data/ext/glib2/rbgprivate.h +88 -0
- data/ext/glib2/rbgutil.c +316 -0
- data/ext/glib2/rbgutil.h +82 -0
- data/ext/glib2/rbgutil_callback.c +231 -0
- data/extconf.rb +49 -0
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib-mkenums.rb +199 -0
- data/lib/glib2.rb +239 -0
- data/lib/gnome2-win32-binary-downloader.rb +92 -0
- data/lib/mkmf-gnome2.rb +377 -0
- data/sample/bookmarkfile.rb +66 -0
- data/sample/completion.rb +45 -0
- data/sample/idle.rb +41 -0
- data/sample/iochannel.rb +44 -0
- data/sample/keyfile.rb +62 -0
- data/sample/shell.rb +36 -0
- data/sample/spawn.rb +25 -0
- data/sample/timeout.rb +28 -0
- data/sample/timeout2.rb +35 -0
- data/sample/timer.rb +40 -0
- data/sample/type-register.rb +103 -0
- data/sample/type-register2.rb +104 -0
- data/sample/utils.rb +54 -0
- data/test/glib-test-init.rb +6 -0
- data/test/glib-test-utils.rb +12 -0
- data/test/run-test.rb +21 -0
- data/test/test_enum.rb +99 -0
- data/test/test_file_utils.rb +15 -0
- data/test/test_glib2.rb +120 -0
- data/test/test_iochannel.rb +275 -0
- data/test/test_key_file.rb +38 -0
- data/test/test_mkenums.rb +25 -0
- data/test/test_signal.rb +20 -0
- data/test/test_timeout.rb +28 -0
- data/test/test_unicode.rb +369 -0
- data/test/test_utils.rb +37 -0
- data/test/test_win32.rb +13 -0
- data/test-unit/COPYING +56 -0
- data/test-unit/GPL +340 -0
- data/test-unit/History.txt +232 -0
- data/test-unit/Manifest.txt +110 -0
- data/test-unit/PSFL +271 -0
- data/test-unit/README.txt +75 -0
- data/test-unit/Rakefile +53 -0
- data/test-unit/TODO +5 -0
- data/test-unit/bin/testrb +5 -0
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +153 -0
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +469 -0
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +82 -0
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +393 -0
- data/test-unit/html/index.html +247 -0
- data/test-unit/html/index.html.ja +270 -0
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +636 -0
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +483 -0
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +339 -0
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +559 -0
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit/assertionfailederror.rb +25 -0
- data/test-unit/lib/test/unit/assertions.rb +1334 -0
- data/test-unit/lib/test/unit/attribute.rb +125 -0
- data/test-unit/lib/test/unit/autorunner.rb +363 -0
- data/test-unit/lib/test/unit/collector/descendant.rb +23 -0
- data/test-unit/lib/test/unit/collector/dir.rb +108 -0
- data/test-unit/lib/test/unit/collector/load.rb +144 -0
- data/test-unit/lib/test/unit/collector/objectspace.rb +34 -0
- data/test-unit/lib/test/unit/collector.rb +36 -0
- data/test-unit/lib/test/unit/color-scheme.rb +106 -0
- data/test-unit/lib/test/unit/color.rb +96 -0
- data/test-unit/lib/test/unit/diff.rb +740 -0
- data/test-unit/lib/test/unit/error.rb +130 -0
- data/test-unit/lib/test/unit/exceptionhandler.rb +39 -0
- data/test-unit/lib/test/unit/failure.rb +136 -0
- data/test-unit/lib/test/unit/fixture.rb +176 -0
- data/test-unit/lib/test/unit/notification.rb +129 -0
- data/test-unit/lib/test/unit/omission.rb +191 -0
- data/test-unit/lib/test/unit/pending.rb +150 -0
- data/test-unit/lib/test/unit/priority.rb +180 -0
- data/test-unit/lib/test/unit/runner/console.rb +52 -0
- data/test-unit/lib/test/unit/runner/emacs.rb +8 -0
- data/test-unit/lib/test/unit/runner/tap.rb +8 -0
- data/test-unit/lib/test/unit/testcase.rb +483 -0
- data/test-unit/lib/test/unit/testresult.rb +121 -0
- data/test-unit/lib/test/unit/testsuite.rb +110 -0
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +14 -0
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +430 -0
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +63 -0
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +82 -0
- data/test-unit/lib/test/unit/ui/testrunner.rb +53 -0
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +77 -0
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +41 -0
- data/test-unit/lib/test/unit/util/backtracefilter.rb +42 -0
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +28 -0
- data/test-unit/lib/test/unit/util/observable.rb +90 -0
- data/test-unit/lib/test/unit/util/output.rb +31 -0
- data/test-unit/lib/test/unit/util/procwrapper.rb +48 -0
- data/test-unit/lib/test/unit/version.rb +7 -0
- data/test-unit/lib/test/unit.rb +328 -0
- data/test-unit/sample/adder.rb +13 -0
- data/test-unit/sample/subtracter.rb +12 -0
- data/test-unit/sample/test_adder.rb +20 -0
- data/test-unit/sample/test_subtracter.rb +20 -0
- data/test-unit/sample/test_user.rb +23 -0
- data/test-unit/test/collector/test-descendant.rb +133 -0
- data/test-unit/test/collector/test-load.rb +442 -0
- data/test-unit/test/collector/test_dir.rb +406 -0
- data/test-unit/test/collector/test_objectspace.rb +100 -0
- data/test-unit/test/run-test.rb +15 -0
- data/test-unit/test/test-attribute.rb +86 -0
- data/test-unit/test/test-color-scheme.rb +69 -0
- data/test-unit/test/test-color.rb +47 -0
- data/test-unit/test/test-diff.rb +518 -0
- data/test-unit/test/test-emacs-runner.rb +60 -0
- data/test-unit/test/test-fixture.rb +287 -0
- data/test-unit/test/test-notification.rb +33 -0
- data/test-unit/test/test-omission.rb +81 -0
- data/test-unit/test/test-pending.rb +70 -0
- data/test-unit/test/test-priority.rb +119 -0
- data/test-unit/test/test-testcase.rb +544 -0
- data/test-unit/test/test_assertions.rb +1197 -0
- data/test-unit/test/test_error.rb +26 -0
- data/test-unit/test/test_failure.rb +33 -0
- data/test-unit/test/test_testresult.rb +113 -0
- data/test-unit/test/test_testsuite.rb +129 -0
- data/test-unit/test/testunit-test-util.rb +14 -0
- data/test-unit/test/ui/test_tap.rb +33 -0
- data/test-unit/test/ui/test_testrunmediator.rb +20 -0
- data/test-unit/test/util/test-method-owner-finder.rb +38 -0
- data/test-unit/test/util/test-output.rb +11 -0
- data/test-unit/test/util/test_backtracefilter.rb +41 -0
- data/test-unit/test/util/test_observable.rb +102 -0
- data/test-unit/test/util/test_procwrapper.rb +36 -0
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gettext.sh +123 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +188 -0
- data/vendor/local/bin/glib-mkenums +511 -0
- 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/intl.dll +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libgcc_s_dw2-1.dll +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/bin/ngettext.exe +0 -0
- data/vendor/local/include/autosprintf.h +66 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +237 -0
- data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +119 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +73 -0
- data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +82 -0
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +103 -0
- data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +60 -0
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +57 -0
- data/vendor/local/include/glib-2.0/gio/gconverter.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +80 -0
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +80 -0
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +133 -0
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +116 -0
- data/vendor/local/include/glib-2.0/gio/gdrive.h +225 -0
- data/vendor/local/include/glib-2.0/gio/gemblem.h +58 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +62 -0
- data/vendor/local/include/glib-2.0/gio/gfile.h +1017 -0
- data/vendor/local/include/glib-2.0/gio/gfileattribute.h +77 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +133 -0
- data/vendor/local/include/glib-2.0/gio/gfileicon.h +56 -0
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +951 -0
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +112 -0
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +119 -0
- data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gicon.h +91 -0
- data/vendor/local/include/glib-2.0/gio/ginetaddress.h +103 -0
- data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +69 -0
- data/vendor/local/include/glib-2.0/gio/ginitable.h +96 -0
- data/vendor/local/include/glib-2.0/gio/ginputstream.h +172 -0
- data/vendor/local/include/glib-2.0/gio/gio.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +703 -0
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +79 -0
- data/vendor/local/include/glib-2.0/gio/gioerror.h +48 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +132 -0
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +52 -0
- data/vendor/local/include/glib-2.0/gio/giostream.h +112 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +339 -0
- data/vendor/local/include/glib-2.0/gio/gloadableicon.h +97 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +82 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +97 -0
- data/vendor/local/include/glib-2.0/gio/gmount.h +242 -0
- data/vendor/local/include/glib-2.0/gio/gmountoperation.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +62 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +69 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +69 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +207 -0
- data/vendor/local/include/glib-2.0/gio/gresolver.h +167 -0
- data/vendor/local/include/glib-2.0/gio/gseekable.h +99 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +125 -0
- data/vendor/local/include/glib-2.0/gio/gsocket.h +176 -0
- data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +79 -0
- data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +89 -0
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +130 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +105 -0
- data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +138 -0
- data/vendor/local/include/glib-2.0/gio/gsocketservice.h +88 -0
- data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +52 -0
- data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gthemedicon.h +63 -0
- data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +81 -0
- data/vendor/local/include/glib-2.0/gio/gvfs.h +125 -0
- data/vendor/local/include/glib-2.0/gio/gvolume.h +211 -0
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +55 -0
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +54 -0
- data/vendor/local/include/glib-2.0/glib/galloca.h +63 -0
- data/vendor/local/include/glib-2.0/glib/garray.h +179 -0
- data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +120 -0
- data/vendor/local/include/glib-2.0/glib/gatomic.h +85 -0
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +68 -0
- data/vendor/local/include/glib-2.0/glib/gbase64.h +57 -0
- data/vendor/local/include/glib-2.0/glib/gbitlock.h +43 -0
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +191 -0
- data/vendor/local/include/glib-2.0/glib/gcache.h +69 -0
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +86 -0
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +77 -0
- data/vendor/local/include/glib-2.0/glib/gconvert.h +138 -0
- data/vendor/local/include/glib-2.0/glib/gdataset.h +122 -0
- data/vendor/local/include/glib-2.0/glib/gdate.h +263 -0
- data/vendor/local/include/glib-2.0/glib/gdir.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gerror.h +98 -0
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +128 -0
- data/vendor/local/include/glib-2.0/glib/ghash.h +166 -0
- data/vendor/local/include/glib-2.0/glib/ghook.h +181 -0
- data/vendor/local/include/glib-2.0/glib/ghostutils.h +40 -0
- data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +38 -0
- data/vendor/local/include/glib-2.0/glib/gi18n.h +34 -0
- data/vendor/local/include/glib-2.0/glib/giochannel.h +366 -0
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +250 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +120 -0
- data/vendor/local/include/glib-2.0/glib/gmacros.h +277 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +304 -0
- data/vendor/local/include/glib-2.0/glib/gmappedfile.h +49 -0
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +163 -0
- data/vendor/local/include/glib-2.0/glib/gmem.h +203 -0
- data/vendor/local/include/glib-2.0/glib/gmessages.h +343 -0
- data/vendor/local/include/glib-2.0/glib/gnode.h +288 -0
- data/vendor/local/include/glib-2.0/glib/goption.h +370 -0
- data/vendor/local/include/glib-2.0/glib/gpattern.h +49 -0
- data/vendor/local/include/glib-2.0/glib/gpoll.h +93 -0
- data/vendor/local/include/glib-2.0/glib/gprimes.h +51 -0
- data/vendor/local/include/glib-2.0/glib/gprintf.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gqsort.h +46 -0
- data/vendor/local/include/glib-2.0/glib/gquark.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gqueue.h +127 -0
- data/vendor/local/include/glib-2.0/glib/grand.h +85 -0
- data/vendor/local/include/glib-2.0/glib/gregex.h +243 -0
- data/vendor/local/include/glib-2.0/glib/grel.h +97 -0
- data/vendor/local/include/glib-2.0/glib/gscanner.h +278 -0
- data/vendor/local/include/glib-2.0/glib/gsequence.h +128 -0
- data/vendor/local/include/glib-2.0/glib/gshell.h +55 -0
- data/vendor/local/include/glib-2.0/glib/gslice.h +86 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +114 -0
- data/vendor/local/include/glib-2.0/glib/gspawn.h +139 -0
- data/vendor/local/include/glib-2.0/glib/gstdio.h +159 -0
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +267 -0
- data/vendor/local/include/glib-2.0/glib/gstring.h +178 -0
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +292 -0
- data/vendor/local/include/glib-2.0/glib/gthread.h +408 -0
- data/vendor/local/include/glib-2.0/glib/gthreadpool.h +114 -0
- data/vendor/local/include/glib-2.0/glib/gtimer.h +65 -0
- data/vendor/local/include/glib-2.0/glib/gtree.h +91 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +451 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +404 -0
- data/vendor/local/include/glib-2.0/glib/gurifuncs.h +81 -0
- data/vendor/local/include/glib-2.0/glib/gutils.h +490 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +224 -0
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +305 -0
- data/vendor/local/include/glib-2.0/glib/gwin32.h +114 -0
- data/vendor/local/include/glib-2.0/glib-object.h +41 -0
- data/vendor/local/include/glib-2.0/glib.h +97 -0
- data/vendor/local/include/glib-2.0/gmodule.h +101 -0
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +236 -0
- data/vendor/local/include/glib-2.0/gobject/gclosure.h +251 -0
- data/vendor/local/include/glib-2.0/gobject/genums.h +261 -0
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +169 -0
- data/vendor/local/include/glib-2.0/gobject/gobject.h +562 -0
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +166 -0
- data/vendor/local/include/glib-2.0/gobject/gparam.h +410 -0
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +1083 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +509 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +51 -0
- data/vendor/local/include/glib-2.0/gobject/gtype.h +1608 -0
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +263 -0
- data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +134 -0
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +159 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +77 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +222 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +243 -0
- data/vendor/local/include/libintl.h +464 -0
- data/vendor/local/lib/GNU.Gettext.dll +0 -0
- data/vendor/local/lib/gio-2.0.def +800 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +284 -0
- data/vendor/local/lib/glib-2.0.def +1381 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/gmodule-2.0.def +11 -0
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +349 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.def +3 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libasprintf.dll.a +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/libintl.def +31 -0
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +11 -0
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +11 -0
- data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +81 -0
- data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +3 -0
- data/vendor/local/manifest/glib-dev_2.24.2-2_win32.mft +491 -0
- data/vendor/local/manifest/glib_2.24.2-2_win32.mft +101 -0
- data/vendor/local/share/aclocal/glib-2.0.m4 +211 -0
- data/vendor/local/share/aclocal/glib-gettext.m4 +432 -0
- data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +165 -0
- data/vendor/local/share/doc/gettext/bindtextdomain.3.html +160 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +8 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +305 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +356 -0
- data/vendor/local/share/doc/gettext/csharpdoc/begin.html +11 -0
- data/vendor/local/share/doc/gettext/csharpdoc/index.html +10 -0
- data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +6 -0
- data/vendor/local/share/doc/gettext/envsubst.1.html +213 -0
- data/vendor/local/share/doc/gettext/gettext.1.html +266 -0
- data/vendor/local/share/doc/gettext/gettext.3.html +186 -0
- data/vendor/local/share/doc/gettext/ngettext.1.html +280 -0
- data/vendor/local/share/doc/gettext/ngettext.3.html +143 -0
- data/vendor/local/share/doc/gettext/textdomain.3.html +150 -0
- data/vendor/local/share/doc/glib-2.24.2/COPYING +482 -0
- data/vendor/local/share/doc/glib-dev-2.24.2/COPYING +482 -0
- data/vendor/local/share/doc/libasprintf/autosprintf_all.html +174 -0
- data/vendor/local/share/glib-2.0/gdb/glib.py +252 -0
- data/vendor/local/share/glib-2.0/gdb/gobject.py +305 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +111 -0
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +277 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +1390 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +531 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +343 -0
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +568 -0
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +295 -0
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +620 -0
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +245 -0
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +388 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +993 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +544 -0
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +1416 -0
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +272 -0
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +206 -0
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +7450 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +115 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +520 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +312 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +155 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +3116 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +262 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +353 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +217 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +182 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +183 -0
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +261 -0
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +479 -0
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +331 -0
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +717 -0
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +195 -0
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +388 -0
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +808 -0
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +185 -0
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +362 -0
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +1465 -0
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +848 -0
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +263 -0
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +248 -0
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +1006 -0
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +787 -0
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +350 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +979 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +2152 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +297 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +930 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +548 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +274 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +741 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +258 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +377 -0
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +197 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +381 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +280 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +237 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +237 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +306 -0
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +274 -0
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1028 -0
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +709 -0
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +180 -0
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +128 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +153 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +155 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +1088 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +206 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +97 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +4499 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +171 -0
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +45 -0
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +80 -0
- data/vendor/local/share/gtk-doc/html/gio/ch19.html +75 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20.html +217 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20s02.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20s03.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +96 -0
- data/vendor/local/share/gtk-doc/html/gio/extending.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +38 -0
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +33 -0
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +465 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +381 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +163 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +163 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +927 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +328 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +297 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +313 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +918 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +107 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +1235 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +1384 -0
- data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +47 -0
- data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/icons.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/index.html +318 -0
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +1795 -0
- data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +42 -0
- data/vendor/local/share/gtk-doc/html/gio/networking.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +293 -0
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +47 -0
- data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +92 -0
- data/vendor/local/share/gtk-doc/html/gio/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/gio/types.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/utils.html +33 -0
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +47 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +180 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +312 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +563 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +362 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +102 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +124 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +83 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +194 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +419 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +389 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +413 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +158 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +340 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +7835 -0
- data/vendor/local/share/gtk-doc/html/glib/file-name-encodings.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +893 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +818 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +413 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +430 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +802 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +372 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +500 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +2054 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +560 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +1686 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +398 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +1187 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +1665 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +460 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +528 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +2042 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +1278 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +1406 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +548 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +1023 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +1810 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +3798 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +1815 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +295 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +1512 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +1367 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +229 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +629 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +2196 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +2556 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +612 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +1451 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +389 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +1029 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +141 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +706 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +510 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +703 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +1045 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +1523 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +1466 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +204 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +2648 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +752 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +269 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +578 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +483 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +1353 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +238 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +1283 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +1212 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +924 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +466 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +301 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +2947 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +1290 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +1719 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +3379 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +606 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +3411 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +245 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +188 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +263 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +314 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +3356 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +150 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +438 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +476 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +438 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +159 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +118 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +64 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +160 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +120 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +59 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +93 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +2395 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +121 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +302 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +2084 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +2556 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.html +80 -0
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +72 -0
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +131 -0
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +1171 -0
- data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +336 -0
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +2717 -0
- data/vendor/local/share/gtk-doc/html/glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/mainloop-states.gif +0 -0
- data/vendor/local/share/gtk-doc/html/glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/glib/tools.html +41 -0
- data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +710 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +453 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +85 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +51 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +46 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +38 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +46 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +72 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +178 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +42 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +42 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +50 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +2577 -0
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +136 -0
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +113 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +293 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +263 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +92 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +214 -0
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +355 -0
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +295 -0
- data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +406 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +2355 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +847 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +1423 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +776 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +2741 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +5242 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +2609 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +4227 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +413 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +230 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +234 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +270 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +117 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +723 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +757 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +143 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +287 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +316 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +76 -0
- data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +100 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +86 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +113 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +122 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +257 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +283 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +125 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +167 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +160 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +121 -0
- data/vendor/local/share/gtk-doc/html/gobject/index.html +187 -0
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +734 -0
- data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +72 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +80 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +66 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +82 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +377 -0
- data/vendor/local/share/gtk-doc/html/gobject/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +35 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +40 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +63 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +43 -0
- data/vendor/local/share/gtk-doc/html/gobject/up.png +0 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gettext-runtime.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/hr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/locale.alias +77 -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/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/envsubst.1 +54 -0
- data/vendor/local/share/man/man1/gettext.1 +69 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +307 -0
- data/vendor/local/share/man/man1/glib-mkenums.1 +234 -0
- data/vendor/local/share/man/man1/gobject-query.1 +83 -0
- data/vendor/local/share/man/man1/ngettext.1 +68 -0
- data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +72 -0
- data/vendor/local/share/man/man3/bindtextdomain.3 +69 -0
- data/vendor/local/share/man/man3/dcgettext.3 +1 -0
- data/vendor/local/share/man/man3/dcngettext.3 +1 -0
- data/vendor/local/share/man/man3/dgettext.3 +1 -0
- data/vendor/local/share/man/man3/dngettext.3 +1 -0
- data/vendor/local/share/man/man3/gettext.3 +99 -0
- data/vendor/local/share/man/man3/ngettext.3 +60 -0
- data/vendor/local/share/man/man3/textdomain.3 +57 -0
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +10423 -0
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +457 -0
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.log +2602 -0
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.sh +290 -0
- metadata +940 -0
@@ -0,0 +1,406 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/**********************************************************************
|
3
|
+
|
4
|
+
rbgobject.c -
|
5
|
+
|
6
|
+
$Author: ktou $
|
7
|
+
$Date: 2007/10/03 12:48:55 $
|
8
|
+
|
9
|
+
Copyright (C) 2003-2006 Ruby-GNOME2 Project Team
|
10
|
+
Copyright (C) 2002,2003 Masahiro Sakai
|
11
|
+
|
12
|
+
This file is derived from rbgtkobject.c in Ruby/Gtk distribution.
|
13
|
+
rbgtkobject.c -
|
14
|
+
Copyright (C) 1998-2000 Yukihiro Matsumoto,
|
15
|
+
Daisuke Kanda,
|
16
|
+
Hiroshi Igarashi
|
17
|
+
|
18
|
+
**********************************************************************/
|
19
|
+
|
20
|
+
#include "ruby.h"
|
21
|
+
#include "rbgprivate.h"
|
22
|
+
#include <ctype.h>
|
23
|
+
|
24
|
+
#include "rbgprivate.h"
|
25
|
+
|
26
|
+
static ID id_relatives;
|
27
|
+
static ID id_delete;
|
28
|
+
static ID id_module_eval;
|
29
|
+
|
30
|
+
ID rbgobj_id_children;
|
31
|
+
|
32
|
+
/**********************************************************************/
|
33
|
+
|
34
|
+
void
|
35
|
+
rbgobj_initialize_object(VALUE obj, gpointer cobj)
|
36
|
+
{
|
37
|
+
GType type;
|
38
|
+
GType parent_type;
|
39
|
+
|
40
|
+
if (!cobj)
|
41
|
+
rb_raise(rb_eRuntimeError, "failed to initialize");
|
42
|
+
|
43
|
+
type = RVAL2GTYPE(obj);
|
44
|
+
|
45
|
+
for (parent_type = type;
|
46
|
+
parent_type != G_TYPE_INVALID;
|
47
|
+
parent_type = g_type_parent(parent_type)) {
|
48
|
+
|
49
|
+
if (rbgobj_convert_initialize(parent_type, obj, cobj))
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
|
53
|
+
type = G_TYPE_FUNDAMENTAL(type);
|
54
|
+
switch (type){
|
55
|
+
case G_TYPE_OBJECT:
|
56
|
+
rbgobj_gobject_initialize(obj, cobj);
|
57
|
+
break;
|
58
|
+
case G_TYPE_PARAM:
|
59
|
+
rbgobj_param_spec_initialize(obj, cobj);
|
60
|
+
break;
|
61
|
+
case G_TYPE_BOXED:
|
62
|
+
rbgobj_boxed_initialize(obj, cobj);
|
63
|
+
break;
|
64
|
+
default:
|
65
|
+
rbgobj_convert_initialize(type, obj, cobj);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
gpointer
|
70
|
+
rbgobj_instance_from_ruby_object(VALUE obj)
|
71
|
+
{
|
72
|
+
GType type;
|
73
|
+
|
74
|
+
if (NIL_P(obj))
|
75
|
+
return NULL;
|
76
|
+
|
77
|
+
type = RVAL2GTYPE(obj);
|
78
|
+
if (rbgobj_convert_has_type(type)) {
|
79
|
+
gpointer instance;
|
80
|
+
if (rbgobj_convert_robj2instance(type, obj, &instance))
|
81
|
+
return instance;
|
82
|
+
}
|
83
|
+
|
84
|
+
type = G_TYPE_FUNDAMENTAL(type);
|
85
|
+
switch (type){
|
86
|
+
case G_TYPE_OBJECT:
|
87
|
+
return rbgobj_get_gobject(obj);
|
88
|
+
case G_TYPE_PARAM:
|
89
|
+
return rbgobj_get_param_spec(obj);
|
90
|
+
default:
|
91
|
+
{
|
92
|
+
gpointer instance;
|
93
|
+
if (!rbgobj_convert_robj2instance(type, obj, &instance)) {
|
94
|
+
rb_raise(rb_eTypeError, "%s isn't supported",
|
95
|
+
rb_class2name(CLASS_OF(obj)));
|
96
|
+
}
|
97
|
+
return instance;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
VALUE
|
103
|
+
rbgobj_ruby_object_from_instance(gpointer instance)
|
104
|
+
{
|
105
|
+
return rbgobj_ruby_object_from_instance2(instance, TRUE);
|
106
|
+
}
|
107
|
+
|
108
|
+
VALUE
|
109
|
+
rbgobj_ruby_object_from_instance2(gpointer instance, gboolean alloc)
|
110
|
+
{
|
111
|
+
VALUE object;
|
112
|
+
GType type;
|
113
|
+
|
114
|
+
if (!instance)
|
115
|
+
return Qnil;
|
116
|
+
|
117
|
+
type = G_TYPE_FROM_INSTANCE(instance);
|
118
|
+
if (alloc) {
|
119
|
+
GType parent_type;
|
120
|
+
for (parent_type = type;
|
121
|
+
parent_type != G_TYPE_INVALID;
|
122
|
+
parent_type = g_type_parent(parent_type)) {
|
123
|
+
if (rbgobj_convert_instance2robj(parent_type, instance, &object))
|
124
|
+
return object;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
switch (G_TYPE_FUNDAMENTAL(type)) {
|
129
|
+
case G_TYPE_OBJECT:
|
130
|
+
return rbgobj_get_ruby_object_from_gobject(instance, alloc);
|
131
|
+
case G_TYPE_PARAM:
|
132
|
+
return rbgobj_get_ruby_object_from_param_spec(instance, alloc);
|
133
|
+
default:
|
134
|
+
if (alloc) {
|
135
|
+
rb_raise(rb_eTypeError, "%s isn't supported", g_type_name(type));
|
136
|
+
} else {
|
137
|
+
return Qnil;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
VALUE
|
143
|
+
rbgobj_ruby_object_from_instance_with_unref(gpointer instance)
|
144
|
+
{
|
145
|
+
VALUE result = rbgobj_ruby_object_from_instance(instance);
|
146
|
+
if (!NIL_P(result)) {
|
147
|
+
GType type;
|
148
|
+
|
149
|
+
type = G_TYPE_FROM_INSTANCE(instance);
|
150
|
+
if (!rbgobj_convert_unref(type, instance)) {
|
151
|
+
type = G_TYPE_FUNDAMENTAL(type);
|
152
|
+
switch (type) {
|
153
|
+
case G_TYPE_OBJECT:
|
154
|
+
g_object_unref(instance);
|
155
|
+
break;
|
156
|
+
default:
|
157
|
+
rbgobj_convert_unref(type, instance);
|
158
|
+
break;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
return result;
|
163
|
+
}
|
164
|
+
|
165
|
+
/**********************************************************************/
|
166
|
+
|
167
|
+
void
|
168
|
+
rbgobj_add_relative(obj, relative)
|
169
|
+
VALUE obj, relative;
|
170
|
+
{
|
171
|
+
VALUE hash = Qnil;
|
172
|
+
|
173
|
+
if (RVAL2CBOOL(rb_ivar_defined(obj, id_relatives)))
|
174
|
+
hash = rb_ivar_get(obj, id_relatives);
|
175
|
+
|
176
|
+
if (NIL_P(hash) || TYPE(hash) != T_HASH) {
|
177
|
+
hash = rb_hash_new();
|
178
|
+
rb_ivar_set(obj, id_relatives, hash);
|
179
|
+
}
|
180
|
+
rb_hash_aset(hash, relative, Qnil);
|
181
|
+
}
|
182
|
+
|
183
|
+
void
|
184
|
+
rbgobj_invalidate_relatives(obj)
|
185
|
+
VALUE obj;
|
186
|
+
{
|
187
|
+
if (RVAL2CBOOL(rb_ivar_defined(obj, id_relatives)))
|
188
|
+
rb_ivar_set(obj, id_relatives, Qnil);
|
189
|
+
if (RVAL2CBOOL(rb_ivar_defined(obj, rbgobj_id_children)))
|
190
|
+
rb_ivar_set(obj, rbgobj_id_children, Qnil);
|
191
|
+
}
|
192
|
+
|
193
|
+
void
|
194
|
+
rbgobj_add_relative_removable(obj, relative, obj_ivar_id, hash_key)
|
195
|
+
VALUE obj, relative, hash_key;
|
196
|
+
ID obj_ivar_id;
|
197
|
+
{
|
198
|
+
VALUE hash = Qnil;
|
199
|
+
|
200
|
+
if (RVAL2CBOOL(rb_ivar_defined(obj, obj_ivar_id)))
|
201
|
+
hash = rb_ivar_get(obj, obj_ivar_id);
|
202
|
+
|
203
|
+
if (NIL_P(hash) || TYPE(hash) != T_HASH) {
|
204
|
+
hash = rb_hash_new();
|
205
|
+
rb_ivar_set(obj, obj_ivar_id, hash);
|
206
|
+
}
|
207
|
+
rb_hash_aset(hash, hash_key, relative);
|
208
|
+
}
|
209
|
+
|
210
|
+
VALUE
|
211
|
+
rbgobj_get_relative_removable(obj, obj_ivar_id, hash_key)
|
212
|
+
VALUE obj, hash_key;
|
213
|
+
ID obj_ivar_id;
|
214
|
+
{
|
215
|
+
VALUE hash = Qnil;
|
216
|
+
|
217
|
+
if (RVAL2CBOOL(rb_ivar_defined(obj, obj_ivar_id)))
|
218
|
+
hash = rb_ivar_get(obj, obj_ivar_id);
|
219
|
+
|
220
|
+
if (NIL_P(hash) || TYPE(hash) != T_HASH) {
|
221
|
+
return Qnil;
|
222
|
+
}
|
223
|
+
return rb_hash_aref(hash, hash_key);
|
224
|
+
}
|
225
|
+
|
226
|
+
void
|
227
|
+
rbgobj_remove_relative(obj, obj_ivar_id, hash_key)
|
228
|
+
VALUE obj, hash_key;
|
229
|
+
ID obj_ivar_id;
|
230
|
+
{
|
231
|
+
VALUE hash = Qnil;
|
232
|
+
|
233
|
+
if (RVAL2CBOOL(rb_ivar_defined(obj, obj_ivar_id)))
|
234
|
+
hash = rb_ivar_get(obj, obj_ivar_id);
|
235
|
+
|
236
|
+
if (NIL_P(hash) || TYPE(hash) != T_HASH) {
|
237
|
+
/* should not happen. */
|
238
|
+
} else {
|
239
|
+
rb_funcall(hash, id_delete, 1, hash_key);
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
void
|
244
|
+
rbgobj_remove_relative_all(obj, obj_ivar_id)
|
245
|
+
VALUE obj;
|
246
|
+
ID obj_ivar_id;
|
247
|
+
{
|
248
|
+
rb_ivar_set(obj, obj_ivar_id, Qnil);
|
249
|
+
}
|
250
|
+
|
251
|
+
/**********************************************************************/
|
252
|
+
|
253
|
+
static GHashTable* prop_exclude_list;
|
254
|
+
|
255
|
+
#define IS_FLAG(bitmask, flag) (((bitmask) & (flag)) == (flag))
|
256
|
+
|
257
|
+
void
|
258
|
+
rbgobj_define_property_accessors(klass)
|
259
|
+
VALUE klass;
|
260
|
+
{
|
261
|
+
GType gtype;
|
262
|
+
GParamSpec** pspecs = NULL;
|
263
|
+
int i;
|
264
|
+
GString* source;
|
265
|
+
guint n_properties = 0;
|
266
|
+
gtype = CLASS2GTYPE(klass);
|
267
|
+
|
268
|
+
if (G_TYPE_IS_INTERFACE(gtype)){
|
269
|
+
#if GLIB_CHECK_VERSION(2,4,0)
|
270
|
+
gpointer iface = g_type_default_interface_ref(gtype);
|
271
|
+
pspecs = g_object_interface_list_properties(iface, &n_properties);
|
272
|
+
g_type_default_interface_unref(iface);
|
273
|
+
#endif
|
274
|
+
} else {
|
275
|
+
GObjectClass* oclass = G_OBJECT_CLASS(g_type_class_ref(gtype));
|
276
|
+
pspecs = g_object_class_list_properties(oclass, &n_properties);
|
277
|
+
g_type_class_unref(oclass);
|
278
|
+
}
|
279
|
+
|
280
|
+
if (n_properties == 0)
|
281
|
+
return;
|
282
|
+
|
283
|
+
source = g_string_new(NULL);
|
284
|
+
for (i = 0; i < n_properties; i++){
|
285
|
+
GParamSpec* pspec = pspecs[i];
|
286
|
+
char* buf;
|
287
|
+
char* prop_name;
|
288
|
+
char* p;
|
289
|
+
|
290
|
+
if (pspec->owner_type != gtype)
|
291
|
+
continue;
|
292
|
+
|
293
|
+
buf = g_strdup(pspec->name);
|
294
|
+
for (p = buf; *p; p++)
|
295
|
+
if (*p == '-')
|
296
|
+
*p = '_';
|
297
|
+
|
298
|
+
if (!strncmp(buf, "is_", 3))
|
299
|
+
prop_name = buf + 3;
|
300
|
+
else
|
301
|
+
prop_name = buf;
|
302
|
+
|
303
|
+
if (g_hash_table_lookup(prop_exclude_list, prop_name)){
|
304
|
+
g_free(buf);
|
305
|
+
continue;
|
306
|
+
}
|
307
|
+
|
308
|
+
if (pspec->flags & G_PARAM_READABLE){
|
309
|
+
g_string_append_printf(
|
310
|
+
source,
|
311
|
+
"def %s%s; get_property('%s'); end\n",
|
312
|
+
prop_name,
|
313
|
+
(G_PARAM_SPEC_VALUE_TYPE(pspec) == G_TYPE_BOOLEAN) ? "?" : "",
|
314
|
+
pspec->name);
|
315
|
+
}
|
316
|
+
|
317
|
+
if (IS_FLAG(pspec->flags, G_PARAM_WRITABLE) && !IS_FLAG(pspec->flags, G_PARAM_CONSTRUCT_ONLY)){
|
318
|
+
g_string_append_printf(source,
|
319
|
+
"def set_%s(val); set_property('%s', val); end\n",
|
320
|
+
prop_name, pspec->name);
|
321
|
+
#ifdef HAVE_NODE_ATTRASGN
|
322
|
+
g_string_append_printf(source, "alias %s= set_%s\n",
|
323
|
+
prop_name, prop_name);
|
324
|
+
#else
|
325
|
+
g_string_append_printf(source,
|
326
|
+
"def %s=(val); set_property('%s', val); val; end\n",
|
327
|
+
prop_name, pspec->name);
|
328
|
+
#endif
|
329
|
+
}
|
330
|
+
|
331
|
+
g_free(buf);
|
332
|
+
}
|
333
|
+
|
334
|
+
if (source->len > 0)
|
335
|
+
rb_funcall(klass, id_module_eval, 1, rb_str_new2(source->str));
|
336
|
+
g_string_free(source, TRUE);
|
337
|
+
}
|
338
|
+
|
339
|
+
/**********************************************************************/
|
340
|
+
|
341
|
+
void
|
342
|
+
Init_gobject()
|
343
|
+
{
|
344
|
+
extern void Init_gobject_convert();
|
345
|
+
extern void Init_gobject_gtype();
|
346
|
+
extern void Init_gobject_typeinterface();
|
347
|
+
extern void Init_gobject_typeinstance();
|
348
|
+
extern void Init_gobject_gvalue();
|
349
|
+
extern void Init_gobject_gvaluetypes();
|
350
|
+
extern void Init_gobject_gboxed();
|
351
|
+
#if GLIB_CHECK_VERSION(2,6,0)
|
352
|
+
extern void Init_gobject_gstrv();
|
353
|
+
#endif
|
354
|
+
extern void Init_gobject_value_array();
|
355
|
+
extern void Init_gobject_genums();
|
356
|
+
extern void Init_gobject_gparam();
|
357
|
+
extern void Init_gobject_gparamspecs();
|
358
|
+
extern void Init_gobject_gclosure();
|
359
|
+
extern void Init_gobject_gobject();
|
360
|
+
extern void Init_gobject_gsignal();
|
361
|
+
extern void Init_gobject_gtypeplugin();
|
362
|
+
extern void Init_gobject_gtypemodule();
|
363
|
+
|
364
|
+
/* Not defined properties. They are already used as methods of Object */
|
365
|
+
prop_exclude_list = g_hash_table_new(g_str_hash, g_str_equal);
|
366
|
+
g_hash_table_insert(prop_exclude_list, "class", "class");
|
367
|
+
g_hash_table_insert(prop_exclude_list, "clone", "clone");
|
368
|
+
g_hash_table_insert(prop_exclude_list, "dup", "dup");
|
369
|
+
g_hash_table_insert(prop_exclude_list, "extend", "extend");
|
370
|
+
g_hash_table_insert(prop_exclude_list, "freeze", "freeze");
|
371
|
+
g_hash_table_insert(prop_exclude_list, "hash", "hash");
|
372
|
+
g_hash_table_insert(prop_exclude_list, "method", "method");
|
373
|
+
g_hash_table_insert(prop_exclude_list, "methods", "methods");
|
374
|
+
g_hash_table_insert(prop_exclude_list, "object_id", "object_id");
|
375
|
+
g_hash_table_insert(prop_exclude_list, "taint", "taint");
|
376
|
+
g_hash_table_insert(prop_exclude_list, "untaint", "untaint");
|
377
|
+
|
378
|
+
/* IDs */
|
379
|
+
id_relatives = rb_intern("__relatives__");
|
380
|
+
id_delete = rb_intern("delete");
|
381
|
+
id_module_eval = rb_intern("module_eval");
|
382
|
+
|
383
|
+
rbgobj_id_children = rb_intern("__stored_children__");
|
384
|
+
|
385
|
+
Init_gobject_convert();
|
386
|
+
|
387
|
+
Init_gobject_gtype();
|
388
|
+
Init_gobject_typeinterface();
|
389
|
+
Init_gobject_typeinstance();
|
390
|
+
Init_gobject_gvalue();
|
391
|
+
Init_gobject_gvaluetypes();
|
392
|
+
Init_gobject_gboxed();
|
393
|
+
#if GLIB_CHECK_VERSION(2,6,0)
|
394
|
+
Init_gobject_gstrv();
|
395
|
+
#endif
|
396
|
+
Init_gobject_value_array();
|
397
|
+
Init_gobject_genums();
|
398
|
+
Init_gobject_gparam();
|
399
|
+
Init_gobject_gparamspecs();
|
400
|
+
Init_gobject_gclosure();
|
401
|
+
Init_gobject_gobject();
|
402
|
+
Init_gobject_gsignal();
|
403
|
+
|
404
|
+
Init_gobject_gtypeplugin();
|
405
|
+
Init_gobject_gtypemodule();
|
406
|
+
}
|
@@ -0,0 +1,265 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/**********************************************************************
|
3
|
+
|
4
|
+
rbgobject.h -
|
5
|
+
|
6
|
+
$Author: sakai $
|
7
|
+
$Date: 2007/07/19 22:03:44 $
|
8
|
+
|
9
|
+
Copyright (C) 2003,2006 Ruby-GNOME2 Project Team
|
10
|
+
Copyright (C) 2002,2003 Masahiro Sakai
|
11
|
+
|
12
|
+
**********************************************************************/
|
13
|
+
|
14
|
+
#ifndef __RBGOBJECT_H__
|
15
|
+
#define __RBGOBJECT_H__
|
16
|
+
|
17
|
+
#include <glib-object.h>
|
18
|
+
#include "ruby.h"
|
19
|
+
#include "rbglib.h"
|
20
|
+
#include "rbgutil.h"
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
extern "C" {
|
24
|
+
#endif /* __cplusplus */
|
25
|
+
|
26
|
+
/* macros */
|
27
|
+
|
28
|
+
#define G_INITIALIZE(obj, cobj)\
|
29
|
+
(rbgobj_initialize_object(obj, (gpointer)cobj))
|
30
|
+
|
31
|
+
#define G_DEF_CLASS(gtype, name, module)\
|
32
|
+
(rbgobj_define_class(gtype, name, module, 0, 0, Qnil))
|
33
|
+
#define G_DEF_CLASS_WITH_GC_FUNC(gtype, name, module, mark, free) \
|
34
|
+
(rbgobj_define_class(gtype, name, module, mark, free, Qnil))
|
35
|
+
#define G_DEF_CLASS2(gtype, name, module, mark, free) \
|
36
|
+
G_DEF_CLASS_WITH_GC_FUNC(gtype, name, module, mark, free)
|
37
|
+
#define G_DEF_CLASS3(gtype_name, name, module)\
|
38
|
+
(rbgobj_define_class_dynamic(gtype_name, name, module, 0, 0))
|
39
|
+
#define G_DEF_CLASS4(gtype, name, module, parent) \
|
40
|
+
(rbgobj_define_class(gtype, name, module, 0, 0, parent))
|
41
|
+
|
42
|
+
#define G_DEF_INTERFACE(gtype, name, module)\
|
43
|
+
(rbgobj_define_class(gtype, name, module, 0, 0, Qnil))
|
44
|
+
#define G_DEF_INTERFACE2(gtype, name, module, mark, free)\
|
45
|
+
(rbgobj_define_class(gtype, name, module, mark, free, Qnil))
|
46
|
+
|
47
|
+
#define RG_DEF_CONVERSION(table) (rbgobj_convert_define(table))
|
48
|
+
|
49
|
+
#define G_RELATIVE(obj, rel) (rbgobj_add_relative(obj, rel))
|
50
|
+
|
51
|
+
/* G_RELATIVE2 is useless now. Try G_CHILD_ADD/REMOVE first. */
|
52
|
+
#define G_RELATIVE2(obj, rel, id, hash_key)\
|
53
|
+
(rbgobj_add_relative_removable(obj, rel, id, hash_key))
|
54
|
+
#define G_GET_RELATIVE(obj, id, hash_key)\
|
55
|
+
(rbgobj_get_relative_removable(obj, id, hash_key))
|
56
|
+
#define G_REMOVE_RELATIVE(obj, id, hash_key)\
|
57
|
+
(rbgobj_remove_relative(obj, id, hash_key))
|
58
|
+
|
59
|
+
RUBY_GLIB2_VAR ID rbgobj_id_children;
|
60
|
+
#define G_CHILD_SET(self, id, child) (rb_ivar_set(self, id, child))
|
61
|
+
#define G_CHILD_UNSET(self, id) (rb_ivar_set(self, id, Qnil))
|
62
|
+
|
63
|
+
/* G_CHILD_ADD is same as G_RELATIVE, but the macro name is more obviously
|
64
|
+
to use than G_RELATIVE, and also support "remove" operation with the key
|
65
|
+
which is the object itself.
|
66
|
+
*/
|
67
|
+
#define G_CHILD_ADD(self, child) \
|
68
|
+
(rbgobj_add_relative_removable(self, Qnil, rbgobj_id_children, child))
|
69
|
+
#define G_CHILD_REMOVE(self, child) \
|
70
|
+
(rbgobj_remove_relative(self, rbgobj_id_children, child))
|
71
|
+
#define G_CHILD_REMOVE_ALL(self) \
|
72
|
+
(rbgobj_remove_relative_all(self, rbgobj_id_children))
|
73
|
+
|
74
|
+
#define G_DEF_SIGNAL_FUNC(klass, sig_name, func)\
|
75
|
+
(rbgobj_set_signal_func(klass, sig_name, func))
|
76
|
+
|
77
|
+
#define CLASS2CINFO(klass) (rbgobj_lookup_class(klass))
|
78
|
+
#define GTYPE2CINFO(gtype) (rbgobj_lookup_class_by_gtype(gtype, Qnil))
|
79
|
+
#define GTYPE2CINFO_NO_CREATE(gtype) (rbgobj_lookup_class_by_gtype_full(gtype, Qnil, FALSE))
|
80
|
+
#define RVAL2CINFO(obj) (rbgobj_lookup_class(CLASS_OF(obj)))
|
81
|
+
#define GTYPE2CLASS(gtype) (rbgobj_gtype_to_ruby_class(gtype))
|
82
|
+
#define CLASS2GTYPE(klass) (rbgobj_lookup_class(klass)->gtype)
|
83
|
+
#define RVAL2GTYPE(obj) (CLASS2GTYPE(CLASS_OF(obj)))
|
84
|
+
|
85
|
+
#define RVAL2GOBJ(obj) (rbgobj_instance_from_ruby_object(obj))
|
86
|
+
#define GOBJ2RVAL(gobj) (rbgobj_ruby_object_from_instance(gobj))
|
87
|
+
#define GOBJ2RVAL_UNREF(gobj) (rbgobj_ruby_object_from_instance_with_unref(gobj))
|
88
|
+
#define GOBJ2RVALU(gobj) GOBJ2RVAL_UNREF(gobj)
|
89
|
+
#define GVAL2RVAL(v) (rbgobj_gvalue_to_rvalue(v))
|
90
|
+
|
91
|
+
#define RVAL2BOXED(obj, gtype) (rbgobj_boxed_get(obj, gtype))
|
92
|
+
#define BOXED2RVAL(cobj, gtype) (rbgobj_make_boxed(cobj, gtype))
|
93
|
+
|
94
|
+
#define RVAL2GENUM(obj, gtype) (rbgobj_get_enum(obj, gtype))
|
95
|
+
#define RVAL2GFLAGS(obj, gtype) (rbgobj_get_flags(obj, gtype))
|
96
|
+
#define GENUM2RVAL(n, gtype) (rbgobj_make_enum(n, gtype))
|
97
|
+
#define GFLAGS2RVAL(n, gtype) (rbgobj_make_flags(n, gtype))
|
98
|
+
|
99
|
+
#define RVAL2GPTR(object) (rbgobj_ptr2cptr(object))
|
100
|
+
#define GPTR2RVAL(ptr, gtype) (rbgobj_ptr_new(gtype, ptr))
|
101
|
+
|
102
|
+
#define G_DEF_CONSTANTS(mod, type, strip_prefix) \
|
103
|
+
rbgobj_add_constants(mod, type, strip_prefix)
|
104
|
+
#define G_RENAME_CONSTANT(orig, alt) \
|
105
|
+
rbgobj_constant_remap(orig, alt)
|
106
|
+
#define G_RENAME_NICK(orig, alt) \
|
107
|
+
rbgobj_constant_remap(orig, alt)
|
108
|
+
|
109
|
+
typedef enum
|
110
|
+
{
|
111
|
+
RBGOBJ_ABSTRACT_BUT_CREATABLE = 1 << 0, /* deprecated */
|
112
|
+
RBGOBJ_BOXED_NOT_COPY = 1 << 1,
|
113
|
+
RBGOBJ_DEFINED_BY_RUBY = 1 << 2,
|
114
|
+
} RGObjClassFlag;
|
115
|
+
|
116
|
+
typedef struct {
|
117
|
+
VALUE klass;
|
118
|
+
GType gtype;
|
119
|
+
void (*mark)(gpointer);
|
120
|
+
void (*free)(gpointer);
|
121
|
+
int flags; /* RGObjClassFlag */
|
122
|
+
} RGObjClassInfo;
|
123
|
+
|
124
|
+
/* rbgobject.c */
|
125
|
+
|
126
|
+
extern void rbgobj_initialize_object(VALUE obj, gpointer cobj);
|
127
|
+
extern gpointer rbgobj_instance_from_ruby_object(VALUE obj);
|
128
|
+
extern VALUE rbgobj_ruby_object_from_instance(gpointer instance);
|
129
|
+
extern VALUE rbgobj_ruby_object_from_instance2(gpointer instance, gboolean alloc);
|
130
|
+
extern VALUE rbgobj_ruby_object_from_instance_with_unref(gpointer instance);
|
131
|
+
|
132
|
+
extern void rbgobj_add_relative(VALUE obj, VALUE relative);
|
133
|
+
extern void rbgobj_invalidate_relatives(VALUE obj);
|
134
|
+
extern void rbgobj_add_relative_removable(VALUE obj, VALUE relative,
|
135
|
+
ID obj_ivar_id, VALUE hash_key);
|
136
|
+
extern VALUE rbgobj_get_relative_removable(VALUE obj, ID obj_ivar_id,
|
137
|
+
VALUE hash_key);
|
138
|
+
extern void rbgobj_remove_relative(VALUE obj, ID obj_ivar_id, VALUE hash_key);
|
139
|
+
extern void rbgobj_remove_relative_all(VALUE obj, ID obj_ivar_id);
|
140
|
+
|
141
|
+
extern GObject* rbgobj_gobject_new(GType type, VALUE params_hash);
|
142
|
+
extern VALUE rbgobj_create_object(VALUE klass); /* deprecated */
|
143
|
+
|
144
|
+
extern VALUE rbgobj_get_ruby_object_from_gobject(GObject* gobj, gboolean alloc);
|
145
|
+
|
146
|
+
/* deprecated */
|
147
|
+
extern void rbgobj_add_abstract_but_create_instance_class(GType gtype);
|
148
|
+
|
149
|
+
/* rbgobj_typeinstance.c */
|
150
|
+
extern void rbgobj_gc_mark_instance(gpointer instance);
|
151
|
+
|
152
|
+
|
153
|
+
/* rbgobj_type.c */
|
154
|
+
extern const RGObjClassInfo *rbgobj_lookup_class(VALUE klass);
|
155
|
+
extern const RGObjClassInfo *rbgobj_lookup_class_by_gtype(GType gtype, VALUE parent);
|
156
|
+
extern const RGObjClassInfo *rbgobj_lookup_class_by_gtype_full(GType gtype,
|
157
|
+
VALUE parent,
|
158
|
+
gboolean create_object);
|
159
|
+
extern VALUE rbgobj_gtype_to_ruby_class(GType gtype);
|
160
|
+
extern VALUE rbgobj_define_class(GType gtype, const gchar* name, VALUE module,
|
161
|
+
void* mark, void* free, VALUE parent);
|
162
|
+
extern VALUE rbgobj_define_class_dynamic(const gchar* gtype_name,
|
163
|
+
const gchar* name, VALUE module,
|
164
|
+
void* mark, void* free);
|
165
|
+
extern void rbgobj_register_class(VALUE klass,
|
166
|
+
GType gtype,
|
167
|
+
gboolean klass2gtype,
|
168
|
+
gboolean gtype2klass);
|
169
|
+
extern VALUE rbgobj_cType;
|
170
|
+
extern VALUE rbgobj_gtype_new(GType gtype);
|
171
|
+
extern GType rbgobj_gtype_get(VALUE obj);
|
172
|
+
|
173
|
+
/* rbgobj_signal.c */
|
174
|
+
typedef VALUE (*GValToRValSignalFunc)(guint num,const GValue* values);
|
175
|
+
extern void rbgobj_set_signal_func(VALUE klass, gchar* sig_name, GValToRValSignalFunc func);
|
176
|
+
extern GValToRValSignalFunc rbgobj_get_signal_func(guint signal_id);
|
177
|
+
extern VALUE rbgobj_signal_wrap(guint sig_id);
|
178
|
+
|
179
|
+
|
180
|
+
/* rbgobj_closure.c */
|
181
|
+
extern GClosure* g_rclosure_new(VALUE callback_proc, VALUE extra_args,
|
182
|
+
GValToRValSignalFunc func);
|
183
|
+
extern void g_rclosure_attach(GClosure *closure, VALUE object);
|
184
|
+
extern void g_rclosure_set_tag(GClosure *closure, const gchar *tag);
|
185
|
+
|
186
|
+
/* rbgobj_value.c */
|
187
|
+
extern VALUE rbgobj_gvalue_to_rvalue(const GValue* value);
|
188
|
+
extern void rbgobj_rvalue_to_gvalue(VALUE val, GValue* result);
|
189
|
+
extern void rbgobj_initialize_gvalue(GValue *result, VALUE value);
|
190
|
+
|
191
|
+
typedef void (*RValueToGValueFunc)(VALUE from, GValue* to);
|
192
|
+
typedef VALUE (*GValueToRValueFunc)(const GValue* from);
|
193
|
+
extern void rbgobj_register_r2g_func(GType gtype, RValueToGValueFunc func);
|
194
|
+
extern void rbgobj_register_g2r_func(GType gtype, GValueToRValueFunc func);
|
195
|
+
|
196
|
+
extern void rbgobj_gc_mark_gvalue(GValue* value);
|
197
|
+
|
198
|
+
/* rbgobj_valuetypes.c */
|
199
|
+
extern VALUE rbgobj_ptr_new(GType type, gpointer ptr);
|
200
|
+
extern gpointer rbgobj_ptr2cptr(VALUE ptr);
|
201
|
+
|
202
|
+
#define RBGOBJ_TYPE_RUBY_VALUE (rbgobj_ruby_value_get_type())
|
203
|
+
extern GType rbgobj_ruby_value_get_type();
|
204
|
+
extern VALUE g_value_get_ruby_value(const GValue* value);
|
205
|
+
extern void g_value_set_ruby_value(GValue* value, VALUE ruby);
|
206
|
+
|
207
|
+
/* rbgobj_object.c */
|
208
|
+
extern void rbgobj_register_property_setter(GType gtype, const char* prop_name, RValueToGValueFunc func);
|
209
|
+
extern void rbgobj_register_property_getter(GType gtype, const char* prop_name, GValueToRValueFunc func);
|
210
|
+
|
211
|
+
/* rbgobj_boxed.c */
|
212
|
+
extern VALUE rbgobj_boxed_create(VALUE klass); /* deprecated */
|
213
|
+
extern gpointer rbgobj_boxed_get(VALUE obj, GType gtype);
|
214
|
+
extern VALUE rbgobj_make_boxed(gpointer data, GType gtype);
|
215
|
+
extern void rbgobj_boxed_not_copy_obj(GType gtype);
|
216
|
+
|
217
|
+
/* rbgobj_enums.c */
|
218
|
+
extern void rbgobj_constant_remap(const char *original, const char *replacement);
|
219
|
+
extern void rbgobj_add_constants(VALUE mod, GType type, const gchar *strip_prefix);
|
220
|
+
extern VALUE rbgobj_make_enum(gint n, GType gtype);
|
221
|
+
extern gint rbgobj_get_enum(VALUE obj, GType gtype);
|
222
|
+
extern VALUE rbgobj_make_flags(guint n, GType gtype);
|
223
|
+
extern guint rbgobj_get_flags(VALUE obj, GType gtype);
|
224
|
+
extern void rbgobj_define_const(VALUE mod, const char *name, VALUE value);
|
225
|
+
|
226
|
+
|
227
|
+
/* rbglib_mainloop.c */
|
228
|
+
#define G_TYPE_MAIN_LOOP (g_main_loop_get_type())
|
229
|
+
extern GType g_main_loop_get_type(void);
|
230
|
+
|
231
|
+
/* rbglib_maincontext.c */
|
232
|
+
#define G_TYPE_MAIN_CONTEXT (g_main_context_get_type())
|
233
|
+
#define G_TYPE_SOURCE (g_source_get_type())
|
234
|
+
#define G_TYPE_POLL_FD (g_poll_fd_get_type())
|
235
|
+
extern GType g_main_context_get_type(void);
|
236
|
+
extern GType g_source_get_type(void);
|
237
|
+
extern GType g_poll_fd_get_type(void);
|
238
|
+
|
239
|
+
/* rbglib_keyfile.c */
|
240
|
+
#define G_TYPE_KEY_FILE (g_key_file_get_type())
|
241
|
+
extern GType g_key_file_get_type(void);
|
242
|
+
|
243
|
+
/* rbgobj_convert.c */
|
244
|
+
typedef struct {
|
245
|
+
GType type;
|
246
|
+
VALUE klass;
|
247
|
+
VALUE (*get_superclass)(void);
|
248
|
+
void (*type_init_hook)(VALUE);
|
249
|
+
void (*rvalue2gvalue)(VALUE val, GValue *result);
|
250
|
+
VALUE (*gvalue2rvalue)(const GValue *);
|
251
|
+
void (*initialize)(VALUE, gpointer);
|
252
|
+
gpointer (*robj2instance)(VALUE);
|
253
|
+
VALUE (*instance2robj)(gpointer);
|
254
|
+
void (*unref)(gpointer instance);
|
255
|
+
} RGConvertTable;
|
256
|
+
|
257
|
+
extern void rbgobj_convert_define(RGConvertTable *table);
|
258
|
+
|
259
|
+
#ifdef __cplusplus
|
260
|
+
}
|
261
|
+
#endif /* __cplusplus */
|
262
|
+
|
263
|
+
#endif /* __RBGOBJECT_H__ */
|
264
|
+
|
265
|
+
#include "rbgcompat.h"
|