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,851 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/**********************************************************************
|
3
|
+
|
4
|
+
rbgobj_type.c -
|
5
|
+
|
6
|
+
$Author: sakai $
|
7
|
+
$Date: 2007/07/16 03:35:53 $
|
8
|
+
created at: Sun Jun 9 20:31:47 JST 2002
|
9
|
+
|
10
|
+
Copyright (C) 2002-2009 Ruby-GNOME2 Project Team
|
11
|
+
Copyright (C) 2002,2003 Masahiro Sakai
|
12
|
+
|
13
|
+
**********************************************************************/
|
14
|
+
|
15
|
+
#include "rbgprivate.h"
|
16
|
+
|
17
|
+
/**********************************************************************/
|
18
|
+
/* Type Mapping */
|
19
|
+
|
20
|
+
#ifdef RBGOBJ_USE_DLPTR
|
21
|
+
#include "dl.h"
|
22
|
+
#endif
|
23
|
+
|
24
|
+
static VALUE rb_cMutex;
|
25
|
+
static VALUE lookup_class_mutex;
|
26
|
+
|
27
|
+
static ID id_new;
|
28
|
+
static ID id_superclass;
|
29
|
+
static ID id_lock;
|
30
|
+
static ID id_unlock;
|
31
|
+
static GHashTable *gtype_to_cinfo;
|
32
|
+
static VALUE klass_to_cinfo;
|
33
|
+
|
34
|
+
static GHashTable* dynamic_gtype_list;
|
35
|
+
typedef struct {
|
36
|
+
const gchar* name;
|
37
|
+
VALUE module;
|
38
|
+
void (*mark)(gpointer);
|
39
|
+
void (*free)(gpointer);
|
40
|
+
int flags; /* RGObjClassFlag */
|
41
|
+
} RGObjClassInfoDynamic;
|
42
|
+
|
43
|
+
typedef struct {
|
44
|
+
VALUE parent;
|
45
|
+
GType gtype;
|
46
|
+
gboolean create_class;
|
47
|
+
} RGObjClassByGtypeData;
|
48
|
+
|
49
|
+
static void
|
50
|
+
cinfo_mark(RGObjClassInfo* cinfo)
|
51
|
+
{
|
52
|
+
rb_gc_mark(cinfo->klass);
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
const RGObjClassInfo *
|
57
|
+
rbgobj_lookup_class(klass)
|
58
|
+
VALUE klass;
|
59
|
+
{
|
60
|
+
VALUE data = rb_hash_aref(klass_to_cinfo, klass);
|
61
|
+
if (!NIL_P(data)){
|
62
|
+
RGObjClassInfo* cinfo;
|
63
|
+
Data_Get_Struct(data, RGObjClassInfo, cinfo);
|
64
|
+
return cinfo;
|
65
|
+
}
|
66
|
+
|
67
|
+
if (TYPE(klass) == T_CLASS) {
|
68
|
+
VALUE super;
|
69
|
+
if (FL_TEST(klass, FL_SINGLETON)) {
|
70
|
+
super = rb_class_real(klass);
|
71
|
+
} else {
|
72
|
+
super = rb_funcall(klass, id_superclass, 0);
|
73
|
+
}
|
74
|
+
return rbgobj_lookup_class(super);
|
75
|
+
}
|
76
|
+
|
77
|
+
rb_raise(rb_eRuntimeError, "can't get gobject class information");
|
78
|
+
}
|
79
|
+
|
80
|
+
static const RGObjClassInfo *rbgobj_lookup_class_by_gtype_without_lock(GType gtype,
|
81
|
+
VALUE parent,
|
82
|
+
gboolean create_class);
|
83
|
+
|
84
|
+
static VALUE
|
85
|
+
get_superclass(GType gtype)
|
86
|
+
{
|
87
|
+
VALUE super_class;
|
88
|
+
|
89
|
+
if (rbgobj_convert_get_superclass(gtype, &super_class))
|
90
|
+
return super_class;
|
91
|
+
|
92
|
+
switch (gtype) {
|
93
|
+
case G_TYPE_PARAM:
|
94
|
+
case G_TYPE_OBJECT:
|
95
|
+
return cInstantiatable;
|
96
|
+
case G_TYPE_BOXED:
|
97
|
+
return rb_cObject;
|
98
|
+
case G_TYPE_POINTER:
|
99
|
+
#ifdef RBGOBJ_USE_DLPTR
|
100
|
+
return rb_cDLPtrData;
|
101
|
+
#else
|
102
|
+
return rb_cData;
|
103
|
+
#endif
|
104
|
+
case G_TYPE_ENUM:
|
105
|
+
case G_TYPE_FLAGS:
|
106
|
+
return rb_cObject;
|
107
|
+
default:
|
108
|
+
{
|
109
|
+
const RGObjClassInfo *cinfo_super;
|
110
|
+
GType parent_type;
|
111
|
+
|
112
|
+
parent_type = g_type_parent(gtype);
|
113
|
+
cinfo_super = rbgobj_lookup_class_by_gtype_without_lock(parent_type,
|
114
|
+
Qnil,
|
115
|
+
TRUE);
|
116
|
+
return cinfo_super->klass;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
static const RGObjClassInfo *
|
122
|
+
rbgobj_lookup_class_by_gtype_without_lock(GType gtype, VALUE parent,
|
123
|
+
gboolean create_class)
|
124
|
+
{
|
125
|
+
GType fundamental_type;
|
126
|
+
RGObjClassInfo* cinfo;
|
127
|
+
RGObjClassInfoDynamic* cinfod;
|
128
|
+
void* gclass = NULL;
|
129
|
+
VALUE c;
|
130
|
+
|
131
|
+
if (gtype == G_TYPE_INVALID)
|
132
|
+
return NULL;
|
133
|
+
|
134
|
+
cinfo = g_hash_table_lookup(gtype_to_cinfo, GUINT_TO_POINTER(gtype));
|
135
|
+
if (cinfo)
|
136
|
+
return cinfo;
|
137
|
+
|
138
|
+
if (!create_class)
|
139
|
+
return NULL;
|
140
|
+
|
141
|
+
c = Data_Make_Struct(rb_cData, RGObjClassInfo, cinfo_mark, NULL, cinfo);
|
142
|
+
cinfo->gtype = gtype;
|
143
|
+
cinfo->mark = NULL;
|
144
|
+
cinfo->free = NULL;
|
145
|
+
cinfo->flags = 0;
|
146
|
+
|
147
|
+
fundamental_type = G_TYPE_FUNDAMENTAL(gtype);
|
148
|
+
switch (fundamental_type){
|
149
|
+
case G_TYPE_POINTER:
|
150
|
+
case G_TYPE_BOXED:
|
151
|
+
case G_TYPE_PARAM:
|
152
|
+
case G_TYPE_OBJECT:
|
153
|
+
case G_TYPE_ENUM:
|
154
|
+
case G_TYPE_FLAGS:
|
155
|
+
if (NIL_P(parent)) parent = get_superclass(gtype);
|
156
|
+
cinfo->klass = rb_funcall(rb_cClass, id_new, 1, parent);
|
157
|
+
break;
|
158
|
+
|
159
|
+
case G_TYPE_INTERFACE:
|
160
|
+
cinfo->klass = rb_module_new();
|
161
|
+
break;
|
162
|
+
|
163
|
+
default:
|
164
|
+
if (NIL_P(parent)) parent = get_superclass(gtype);
|
165
|
+
if (NIL_P(parent)) {
|
166
|
+
fprintf(stderr,
|
167
|
+
"%s: %s's fundamental type %s isn't supported\n",
|
168
|
+
"rbgobj_lookup_class_by_gtype",
|
169
|
+
g_type_name(gtype),
|
170
|
+
g_type_name(fundamental_type));
|
171
|
+
return NULL;
|
172
|
+
}
|
173
|
+
cinfo->klass = rb_funcall(rb_cClass, id_new, 1, parent);
|
174
|
+
}
|
175
|
+
|
176
|
+
cinfod = (RGObjClassInfoDynamic *)g_hash_table_lookup(dynamic_gtype_list,
|
177
|
+
g_type_name(gtype));
|
178
|
+
if (cinfod){
|
179
|
+
cinfo->mark = cinfod->mark;
|
180
|
+
cinfo->free = cinfod->free;
|
181
|
+
rb_define_const(cinfod->module, cinfod->name, cinfo->klass);
|
182
|
+
}
|
183
|
+
|
184
|
+
rb_hash_aset(klass_to_cinfo, cinfo->klass, c);
|
185
|
+
g_hash_table_insert(gtype_to_cinfo, GUINT_TO_POINTER(gtype), cinfo);
|
186
|
+
|
187
|
+
if (G_TYPE_IS_CLASSED(gtype))
|
188
|
+
gclass = g_type_class_ref(gtype);
|
189
|
+
|
190
|
+
if (G_TYPE_IS_INSTANTIATABLE(gtype) || G_TYPE_IS_INTERFACE(gtype))
|
191
|
+
rbgobj_define_action_methods(cinfo->klass);
|
192
|
+
|
193
|
+
if (G_TYPE_IS_INSTANTIATABLE(gtype)){
|
194
|
+
GType* interfaces = NULL;
|
195
|
+
guint n_interfaces = 0;
|
196
|
+
int i;
|
197
|
+
|
198
|
+
interfaces = g_type_interfaces(gtype, &n_interfaces);
|
199
|
+
for (i = 0; i < n_interfaces; i++){
|
200
|
+
const RGObjClassInfo *iface_cinfo;
|
201
|
+
iface_cinfo =
|
202
|
+
rbgobj_lookup_class_by_gtype_without_lock(interfaces[i],
|
203
|
+
Qnil,
|
204
|
+
TRUE);
|
205
|
+
rb_include_module(cinfo->klass, iface_cinfo->klass);
|
206
|
+
}
|
207
|
+
g_free(interfaces);
|
208
|
+
}
|
209
|
+
|
210
|
+
if (!rbgobj_convert_type_init_hook(gtype, cinfo->klass)) {
|
211
|
+
switch (fundamental_type) {
|
212
|
+
case G_TYPE_OBJECT:
|
213
|
+
rbgobj_init_object_class(cinfo->klass);
|
214
|
+
break;
|
215
|
+
case G_TYPE_ENUM:
|
216
|
+
rbgobj_init_enum_class(cinfo->klass);
|
217
|
+
break;
|
218
|
+
case G_TYPE_FLAGS:
|
219
|
+
rbgobj_init_flags_class(cinfo->klass);
|
220
|
+
break;
|
221
|
+
case G_TYPE_INTERFACE:
|
222
|
+
rbgobj_init_interface(cinfo->klass);
|
223
|
+
break;
|
224
|
+
default:
|
225
|
+
rbgobj_convert_type_init_hook(fundamental_type, cinfo->klass);
|
226
|
+
break;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
if (gclass)
|
231
|
+
g_type_class_unref(gclass);
|
232
|
+
|
233
|
+
return cinfo;
|
234
|
+
}
|
235
|
+
|
236
|
+
static VALUE
|
237
|
+
rbgobj_lookup_class_by_gtype_body(VALUE data)
|
238
|
+
{
|
239
|
+
RGObjClassByGtypeData *cdata = (RGObjClassByGtypeData *)data;
|
240
|
+
const RGObjClassInfo *cinfo;
|
241
|
+
|
242
|
+
cinfo = rbgobj_lookup_class_by_gtype_without_lock(cdata->gtype,
|
243
|
+
cdata->parent,
|
244
|
+
cdata->create_class);
|
245
|
+
return (VALUE)cinfo;
|
246
|
+
}
|
247
|
+
|
248
|
+
static VALUE
|
249
|
+
rbgobj_lookup_class_by_gtype_ensure(VALUE data)
|
250
|
+
{
|
251
|
+
rb_funcall(lookup_class_mutex, id_unlock, 0);
|
252
|
+
return Qundef;
|
253
|
+
}
|
254
|
+
|
255
|
+
const RGObjClassInfo *
|
256
|
+
rbgobj_lookup_class_by_gtype(GType gtype, VALUE parent)
|
257
|
+
{
|
258
|
+
return rbgobj_lookup_class_by_gtype_full(gtype, parent, TRUE);
|
259
|
+
}
|
260
|
+
|
261
|
+
const RGObjClassInfo *
|
262
|
+
rbgobj_lookup_class_by_gtype_full(GType gtype, VALUE parent,
|
263
|
+
gboolean create_class)
|
264
|
+
{
|
265
|
+
RGObjClassByGtypeData data;
|
266
|
+
|
267
|
+
data.gtype = gtype;
|
268
|
+
data.parent = parent;
|
269
|
+
data.create_class = create_class;
|
270
|
+
|
271
|
+
if (create_class) {
|
272
|
+
rb_funcall(lookup_class_mutex, id_lock, 0);
|
273
|
+
return (RGObjClassInfo *)rb_ensure(rbgobj_lookup_class_by_gtype_body,
|
274
|
+
(VALUE)&data,
|
275
|
+
rbgobj_lookup_class_by_gtype_ensure,
|
276
|
+
(VALUE)&data);
|
277
|
+
} else {
|
278
|
+
return rbgobj_lookup_class_by_gtype_without_lock(gtype, parent,
|
279
|
+
create_class);
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
VALUE
|
284
|
+
rbgobj_gtype_to_ruby_class(GType gtype)
|
285
|
+
{
|
286
|
+
const RGObjClassInfo *cinfo;
|
287
|
+
|
288
|
+
cinfo = GTYPE2CINFO(gtype);
|
289
|
+
return cinfo ? cinfo->klass : Qnil;
|
290
|
+
}
|
291
|
+
|
292
|
+
VALUE
|
293
|
+
rbgobj_define_class(gtype, name, module, mark, free, parent)
|
294
|
+
GType gtype;
|
295
|
+
const gchar* name;
|
296
|
+
VALUE module;
|
297
|
+
void* mark;
|
298
|
+
void* free;
|
299
|
+
VALUE parent;
|
300
|
+
{
|
301
|
+
RGObjClassInfo* cinfo;
|
302
|
+
if (gtype == 0)
|
303
|
+
rb_bug("rbgobj_define_class: Invalid gtype [%s]\n", name);
|
304
|
+
|
305
|
+
cinfo = (RGObjClassInfo*)rbgobj_lookup_class_by_gtype(gtype, parent);
|
306
|
+
cinfo->mark = mark;
|
307
|
+
cinfo->free = free;
|
308
|
+
rb_define_const(module, name, cinfo->klass);
|
309
|
+
return cinfo->klass;
|
310
|
+
}
|
311
|
+
|
312
|
+
VALUE
|
313
|
+
rbgobj_define_class_dynamic(gtype_name, name, module, mark, free)
|
314
|
+
const gchar* gtype_name;
|
315
|
+
const gchar* name;
|
316
|
+
VALUE module;
|
317
|
+
void* mark;
|
318
|
+
void* free;
|
319
|
+
{
|
320
|
+
RGObjClassInfoDynamic* cinfo;
|
321
|
+
cinfo = (RGObjClassInfoDynamic*)g_new(RGObjClassInfoDynamic, 1);
|
322
|
+
cinfo->name = name;
|
323
|
+
cinfo->module = module;
|
324
|
+
cinfo->mark = mark;
|
325
|
+
cinfo->free = free;
|
326
|
+
g_hash_table_insert(dynamic_gtype_list, (void*)gtype_name, (void*)cinfo);
|
327
|
+
return Qnil;
|
328
|
+
}
|
329
|
+
|
330
|
+
void
|
331
|
+
rbgobj_register_class(VALUE klass,
|
332
|
+
GType gtype,
|
333
|
+
gboolean klass2gtype,
|
334
|
+
gboolean gtype2klass)
|
335
|
+
{
|
336
|
+
RGObjClassInfo* cinfo = NULL;
|
337
|
+
VALUE c = Qnil;
|
338
|
+
|
339
|
+
if (klass2gtype)
|
340
|
+
c = Data_Make_Struct(rb_cData, RGObjClassInfo, cinfo_mark, NULL, cinfo);
|
341
|
+
if (gtype2klass && !cinfo)
|
342
|
+
cinfo = g_new(RGObjClassInfo, 1);
|
343
|
+
|
344
|
+
if (cinfo) {
|
345
|
+
cinfo->klass = klass;
|
346
|
+
cinfo->gtype = gtype;
|
347
|
+
cinfo->mark = NULL;
|
348
|
+
cinfo->free = NULL;
|
349
|
+
cinfo->flags = 0;
|
350
|
+
}
|
351
|
+
|
352
|
+
if (klass2gtype)
|
353
|
+
rb_hash_aset(klass_to_cinfo, cinfo->klass, c);
|
354
|
+
|
355
|
+
if (gtype2klass)
|
356
|
+
g_hash_table_insert(gtype_to_cinfo, GUINT_TO_POINTER(gtype), cinfo);
|
357
|
+
}
|
358
|
+
|
359
|
+
#define _register_fundamental_klass_to_gtype(klass, gtype) \
|
360
|
+
rbgobj_register_class(klass, gtype, TRUE, FALSE)
|
361
|
+
|
362
|
+
#define _register_fundamental_gtype_to_klass(gtype,klass) \
|
363
|
+
rbgobj_register_class(klass, gtype, FALSE, TRUE)
|
364
|
+
|
365
|
+
static void
|
366
|
+
Init_typemap()
|
367
|
+
{
|
368
|
+
id_new = rb_intern("new");
|
369
|
+
id_superclass = rb_intern("superclass");
|
370
|
+
|
371
|
+
gtype_to_cinfo = g_hash_table_new(g_direct_hash, g_direct_equal);
|
372
|
+
rb_global_variable(&klass_to_cinfo);
|
373
|
+
klass_to_cinfo = rb_hash_new();
|
374
|
+
|
375
|
+
_register_fundamental_klass_to_gtype(rb_cFixnum, G_TYPE_LONG);
|
376
|
+
_register_fundamental_klass_to_gtype(rb_cFloat, G_TYPE_DOUBLE);
|
377
|
+
_register_fundamental_klass_to_gtype(rb_cInteger, G_TYPE_LONG);
|
378
|
+
_register_fundamental_klass_to_gtype(rb_cString, G_TYPE_STRING);
|
379
|
+
_register_fundamental_klass_to_gtype(rb_cSymbol, G_TYPE_STRING);
|
380
|
+
_register_fundamental_klass_to_gtype(Qnil, G_TYPE_NONE);
|
381
|
+
_register_fundamental_klass_to_gtype(rb_cNilClass, G_TYPE_NONE);
|
382
|
+
_register_fundamental_klass_to_gtype(rb_cTrueClass, G_TYPE_BOOLEAN);
|
383
|
+
_register_fundamental_klass_to_gtype(rb_cFalseClass, G_TYPE_BOOLEAN);
|
384
|
+
_register_fundamental_klass_to_gtype(Qtrue, G_TYPE_BOOLEAN);
|
385
|
+
_register_fundamental_klass_to_gtype(Qfalse, G_TYPE_BOOLEAN);
|
386
|
+
_register_fundamental_klass_to_gtype(rb_cObject, RBGOBJ_TYPE_RUBY_VALUE);
|
387
|
+
|
388
|
+
_register_fundamental_gtype_to_klass(G_TYPE_UINT, rb_cInteger);
|
389
|
+
_register_fundamental_gtype_to_klass(G_TYPE_FLOAT, rb_cFloat);
|
390
|
+
_register_fundamental_gtype_to_klass(G_TYPE_DOUBLE, rb_cFloat);
|
391
|
+
_register_fundamental_gtype_to_klass(G_TYPE_INT64, rb_cInteger);
|
392
|
+
_register_fundamental_gtype_to_klass(G_TYPE_UINT64, rb_cInteger);
|
393
|
+
_register_fundamental_gtype_to_klass(G_TYPE_INT, rb_cInteger);
|
394
|
+
_register_fundamental_gtype_to_klass(G_TYPE_LONG, rb_cInteger);
|
395
|
+
_register_fundamental_gtype_to_klass(G_TYPE_CHAR, rb_cFixnum);
|
396
|
+
_register_fundamental_gtype_to_klass(G_TYPE_UCHAR, rb_cFixnum);
|
397
|
+
_register_fundamental_gtype_to_klass(G_TYPE_STRING, rb_cString);
|
398
|
+
_register_fundamental_gtype_to_klass(G_TYPE_ULONG, rb_cInteger);
|
399
|
+
_register_fundamental_gtype_to_klass(G_TYPE_NONE, rb_cNilClass);
|
400
|
+
_register_fundamental_gtype_to_klass(G_TYPE_BOOLEAN, rb_cTrueClass);
|
401
|
+
}
|
402
|
+
|
403
|
+
/**********************************************************************/
|
404
|
+
/* GLib::Type */
|
405
|
+
|
406
|
+
VALUE rbgobj_cType;
|
407
|
+
static ID id_gtype;
|
408
|
+
|
409
|
+
VALUE
|
410
|
+
rbgobj_gtype_new(gtype)
|
411
|
+
GType gtype;
|
412
|
+
{
|
413
|
+
VALUE result = rb_obj_alloc(rbgobj_cType);
|
414
|
+
VALUE arg = UINT2NUM(gtype);
|
415
|
+
rb_obj_call_init(result, 1, &arg);
|
416
|
+
return result;
|
417
|
+
}
|
418
|
+
|
419
|
+
GType
|
420
|
+
rbgobj_gtype_get(self)
|
421
|
+
VALUE self;
|
422
|
+
{
|
423
|
+
if (RVAL2CBOOL(rb_obj_is_kind_of(self, rbgobj_cType))) {
|
424
|
+
return NUM2ULONG(rb_ivar_get(self, id_gtype));
|
425
|
+
} else {
|
426
|
+
return CLASS2GTYPE(self);
|
427
|
+
}
|
428
|
+
rb_raise(rb_eTypeError, "Not a GLib::Type");
|
429
|
+
}
|
430
|
+
|
431
|
+
static VALUE
|
432
|
+
type_initialize(self, type)
|
433
|
+
VALUE self, type;
|
434
|
+
{
|
435
|
+
GType gtype;
|
436
|
+
|
437
|
+
if (RVAL2CBOOL(rb_obj_is_kind_of(type, rb_cInteger))) {
|
438
|
+
gtype = NUM2UINT(type);
|
439
|
+
// XXX
|
440
|
+
if (!g_type_name(gtype))
|
441
|
+
gtype = G_TYPE_INVALID;
|
442
|
+
} else {
|
443
|
+
gtype = g_type_from_name(StringValuePtr(type));
|
444
|
+
}
|
445
|
+
|
446
|
+
if (G_TYPE_INVALID == gtype)
|
447
|
+
rb_raise(rb_eArgError, "invalid type");
|
448
|
+
|
449
|
+
rb_ivar_set(self, id_gtype, UINT2NUM(gtype));
|
450
|
+
|
451
|
+
return Qnil;
|
452
|
+
}
|
453
|
+
|
454
|
+
static VALUE
|
455
|
+
type_inspect(self)
|
456
|
+
VALUE self;
|
457
|
+
{
|
458
|
+
GType gtype = rbgobj_gtype_get(self);
|
459
|
+
gchar* str;
|
460
|
+
VALUE result;
|
461
|
+
|
462
|
+
str = g_strdup_printf("GLib::Type[\"%s\"]", g_type_name(gtype));
|
463
|
+
result = rb_str_new2(str);
|
464
|
+
g_free(str);
|
465
|
+
|
466
|
+
return result;
|
467
|
+
}
|
468
|
+
|
469
|
+
static VALUE
|
470
|
+
type_compare(self, other)
|
471
|
+
VALUE self, other;
|
472
|
+
{
|
473
|
+
if (!RVAL2CBOOL(rb_obj_is_kind_of(other, rbgobj_cType)))
|
474
|
+
return Qnil;
|
475
|
+
else {
|
476
|
+
GType a = rbgobj_gtype_get(self);
|
477
|
+
GType b = rbgobj_gtype_get(other);
|
478
|
+
|
479
|
+
if (a==b)
|
480
|
+
return INT2FIX(0);
|
481
|
+
else if (g_type_is_a(a,b))
|
482
|
+
return INT2FIX(-1);
|
483
|
+
else if (g_type_is_a(b,a))
|
484
|
+
return INT2FIX(1);
|
485
|
+
else
|
486
|
+
return Qnil;
|
487
|
+
}
|
488
|
+
}
|
489
|
+
|
490
|
+
static VALUE
|
491
|
+
type_eq(self, other)
|
492
|
+
VALUE self, other;
|
493
|
+
{
|
494
|
+
if (!RVAL2CBOOL(rb_obj_is_kind_of(other, rbgobj_cType)))
|
495
|
+
return Qnil;
|
496
|
+
else {
|
497
|
+
GType a = rbgobj_gtype_get(self);
|
498
|
+
GType b = rbgobj_gtype_get(other);
|
499
|
+
return CBOOL2RVAL(a == b);
|
500
|
+
}
|
501
|
+
}
|
502
|
+
|
503
|
+
static VALUE
|
504
|
+
type_lt_eq(self, other)
|
505
|
+
VALUE self, other;
|
506
|
+
{
|
507
|
+
if (!RVAL2CBOOL(rb_obj_is_kind_of(other, rbgobj_cType)))
|
508
|
+
return Qnil;
|
509
|
+
else {
|
510
|
+
GType a = rbgobj_gtype_get(self);
|
511
|
+
GType b = rbgobj_gtype_get(other);
|
512
|
+
return CBOOL2RVAL(g_type_is_a(a, b));
|
513
|
+
}
|
514
|
+
}
|
515
|
+
|
516
|
+
static VALUE
|
517
|
+
type_gt_eq(self, other)
|
518
|
+
VALUE self, other;
|
519
|
+
{
|
520
|
+
if (!RVAL2CBOOL(rb_obj_is_kind_of(other, rbgobj_cType)))
|
521
|
+
return Qnil;
|
522
|
+
else {
|
523
|
+
GType a = rbgobj_gtype_get(self);
|
524
|
+
GType b = rbgobj_gtype_get(other);
|
525
|
+
return CBOOL2RVAL(g_type_is_a(b, a));
|
526
|
+
}
|
527
|
+
}
|
528
|
+
|
529
|
+
static VALUE
|
530
|
+
type_lt(self, other)
|
531
|
+
VALUE self, other;
|
532
|
+
{
|
533
|
+
if (!RVAL2CBOOL(rb_obj_is_kind_of(other, rbgobj_cType)))
|
534
|
+
return Qnil;
|
535
|
+
else {
|
536
|
+
GType a = rbgobj_gtype_get(self);
|
537
|
+
GType b = rbgobj_gtype_get(other);
|
538
|
+
return CBOOL2RVAL(g_type_is_a(a, b) && a != b);
|
539
|
+
}
|
540
|
+
}
|
541
|
+
|
542
|
+
static VALUE
|
543
|
+
type_gt(self, other)
|
544
|
+
VALUE self, other;
|
545
|
+
{
|
546
|
+
if (!RVAL2CBOOL(rb_obj_is_kind_of(other, rbgobj_cType)))
|
547
|
+
return Qnil;
|
548
|
+
else {
|
549
|
+
GType a = rbgobj_gtype_get(self);
|
550
|
+
GType b = rbgobj_gtype_get(other);
|
551
|
+
return CBOOL2RVAL(g_type_is_a(b, a) && a != b);
|
552
|
+
}
|
553
|
+
}
|
554
|
+
|
555
|
+
static VALUE
|
556
|
+
type_to_int(self)
|
557
|
+
VALUE self;
|
558
|
+
{
|
559
|
+
return rb_ivar_get(self, id_gtype);
|
560
|
+
}
|
561
|
+
|
562
|
+
static VALUE
|
563
|
+
type_to_class(self)
|
564
|
+
VALUE self;
|
565
|
+
{
|
566
|
+
return GTYPE2CLASS(rbgobj_gtype_get(self));
|
567
|
+
}
|
568
|
+
|
569
|
+
static VALUE
|
570
|
+
type_fundamental(self)
|
571
|
+
VALUE self;
|
572
|
+
{
|
573
|
+
return rbgobj_gtype_new(G_TYPE_FUNDAMENTAL(rbgobj_gtype_get(self)));
|
574
|
+
}
|
575
|
+
|
576
|
+
static VALUE
|
577
|
+
type_is_fundamental(self)
|
578
|
+
VALUE self;
|
579
|
+
{
|
580
|
+
return CBOOL2RVAL(G_TYPE_IS_FUNDAMENTAL(rbgobj_gtype_get(self)));
|
581
|
+
}
|
582
|
+
|
583
|
+
static VALUE
|
584
|
+
type_is_derived(self)
|
585
|
+
VALUE self;
|
586
|
+
{
|
587
|
+
return CBOOL2RVAL(G_TYPE_IS_DERIVED(rbgobj_gtype_get(self)));
|
588
|
+
}
|
589
|
+
|
590
|
+
static VALUE
|
591
|
+
type_is_interface(self)
|
592
|
+
VALUE self;
|
593
|
+
{
|
594
|
+
return CBOOL2RVAL(G_TYPE_IS_INTERFACE(rbgobj_gtype_get(self)));
|
595
|
+
}
|
596
|
+
|
597
|
+
static VALUE
|
598
|
+
type_is_classed(self)
|
599
|
+
VALUE self;
|
600
|
+
{
|
601
|
+
return CBOOL2RVAL(G_TYPE_IS_CLASSED(rbgobj_gtype_get(self)));
|
602
|
+
}
|
603
|
+
|
604
|
+
static VALUE
|
605
|
+
type_is_instantiatable(self)
|
606
|
+
VALUE self;
|
607
|
+
{
|
608
|
+
return CBOOL2RVAL(G_TYPE_IS_INSTANTIATABLE(rbgobj_gtype_get(self)));
|
609
|
+
}
|
610
|
+
|
611
|
+
static VALUE
|
612
|
+
type_is_derivable(self)
|
613
|
+
VALUE self;
|
614
|
+
{
|
615
|
+
return CBOOL2RVAL(G_TYPE_IS_DERIVABLE(rbgobj_gtype_get(self)));
|
616
|
+
}
|
617
|
+
|
618
|
+
static VALUE
|
619
|
+
type_is_deep_derivable(self)
|
620
|
+
VALUE self;
|
621
|
+
{
|
622
|
+
return CBOOL2RVAL(G_TYPE_IS_DEEP_DERIVABLE(rbgobj_gtype_get(self)));
|
623
|
+
}
|
624
|
+
|
625
|
+
static VALUE
|
626
|
+
type_is_abstract(self)
|
627
|
+
VALUE self;
|
628
|
+
{
|
629
|
+
return CBOOL2RVAL(G_TYPE_IS_ABSTRACT(rbgobj_gtype_get(self)));
|
630
|
+
}
|
631
|
+
|
632
|
+
static VALUE
|
633
|
+
type_is_value_abstract(self)
|
634
|
+
VALUE self;
|
635
|
+
{
|
636
|
+
return CBOOL2RVAL(G_TYPE_IS_VALUE_ABSTRACT(rbgobj_gtype_get(self)));
|
637
|
+
}
|
638
|
+
|
639
|
+
static VALUE
|
640
|
+
type_is_value_type(self)
|
641
|
+
VALUE self;
|
642
|
+
{
|
643
|
+
return CBOOL2RVAL(G_TYPE_IS_VALUE_TYPE(rbgobj_gtype_get(self)));
|
644
|
+
}
|
645
|
+
|
646
|
+
static VALUE
|
647
|
+
type_has_value_table(self)
|
648
|
+
VALUE self;
|
649
|
+
{
|
650
|
+
return CBOOL2RVAL(G_TYPE_HAS_VALUE_TABLE(rbgobj_gtype_get(self)));
|
651
|
+
}
|
652
|
+
|
653
|
+
static VALUE
|
654
|
+
type_name(self)
|
655
|
+
VALUE self;
|
656
|
+
{
|
657
|
+
return rb_str_new2(g_type_name(rbgobj_gtype_get(self)));
|
658
|
+
}
|
659
|
+
|
660
|
+
static VALUE
|
661
|
+
type_parent(self)
|
662
|
+
VALUE self;
|
663
|
+
{
|
664
|
+
GType parent = g_type_parent(rbgobj_gtype_get(self));
|
665
|
+
return parent ? rbgobj_gtype_new(parent) : Qnil;
|
666
|
+
}
|
667
|
+
|
668
|
+
static VALUE
|
669
|
+
type_depth(self)
|
670
|
+
VALUE self;
|
671
|
+
{
|
672
|
+
return UINT2NUM(g_type_depth(rbgobj_gtype_get(self)));
|
673
|
+
}
|
674
|
+
|
675
|
+
static VALUE
|
676
|
+
type_next_base(leaf_type, root_type)
|
677
|
+
VALUE leaf_type, root_type;
|
678
|
+
{
|
679
|
+
GType ret = g_type_next_base(rbgobj_gtype_get(leaf_type),
|
680
|
+
rbgobj_gtype_get(root_type));
|
681
|
+
return ret ? rbgobj_gtype_new(ret) : Qnil;
|
682
|
+
}
|
683
|
+
|
684
|
+
static VALUE
|
685
|
+
type_is_a(self, is_a_type)
|
686
|
+
VALUE self, is_a_type;
|
687
|
+
{
|
688
|
+
return CBOOL2RVAL(g_type_is_a(rbgobj_gtype_get(self), rbgobj_gtype_get(is_a_type)));
|
689
|
+
}
|
690
|
+
|
691
|
+
#if 0
|
692
|
+
gpointer g_type_class_ref (GType type);
|
693
|
+
gpointer g_type_class_peek (GType type);
|
694
|
+
void g_type_class_unref (gpointer g_class);
|
695
|
+
gpointer g_type_class_peek_parent (gpointer g_class);
|
696
|
+
gpointer g_type_interface_peek (gpointer instance_class,
|
697
|
+
GType iface_type);
|
698
|
+
gpointer g_type_interface_peek_parent (gpointer g_iface);
|
699
|
+
#endif
|
700
|
+
|
701
|
+
static VALUE
|
702
|
+
type_children(self)
|
703
|
+
VALUE self;
|
704
|
+
{
|
705
|
+
guint n_children;
|
706
|
+
GType* types;
|
707
|
+
VALUE result;
|
708
|
+
int i;
|
709
|
+
|
710
|
+
types = g_type_children(rbgobj_gtype_get(self), &n_children);
|
711
|
+
result = rb_ary_new2(n_children);
|
712
|
+
for (i = 0; i < n_children; i++)
|
713
|
+
rb_ary_store(result, i, rbgobj_gtype_new(types[i]));
|
714
|
+
g_free(types);
|
715
|
+
|
716
|
+
return result;
|
717
|
+
}
|
718
|
+
|
719
|
+
static VALUE
|
720
|
+
type_interfaces(self)
|
721
|
+
VALUE self;
|
722
|
+
{
|
723
|
+
guint n_interfaces;
|
724
|
+
GType* types;
|
725
|
+
VALUE result;
|
726
|
+
int i;
|
727
|
+
|
728
|
+
types = g_type_interfaces(rbgobj_gtype_get(self), &n_interfaces);
|
729
|
+
result = rb_ary_new2(n_interfaces);
|
730
|
+
for (i = 0; i < n_interfaces; i++)
|
731
|
+
rb_ary_store(result, i, rbgobj_gtype_new(types[i]));
|
732
|
+
g_free(types);
|
733
|
+
|
734
|
+
return result;
|
735
|
+
}
|
736
|
+
|
737
|
+
static VALUE
|
738
|
+
type_class_size(self)
|
739
|
+
VALUE self;
|
740
|
+
{
|
741
|
+
GTypeQuery query;
|
742
|
+
g_type_query(rbgobj_gtype_get(self), &query);
|
743
|
+
return UINT2NUM(query.class_size);
|
744
|
+
}
|
745
|
+
|
746
|
+
static VALUE
|
747
|
+
type_instance_size(self)
|
748
|
+
VALUE self;
|
749
|
+
{
|
750
|
+
GTypeQuery query;
|
751
|
+
g_type_query(rbgobj_gtype_get(self), &query);
|
752
|
+
return UINT2NUM(query.instance_size);
|
753
|
+
}
|
754
|
+
|
755
|
+
|
756
|
+
static inline
|
757
|
+
void _def_fundamental_type(VALUE ary, GType gtype, const char* name)
|
758
|
+
{
|
759
|
+
VALUE c = rbgobj_gtype_new(gtype);
|
760
|
+
rb_define_const(rbgobj_cType, name, c);
|
761
|
+
rb_ary_push(ary, c);
|
762
|
+
}
|
763
|
+
|
764
|
+
static void
|
765
|
+
Init_type()
|
766
|
+
{
|
767
|
+
rb_cMutex = rb_const_get(rb_cObject, rb_intern("Mutex"));
|
768
|
+
id_lock = rb_intern("lock");
|
769
|
+
id_unlock = rb_intern("unlock");
|
770
|
+
lookup_class_mutex = rb_funcall(rb_cMutex, id_new, 0);
|
771
|
+
rb_iv_set(mGLib, "lookup_class_mutex", lookup_class_mutex);
|
772
|
+
|
773
|
+
dynamic_gtype_list = g_hash_table_new(g_str_hash, g_str_equal);
|
774
|
+
id_gtype = rb_intern("__gobject_gtype__");
|
775
|
+
|
776
|
+
rbgobj_cType = rb_define_class_under(mGLib, "Type", rb_cObject);
|
777
|
+
|
778
|
+
rb_define_alias(CLASS_OF(rbgobj_cType), "[]", "new");
|
779
|
+
rb_define_method(rbgobj_cType, "initialize", type_initialize, 1);
|
780
|
+
rb_define_method(rbgobj_cType, "inspect", type_inspect, 0);
|
781
|
+
rb_define_method(rbgobj_cType, "<=>", type_compare, 1);
|
782
|
+
rb_define_method(rbgobj_cType, "==", type_eq, 1);
|
783
|
+
rb_define_method(rbgobj_cType, "<=", type_lt_eq, 1);
|
784
|
+
rb_define_method(rbgobj_cType, ">=", type_gt_eq, 1);
|
785
|
+
rb_define_method(rbgobj_cType, "<", type_lt, 1);
|
786
|
+
rb_define_method(rbgobj_cType, ">", type_gt, 1);
|
787
|
+
rb_define_method(rbgobj_cType, "eql?", type_eq, 1);
|
788
|
+
rb_define_method(rbgobj_cType, "hash", type_to_int, 0);
|
789
|
+
rb_define_method(rbgobj_cType, "to_i", type_to_int, 0);
|
790
|
+
rb_define_method(rbgobj_cType, "to_int", type_to_int, 0);
|
791
|
+
rb_define_method(rbgobj_cType, "to_class", type_to_class, 0);
|
792
|
+
|
793
|
+
rb_define_method(rbgobj_cType, "fundamental", type_fundamental, 0);
|
794
|
+
rb_define_method(rbgobj_cType, "fundamental?", type_is_fundamental, 0);
|
795
|
+
rb_define_method(rbgobj_cType, "derived?", type_is_derived, 0);
|
796
|
+
rb_define_method(rbgobj_cType, "interface?", type_is_interface, 0);
|
797
|
+
rb_define_method(rbgobj_cType, "classed?", type_is_classed, 0);
|
798
|
+
rb_define_method(rbgobj_cType, "instantiatable?", type_is_instantiatable, 0);
|
799
|
+
rb_define_method(rbgobj_cType, "derivable?", type_is_derivable, 0);
|
800
|
+
rb_define_method(rbgobj_cType, "deep_derivable?", type_is_deep_derivable, 0);
|
801
|
+
rb_define_method(rbgobj_cType, "abstract?", type_is_abstract, 0);
|
802
|
+
rb_define_method(rbgobj_cType, "value_abstract?", type_is_value_abstract, 0);
|
803
|
+
rb_define_method(rbgobj_cType, "value_type?", type_is_value_type, 0);
|
804
|
+
rb_define_method(rbgobj_cType, "has_value_table", type_has_value_table, 0);
|
805
|
+
|
806
|
+
rb_define_method(rbgobj_cType, "name", type_name, 0);
|
807
|
+
rb_define_method(rbgobj_cType, "to_s", type_name, 0);
|
808
|
+
rb_define_method(rbgobj_cType, "parent", type_parent, 0);
|
809
|
+
rb_define_method(rbgobj_cType, "depth", type_depth, 0);
|
810
|
+
rb_define_method(rbgobj_cType, "next_base", type_next_base, 1);
|
811
|
+
rb_define_method(rbgobj_cType, "type_is_a?", type_is_a, 1);
|
812
|
+
rb_define_method(rbgobj_cType, "children", type_children, 0);
|
813
|
+
rb_define_method(rbgobj_cType, "interfaces", type_interfaces, 0);
|
814
|
+
rb_define_method(rbgobj_cType, "class_size", type_class_size, 0);
|
815
|
+
rb_define_method(rbgobj_cType, "instance_size", type_instance_size, 0);
|
816
|
+
|
817
|
+
{
|
818
|
+
VALUE ary = rb_ary_new();
|
819
|
+
rb_define_const(rbgobj_cType, "FUNDAMENTAL_MAX", INT2FIX(G_TYPE_FUNDAMENTAL_MAX));
|
820
|
+
_def_fundamental_type(ary, G_TYPE_NONE, "NONE");
|
821
|
+
_def_fundamental_type(ary, G_TYPE_INTERFACE, "INTERFACE");
|
822
|
+
_def_fundamental_type(ary, G_TYPE_CHAR, "CHAR");
|
823
|
+
_def_fundamental_type(ary, G_TYPE_UCHAR, "UCHAR");
|
824
|
+
_def_fundamental_type(ary, G_TYPE_BOOLEAN, "BOOLEAN");
|
825
|
+
_def_fundamental_type(ary, G_TYPE_INT, "INT");
|
826
|
+
_def_fundamental_type(ary, G_TYPE_UINT, "UINT");
|
827
|
+
_def_fundamental_type(ary, G_TYPE_LONG, "LONG");
|
828
|
+
_def_fundamental_type(ary, G_TYPE_ULONG, "ULONG");
|
829
|
+
_def_fundamental_type(ary, G_TYPE_INT64, "INT64");
|
830
|
+
_def_fundamental_type(ary, G_TYPE_UINT64, "UINT64");
|
831
|
+
_def_fundamental_type(ary, G_TYPE_ENUM, "ENUM");
|
832
|
+
_def_fundamental_type(ary, G_TYPE_FLAGS, "FLAGS");
|
833
|
+
_def_fundamental_type(ary, G_TYPE_FLOAT, "FLOAT");
|
834
|
+
_def_fundamental_type(ary, G_TYPE_DOUBLE, "DOUBLE");
|
835
|
+
_def_fundamental_type(ary, G_TYPE_STRING, "STRING");
|
836
|
+
_def_fundamental_type(ary, G_TYPE_POINTER, "POINTER");
|
837
|
+
_def_fundamental_type(ary, G_TYPE_BOXED, "BOXED");
|
838
|
+
_def_fundamental_type(ary, G_TYPE_PARAM, "PARAM");
|
839
|
+
_def_fundamental_type(ary, G_TYPE_OBJECT, "OBJECT");
|
840
|
+
rb_define_const(rbgobj_cType, "FUNDAMENTAL_TYPES", ary); /* FIXME: better name */
|
841
|
+
}
|
842
|
+
}
|
843
|
+
|
844
|
+
/**********************************************************************/
|
845
|
+
|
846
|
+
void Init_gobject_gtype()
|
847
|
+
{
|
848
|
+
g_type_init();
|
849
|
+
Init_typemap();
|
850
|
+
Init_type();
|
851
|
+
}
|