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,846 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/************************************************
|
3
|
+
|
4
|
+
rbglib_keyfile.c -
|
5
|
+
|
6
|
+
$Author: sakai $
|
7
|
+
$Date: 2007/06/16 02:46:28 $
|
8
|
+
|
9
|
+
Copyright (C) 2006 Masao Mutoh
|
10
|
+
************************************************/
|
11
|
+
|
12
|
+
#include "rbgprivate.h"
|
13
|
+
|
14
|
+
#if GLIB_CHECK_VERSION(2,6,0)
|
15
|
+
/************************************************/
|
16
|
+
static GKeyFile*
|
17
|
+
keyfile_copy(const GKeyFile* keyfile)
|
18
|
+
{
|
19
|
+
// GKeyFile* new_keyfile;
|
20
|
+
g_return_val_if_fail (keyfile != NULL, NULL);
|
21
|
+
/*
|
22
|
+
new_keyfile = g_key_file_new();
|
23
|
+
*new_keyfile = (GKeyFile*)*keyfile;
|
24
|
+
return new_keyfile;
|
25
|
+
*/
|
26
|
+
return (GKeyFile*)keyfile;
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
GType
|
31
|
+
g_key_file_get_type(void)
|
32
|
+
{
|
33
|
+
static GType our_type = 0;
|
34
|
+
if (our_type == 0)
|
35
|
+
our_type = g_boxed_type_register_static("GKeyFile",
|
36
|
+
(GBoxedCopyFunc)keyfile_copy,
|
37
|
+
(GBoxedFreeFunc)g_key_file_free);
|
38
|
+
return our_type;
|
39
|
+
}
|
40
|
+
/************************************************/
|
41
|
+
|
42
|
+
#define _SELF(self) ((GKeyFile*)(RVAL2BOXED(self, G_TYPE_KEY_FILE)))
|
43
|
+
|
44
|
+
static VALUE
|
45
|
+
keyfile_initialize(self)
|
46
|
+
VALUE self;
|
47
|
+
{
|
48
|
+
G_INITIALIZE(self, g_key_file_new());
|
49
|
+
return Qnil;
|
50
|
+
}
|
51
|
+
|
52
|
+
static VALUE
|
53
|
+
keyfile_set_list_separator(self, sep)
|
54
|
+
VALUE self, sep;
|
55
|
+
{
|
56
|
+
g_key_file_set_list_separator(_SELF(self), NUM2INT(sep));
|
57
|
+
return self;
|
58
|
+
}
|
59
|
+
|
60
|
+
static VALUE
|
61
|
+
keyfile_load_from_file(argc, argv, self)
|
62
|
+
int argc;
|
63
|
+
VALUE *argv;
|
64
|
+
VALUE self;
|
65
|
+
{
|
66
|
+
VALUE file, flags;
|
67
|
+
GError* error = NULL;
|
68
|
+
gboolean ret;
|
69
|
+
GKeyFileFlags gflags = G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS;
|
70
|
+
|
71
|
+
rb_scan_args(argc, argv, "11", &file, &flags);
|
72
|
+
|
73
|
+
if (!NIL_P(flags)){
|
74
|
+
gflags = RVAL2GFLAGS(flags, G_TYPE_KEY_FILE_FLAGS);
|
75
|
+
}
|
76
|
+
|
77
|
+
ret = g_key_file_load_from_file(_SELF(self),
|
78
|
+
(const gchar*)RVAL2CSTR(file),
|
79
|
+
gflags, &error);
|
80
|
+
|
81
|
+
if (! ret) RAISE_GERROR(error);
|
82
|
+
|
83
|
+
return self;
|
84
|
+
}
|
85
|
+
|
86
|
+
static VALUE
|
87
|
+
keyfile_load_from_data(argc, argv, self)
|
88
|
+
int argc;
|
89
|
+
VALUE *argv;
|
90
|
+
VALUE self;
|
91
|
+
{
|
92
|
+
VALUE data, flags;
|
93
|
+
GError* error = NULL;
|
94
|
+
gboolean ret;
|
95
|
+
GKeyFileFlags gflags = G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS;
|
96
|
+
|
97
|
+
rb_scan_args(argc, argv, "11", &data, &flags);
|
98
|
+
|
99
|
+
if (!NIL_P(flags)){
|
100
|
+
gflags = RVAL2GFLAGS(flags, G_TYPE_KEY_FILE_FLAGS);
|
101
|
+
}
|
102
|
+
StringValue(data);
|
103
|
+
|
104
|
+
ret = g_key_file_load_from_data(_SELF(self),
|
105
|
+
(const gchar*)RVAL2CSTR(data),
|
106
|
+
(gsize)RSTRING_LEN(data),
|
107
|
+
gflags, &error);
|
108
|
+
|
109
|
+
if (! ret) RAISE_GERROR(error);
|
110
|
+
|
111
|
+
return self;
|
112
|
+
}
|
113
|
+
|
114
|
+
static VALUE
|
115
|
+
keyfile_load_from_data_dirs(argc, argv, self)
|
116
|
+
int argc;
|
117
|
+
VALUE *argv;
|
118
|
+
VALUE self;
|
119
|
+
{
|
120
|
+
VALUE file, flags;
|
121
|
+
GError* error = NULL;
|
122
|
+
gboolean ret;
|
123
|
+
gchar* full_path;
|
124
|
+
GKeyFileFlags gflags = G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS;
|
125
|
+
|
126
|
+
rb_scan_args(argc, argv, "11", &file, &flags);
|
127
|
+
|
128
|
+
if (!NIL_P(flags)){
|
129
|
+
gflags = RVAL2GFLAGS(flags, G_TYPE_KEY_FILE_FLAGS);
|
130
|
+
}
|
131
|
+
StringValue(file);
|
132
|
+
|
133
|
+
ret = g_key_file_load_from_data_dirs(_SELF(self),
|
134
|
+
(const gchar*)RVAL2CSTR(file),
|
135
|
+
&full_path,
|
136
|
+
gflags, &error);
|
137
|
+
|
138
|
+
if (! ret) RAISE_GERROR(error);
|
139
|
+
|
140
|
+
return full_path ? CSTR2RVAL(full_path) : Qnil;
|
141
|
+
}
|
142
|
+
|
143
|
+
#if GLIB_CHECK_VERSION(2, 14, 0)
|
144
|
+
static VALUE
|
145
|
+
keyfile_load_from_dirs(int argc, VALUE *argv, VALUE self)
|
146
|
+
{
|
147
|
+
VALUE rb_file, rb_search_dirs, rb_flags;
|
148
|
+
GError* error = NULL;
|
149
|
+
gboolean success;
|
150
|
+
const gchar *file;
|
151
|
+
gchar **search_dirs;
|
152
|
+
gchar* full_path;
|
153
|
+
GKeyFileFlags flags;
|
154
|
+
|
155
|
+
rb_scan_args(argc, argv, "12", &rb_file, &rb_search_dirs, &rb_flags);
|
156
|
+
|
157
|
+
file = RVAL2CSTR(rb_file);
|
158
|
+
if (NIL_P(rb_search_dirs)) {
|
159
|
+
search_dirs = NULL;
|
160
|
+
}
|
161
|
+
else {
|
162
|
+
long i, len;
|
163
|
+
|
164
|
+
Check_Type(rb_search_dirs, T_ARRAY);
|
165
|
+
len = RARRAY_LEN(rb_search_dirs);
|
166
|
+
search_dirs = ALLOCA_N(gchar *, len + 1);
|
167
|
+
for (i = 0; i < len; i++) {
|
168
|
+
search_dirs[i] = RVAL2CSTR(RARRAY_PTR(rb_search_dirs)[i]);
|
169
|
+
}
|
170
|
+
search_dirs[i] = NULL;
|
171
|
+
}
|
172
|
+
flags = G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS;
|
173
|
+
if (!NIL_P(rb_flags))
|
174
|
+
flags = RVAL2GFLAGS(rb_flags, G_TYPE_KEY_FILE_FLAGS);
|
175
|
+
|
176
|
+
if (search_dirs)
|
177
|
+
success = g_key_file_load_from_dirs(_SELF(self), file,
|
178
|
+
(const gchar **)search_dirs,
|
179
|
+
&full_path, flags, &error);
|
180
|
+
else
|
181
|
+
success = g_key_file_load_from_data_dirs(_SELF(self), file,
|
182
|
+
&full_path, flags, &error);
|
183
|
+
|
184
|
+
if (!success)
|
185
|
+
RAISE_GERROR(error);
|
186
|
+
|
187
|
+
return CSTR2RVAL(full_path);
|
188
|
+
}
|
189
|
+
#endif
|
190
|
+
|
191
|
+
static VALUE
|
192
|
+
keyfile_to_data(self)
|
193
|
+
VALUE self;
|
194
|
+
{
|
195
|
+
gsize length;
|
196
|
+
GError* error = NULL;
|
197
|
+
gchar* data = g_key_file_to_data(_SELF(self), &length, &error);
|
198
|
+
|
199
|
+
if (error) RAISE_GERROR(error);
|
200
|
+
|
201
|
+
return rb_str_new(data, length);
|
202
|
+
}
|
203
|
+
|
204
|
+
static VALUE
|
205
|
+
keyfile_get_start_group(self)
|
206
|
+
VALUE self;
|
207
|
+
{
|
208
|
+
return CSTR2RVAL(g_key_file_get_start_group(_SELF(self)));
|
209
|
+
}
|
210
|
+
|
211
|
+
static VALUE
|
212
|
+
keyfile_get_groups(self)
|
213
|
+
VALUE self;
|
214
|
+
{
|
215
|
+
gsize length;
|
216
|
+
int i;
|
217
|
+
gchar** groups = g_key_file_get_groups(_SELF(self), &length);
|
218
|
+
VALUE ary = rb_ary_new();
|
219
|
+
|
220
|
+
for (i = 0; i < length; i++){
|
221
|
+
rb_ary_push(ary, CSTR2RVAL(groups[i]));
|
222
|
+
}
|
223
|
+
|
224
|
+
g_strfreev(groups);
|
225
|
+
|
226
|
+
return ary;
|
227
|
+
}
|
228
|
+
|
229
|
+
static VALUE
|
230
|
+
keyfile_get_keys(self, group_name)
|
231
|
+
VALUE self, group_name;
|
232
|
+
{
|
233
|
+
gsize length;
|
234
|
+
int i;
|
235
|
+
GError* error = NULL;
|
236
|
+
gchar** keys = g_key_file_get_keys(_SELF(self),
|
237
|
+
(const gchar*)RVAL2CSTR(group_name),
|
238
|
+
&length, &error);
|
239
|
+
VALUE ary = rb_ary_new();
|
240
|
+
|
241
|
+
if (error) RAISE_GERROR(error);
|
242
|
+
|
243
|
+
for (i = 0; i < length; i++){
|
244
|
+
rb_ary_push(ary, CSTR2RVAL(keys[i]));
|
245
|
+
}
|
246
|
+
|
247
|
+
g_strfreev(keys);
|
248
|
+
|
249
|
+
return ary;
|
250
|
+
}
|
251
|
+
|
252
|
+
static VALUE
|
253
|
+
keyfile_has_group(self, group_name)
|
254
|
+
VALUE self, group_name;
|
255
|
+
{
|
256
|
+
return CBOOL2RVAL(g_key_file_has_group(_SELF(self),
|
257
|
+
(const gchar*)RVAL2CSTR(group_name)));
|
258
|
+
}
|
259
|
+
|
260
|
+
static VALUE
|
261
|
+
keyfile_has_key(self, group_name, key)
|
262
|
+
VALUE self, group_name, key;
|
263
|
+
{
|
264
|
+
GError* error = NULL;
|
265
|
+
gboolean ret = g_key_file_has_key(_SELF(self),
|
266
|
+
(const gchar*)RVAL2CSTR(group_name),
|
267
|
+
(const gchar*)RVAL2CSTR(key),
|
268
|
+
&error);
|
269
|
+
|
270
|
+
if (error) RAISE_GERROR(error);
|
271
|
+
|
272
|
+
return CBOOL2RVAL(ret);
|
273
|
+
}
|
274
|
+
|
275
|
+
static VALUE
|
276
|
+
keyfile_get_value(self, group_name, key)
|
277
|
+
VALUE self, group_name, key;
|
278
|
+
{
|
279
|
+
GError* error = NULL;
|
280
|
+
gchar* ret = g_key_file_get_value(_SELF(self),
|
281
|
+
(const gchar*)RVAL2CSTR(group_name),
|
282
|
+
(const gchar*)RVAL2CSTR(key),
|
283
|
+
&error);
|
284
|
+
|
285
|
+
if (error) RAISE_GERROR(error);
|
286
|
+
|
287
|
+
return ret ? CSTR2RVAL2(ret) : Qnil;
|
288
|
+
}
|
289
|
+
|
290
|
+
static VALUE
|
291
|
+
keyfile_get_string(self, group_name, key)
|
292
|
+
VALUE self, group_name, key;
|
293
|
+
{
|
294
|
+
GError* error = NULL;
|
295
|
+
gchar* ret = g_key_file_get_string(_SELF(self),
|
296
|
+
(const gchar*)RVAL2CSTR(group_name),
|
297
|
+
(const gchar*)RVAL2CSTR(key),
|
298
|
+
&error);
|
299
|
+
|
300
|
+
if (error) RAISE_GERROR(error);
|
301
|
+
|
302
|
+
return ret ? CSTR2RVAL2(ret) : Qnil;
|
303
|
+
}
|
304
|
+
|
305
|
+
static VALUE
|
306
|
+
keyfile_get_locale_string(argc, argv, self)
|
307
|
+
int argc;
|
308
|
+
VALUE *argv;
|
309
|
+
VALUE self;
|
310
|
+
{
|
311
|
+
VALUE group_name, key, locale;
|
312
|
+
GError* error = NULL;
|
313
|
+
gchar* ret;
|
314
|
+
|
315
|
+
rb_scan_args(argc, argv, "21", &group_name, &key, &locale);
|
316
|
+
|
317
|
+
ret = g_key_file_get_locale_string(_SELF(self),
|
318
|
+
(const gchar*)RVAL2CSTR(group_name),
|
319
|
+
(const gchar*)RVAL2CSTR(key),
|
320
|
+
(const gchar*)(NIL_P(locale) ? NULL : RVAL2CSTR(locale)),
|
321
|
+
&error);
|
322
|
+
|
323
|
+
if (error) RAISE_GERROR(error);
|
324
|
+
|
325
|
+
return ret ? CSTR2RVAL2(ret) : Qnil;
|
326
|
+
}
|
327
|
+
|
328
|
+
static VALUE
|
329
|
+
keyfile_get_boolean(self, group_name, key)
|
330
|
+
VALUE self, group_name, key;
|
331
|
+
{
|
332
|
+
GError* error = NULL;
|
333
|
+
gboolean ret = g_key_file_get_boolean(_SELF(self),
|
334
|
+
(const gchar*)RVAL2CSTR(group_name),
|
335
|
+
(const gchar*)RVAL2CSTR(key),
|
336
|
+
&error);
|
337
|
+
|
338
|
+
if (error) RAISE_GERROR(error);
|
339
|
+
|
340
|
+
return CBOOL2RVAL(ret);
|
341
|
+
}
|
342
|
+
|
343
|
+
static VALUE
|
344
|
+
keyfile_get_integer(self, group_name, key)
|
345
|
+
VALUE self, group_name, key;
|
346
|
+
{
|
347
|
+
GError* error = NULL;
|
348
|
+
gint ret = g_key_file_get_integer(_SELF(self),
|
349
|
+
(const gchar*)RVAL2CSTR(group_name),
|
350
|
+
(const gchar*)RVAL2CSTR(key),
|
351
|
+
&error);
|
352
|
+
|
353
|
+
if (error) RAISE_GERROR(error);
|
354
|
+
|
355
|
+
return INT2NUM(ret);
|
356
|
+
}
|
357
|
+
|
358
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
359
|
+
static VALUE
|
360
|
+
keyfile_get_double(self, group_name, key)
|
361
|
+
VALUE self, group_name, key;
|
362
|
+
{
|
363
|
+
GError* error = NULL;
|
364
|
+
gdouble ret = g_key_file_get_double(_SELF(self),
|
365
|
+
(const gchar*)RVAL2CSTR(group_name),
|
366
|
+
(const gchar*)RVAL2CSTR(key),
|
367
|
+
&error);
|
368
|
+
|
369
|
+
if (error) RAISE_GERROR(error);
|
370
|
+
|
371
|
+
return rb_float_new(ret);
|
372
|
+
}
|
373
|
+
#endif
|
374
|
+
|
375
|
+
static VALUE
|
376
|
+
keyfile_get_string_list(self, group_name, key)
|
377
|
+
VALUE self, group_name, key;
|
378
|
+
{
|
379
|
+
VALUE ary;
|
380
|
+
gint i;
|
381
|
+
gsize length;
|
382
|
+
GError* error = NULL;
|
383
|
+
gchar** ret = g_key_file_get_string_list(_SELF(self),
|
384
|
+
(const gchar*)RVAL2CSTR(group_name),
|
385
|
+
(const gchar*)RVAL2CSTR(key),
|
386
|
+
&length, &error);
|
387
|
+
|
388
|
+
if (error) RAISE_GERROR(error);
|
389
|
+
|
390
|
+
ary = rb_ary_new();
|
391
|
+
for(i = 0; i < length; i++){
|
392
|
+
rb_ary_push(ary, CSTR2RVAL(ret[i]));
|
393
|
+
}
|
394
|
+
|
395
|
+
g_strfreev(ret);
|
396
|
+
return ary;
|
397
|
+
}
|
398
|
+
|
399
|
+
static VALUE
|
400
|
+
keyfile_get_locale_string_list(argc, argv, self)
|
401
|
+
int argc;
|
402
|
+
VALUE *argv;
|
403
|
+
VALUE self;
|
404
|
+
{
|
405
|
+
VALUE group_name, key, locale;
|
406
|
+
GError* error = NULL;
|
407
|
+
VALUE ary;
|
408
|
+
gint i;
|
409
|
+
gsize length;
|
410
|
+
gchar** ret;
|
411
|
+
|
412
|
+
rb_scan_args(argc, argv, "21", &group_name, &key, &locale);
|
413
|
+
|
414
|
+
ret = g_key_file_get_locale_string_list(_SELF(self),
|
415
|
+
(const gchar*)RVAL2CSTR(group_name),
|
416
|
+
(const gchar*)RVAL2CSTR(key),
|
417
|
+
(const gchar*)(NIL_P(locale) ? NULL : RVAL2CSTR(locale)),
|
418
|
+
&length, &error);
|
419
|
+
|
420
|
+
if (error) RAISE_GERROR(error);
|
421
|
+
|
422
|
+
ary = rb_ary_new();
|
423
|
+
for(i = 0; i < length; i++){
|
424
|
+
rb_ary_push(ary, CSTR2RVAL(ret[i]));
|
425
|
+
}
|
426
|
+
|
427
|
+
g_strfreev(ret);
|
428
|
+
return ary;
|
429
|
+
}
|
430
|
+
|
431
|
+
static VALUE
|
432
|
+
keyfile_get_boolean_list(self, group_name, key)
|
433
|
+
VALUE self, group_name, key;
|
434
|
+
{
|
435
|
+
VALUE ary;
|
436
|
+
gint i;
|
437
|
+
gsize length;
|
438
|
+
GError* error = NULL;
|
439
|
+
gboolean* ret = g_key_file_get_boolean_list(_SELF(self),
|
440
|
+
(const gchar*)RVAL2CSTR(group_name),
|
441
|
+
(const gchar*)RVAL2CSTR(key),
|
442
|
+
&length, &error);
|
443
|
+
|
444
|
+
if (error) RAISE_GERROR(error);
|
445
|
+
|
446
|
+
ary = rb_ary_new();
|
447
|
+
for(i = 0; i < length; i++){
|
448
|
+
rb_ary_push(ary, CBOOL2RVAL(ret[i]));
|
449
|
+
}
|
450
|
+
return ary;
|
451
|
+
}
|
452
|
+
|
453
|
+
static VALUE
|
454
|
+
keyfile_get_integer_list(self, group_name, key)
|
455
|
+
VALUE self, group_name, key;
|
456
|
+
{
|
457
|
+
VALUE ary;
|
458
|
+
gint i;
|
459
|
+
gsize length;
|
460
|
+
GError* error = NULL;
|
461
|
+
gint* ret = g_key_file_get_integer_list(_SELF(self),
|
462
|
+
(const gchar*)RVAL2CSTR(group_name),
|
463
|
+
(const gchar*)RVAL2CSTR(key),
|
464
|
+
&length, &error);
|
465
|
+
|
466
|
+
if (error) RAISE_GERROR(error);
|
467
|
+
|
468
|
+
ary = rb_ary_new();
|
469
|
+
for(i = 0; i < length; i++){
|
470
|
+
rb_ary_push(ary, INT2NUM(ret[i]));
|
471
|
+
}
|
472
|
+
return ary;
|
473
|
+
}
|
474
|
+
|
475
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
476
|
+
static VALUE
|
477
|
+
keyfile_get_double_list(self, group_name, key)
|
478
|
+
VALUE self, group_name, key;
|
479
|
+
{
|
480
|
+
VALUE ary;
|
481
|
+
gint i;
|
482
|
+
gsize length;
|
483
|
+
GError* error = NULL;
|
484
|
+
gdouble* ret = g_key_file_get_double_list(_SELF(self),
|
485
|
+
(const gchar*)RVAL2CSTR(group_name),
|
486
|
+
(const gchar*)RVAL2CSTR(key),
|
487
|
+
&length, &error);
|
488
|
+
|
489
|
+
if (error) RAISE_GERROR(error);
|
490
|
+
|
491
|
+
ary = rb_ary_new();
|
492
|
+
for(i = 0; i < length; i++){
|
493
|
+
rb_ary_push(ary, rb_float_new(ret[i]));
|
494
|
+
}
|
495
|
+
return ary;
|
496
|
+
}
|
497
|
+
#endif
|
498
|
+
|
499
|
+
static VALUE
|
500
|
+
keyfile_get_comment(self, group_name, key)
|
501
|
+
VALUE self, group_name, key;
|
502
|
+
{
|
503
|
+
GError* error = NULL;
|
504
|
+
gchar* ret = g_key_file_get_comment(_SELF(self),
|
505
|
+
(const gchar*)RVAL2CSTR(group_name),
|
506
|
+
(const gchar*)RVAL2CSTR(key),
|
507
|
+
&error);
|
508
|
+
|
509
|
+
if (error) RAISE_GERROR(error);
|
510
|
+
|
511
|
+
return CSTR2RVAL2(ret);
|
512
|
+
}
|
513
|
+
|
514
|
+
static VALUE
|
515
|
+
keyfile_set_value(self, group_name, key, value)
|
516
|
+
VALUE self, group_name, key, value;
|
517
|
+
{
|
518
|
+
g_key_file_set_value(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
519
|
+
(const gchar*)RVAL2CSTR(key),
|
520
|
+
(const gchar*)RVAL2CSTR(value));
|
521
|
+
return self;
|
522
|
+
}
|
523
|
+
|
524
|
+
static VALUE
|
525
|
+
keyfile_set_string(self, group_name, key, string)
|
526
|
+
VALUE self, group_name, key, string;
|
527
|
+
{
|
528
|
+
g_key_file_set_string(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
529
|
+
(const gchar*)RVAL2CSTR(key),
|
530
|
+
(const gchar*)RVAL2CSTR(string));
|
531
|
+
return self;
|
532
|
+
}
|
533
|
+
|
534
|
+
static VALUE
|
535
|
+
keyfile_set_locale_string(self, group_name, key, locale, locale_string)
|
536
|
+
VALUE self, group_name, key, locale, locale_string;
|
537
|
+
{
|
538
|
+
g_key_file_set_locale_string(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
539
|
+
(const gchar*)RVAL2CSTR(key),
|
540
|
+
(const gchar*)RVAL2CSTR(locale),
|
541
|
+
(const gchar*)RVAL2CSTR(locale_string));
|
542
|
+
return self;
|
543
|
+
}
|
544
|
+
|
545
|
+
static VALUE
|
546
|
+
keyfile_set_boolean(self, group_name, key, value)
|
547
|
+
VALUE self, group_name, key, value;
|
548
|
+
{
|
549
|
+
g_key_file_set_boolean(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
550
|
+
(const gchar*)RVAL2CSTR(key),
|
551
|
+
RVAL2CBOOL(value));
|
552
|
+
return self;
|
553
|
+
}
|
554
|
+
|
555
|
+
static VALUE
|
556
|
+
keyfile_set_integer(self, group_name, key, value)
|
557
|
+
VALUE self, group_name, key, value;
|
558
|
+
{
|
559
|
+
g_key_file_set_integer(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
560
|
+
(const gchar*)RVAL2CSTR(key),
|
561
|
+
NUM2INT(value));
|
562
|
+
return self;
|
563
|
+
}
|
564
|
+
|
565
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
566
|
+
static VALUE
|
567
|
+
keyfile_set_double(self, group_name, key, value)
|
568
|
+
VALUE self, group_name, key, value;
|
569
|
+
{
|
570
|
+
g_key_file_set_double(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
571
|
+
(const gchar*)RVAL2CSTR(key),
|
572
|
+
NUM2DBL(value));
|
573
|
+
return self;
|
574
|
+
}
|
575
|
+
#endif
|
576
|
+
|
577
|
+
static VALUE
|
578
|
+
keyfile_set_string_list(self, group_name, key, list)
|
579
|
+
VALUE self, group_name, key, list;
|
580
|
+
{
|
581
|
+
gint len = RARRAY_LEN(list);
|
582
|
+
gchar** glist = ALLOCA_N(gchar*, len);
|
583
|
+
gint i;
|
584
|
+
|
585
|
+
for (i = 0; i < len; i++){
|
586
|
+
glist[i] = RVAL2CSTR(RARRAY_PTR(list)[i]);
|
587
|
+
}
|
588
|
+
|
589
|
+
g_key_file_set_string_list(_SELF(self),
|
590
|
+
(const gchar*)RVAL2CSTR(group_name),
|
591
|
+
(const gchar*)RVAL2CSTR(key),
|
592
|
+
(const gchar**)glist, len);
|
593
|
+
return self;
|
594
|
+
}
|
595
|
+
|
596
|
+
static VALUE
|
597
|
+
keyfile_set_locale_string_list(self, group_name, key, locale, list)
|
598
|
+
VALUE self, group_name, key, locale, list;
|
599
|
+
{
|
600
|
+
gint len = RARRAY_LEN(list);
|
601
|
+
gchar** glist = ALLOCA_N(gchar*, len);
|
602
|
+
gint i;
|
603
|
+
|
604
|
+
for (i = 0; i < len; i++){
|
605
|
+
glist[i] = RVAL2CSTR(RARRAY_PTR(list)[i]);
|
606
|
+
}
|
607
|
+
|
608
|
+
g_key_file_set_locale_string_list(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
609
|
+
(const gchar*)RVAL2CSTR(key),
|
610
|
+
(const gchar*)RVAL2CSTR(locale),
|
611
|
+
(const gchar**)glist, len);
|
612
|
+
|
613
|
+
return self;
|
614
|
+
}
|
615
|
+
|
616
|
+
static VALUE
|
617
|
+
keyfile_set_boolean_list(self, group_name, key, list)
|
618
|
+
VALUE self, group_name, key, list;
|
619
|
+
{
|
620
|
+
gint len = RARRAY_LEN(list);
|
621
|
+
gboolean* glist = ALLOCA_N(gboolean, len);
|
622
|
+
gint i;
|
623
|
+
|
624
|
+
for (i = 0; i < len; i++){
|
625
|
+
glist[i] = RVAL2CBOOL(RARRAY_PTR(list)[i]);
|
626
|
+
}
|
627
|
+
|
628
|
+
g_key_file_set_boolean_list(_SELF(self),
|
629
|
+
(const gchar*)RVAL2CSTR(group_name),
|
630
|
+
(const gchar*)RVAL2CSTR(key),
|
631
|
+
glist, len);
|
632
|
+
return self;
|
633
|
+
}
|
634
|
+
|
635
|
+
static VALUE
|
636
|
+
keyfile_set_integer_list(self, group_name, key, list)
|
637
|
+
VALUE self, group_name, key, list;
|
638
|
+
{
|
639
|
+
gint len = RARRAY_LEN(list);
|
640
|
+
gint* glist = ALLOCA_N(gint, len);
|
641
|
+
gint i;
|
642
|
+
|
643
|
+
for (i = 0; i < len; i++){
|
644
|
+
glist[i] = RVAL2CBOOL(RARRAY_PTR(list)[i]);
|
645
|
+
}
|
646
|
+
|
647
|
+
g_key_file_set_integer_list(_SELF(self),
|
648
|
+
(const gchar*)RVAL2CSTR(group_name),
|
649
|
+
(const gchar*)RVAL2CSTR(key),
|
650
|
+
glist, len);
|
651
|
+
return self;
|
652
|
+
}
|
653
|
+
|
654
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
655
|
+
static VALUE
|
656
|
+
keyfile_set_double_list(self, group_name, key, list)
|
657
|
+
VALUE self, group_name, key, list;
|
658
|
+
{
|
659
|
+
gint len = RARRAY_LEN(list);
|
660
|
+
gdouble* glist = ALLOCA_N(gdouble, len);
|
661
|
+
gint i;
|
662
|
+
|
663
|
+
for (i = 0; i < len; i++){
|
664
|
+
glist[i] = RVAL2CBOOL(RARRAY_PTR(list)[i]);
|
665
|
+
}
|
666
|
+
|
667
|
+
g_key_file_set_double_list(_SELF(self),
|
668
|
+
(const gchar*)RVAL2CSTR(group_name),
|
669
|
+
(const gchar*)RVAL2CSTR(key),
|
670
|
+
glist, len);
|
671
|
+
return self;
|
672
|
+
}
|
673
|
+
#endif
|
674
|
+
|
675
|
+
static VALUE
|
676
|
+
keyfile_set_comment(self, group_name, key, comment)
|
677
|
+
VALUE self, group_name, key, comment;
|
678
|
+
{
|
679
|
+
GError* error = NULL;
|
680
|
+
g_key_file_set_comment(_SELF(self), (const gchar*)RVAL2CSTR(group_name),
|
681
|
+
(const gchar*)(NIL_P(key) ? NULL : RVAL2CSTR(key)),
|
682
|
+
(const gchar*)RVAL2CSTR(comment), &error);
|
683
|
+
|
684
|
+
if (error) RAISE_GERROR(error);
|
685
|
+
|
686
|
+
return self;
|
687
|
+
}
|
688
|
+
|
689
|
+
static VALUE
|
690
|
+
keyfile_remove_group(self, group_name)
|
691
|
+
VALUE self, group_name;
|
692
|
+
{
|
693
|
+
GError* error = NULL;
|
694
|
+
g_key_file_remove_group(_SELF(self), (const gchar*)RVAL2CSTR(group_name), &error);
|
695
|
+
|
696
|
+
if (error) RAISE_GERROR(error);
|
697
|
+
|
698
|
+
return self;
|
699
|
+
}
|
700
|
+
|
701
|
+
static VALUE
|
702
|
+
keyfile_remove_key(self, group_name, key)
|
703
|
+
VALUE self, group_name, key;
|
704
|
+
{
|
705
|
+
GError* error = NULL;
|
706
|
+
g_key_file_remove_key(_SELF(self),
|
707
|
+
(const gchar*)RVAL2CSTR(group_name),
|
708
|
+
(const gchar*)RVAL2CSTR(key),
|
709
|
+
&error);
|
710
|
+
|
711
|
+
if (error) RAISE_GERROR(error);
|
712
|
+
|
713
|
+
return self;
|
714
|
+
}
|
715
|
+
|
716
|
+
|
717
|
+
static VALUE
|
718
|
+
keyfile_remove_comment(self, group_name, key)
|
719
|
+
VALUE self, group_name, key;
|
720
|
+
{
|
721
|
+
GError* error = NULL;
|
722
|
+
g_key_file_remove_comment(_SELF(self),
|
723
|
+
(const gchar*)RVAL2CSTR(group_name),
|
724
|
+
(const gchar*)RVAL2CSTR(key),
|
725
|
+
&error);
|
726
|
+
|
727
|
+
if (error) RAISE_GERROR(error);
|
728
|
+
|
729
|
+
return self;
|
730
|
+
}
|
731
|
+
#endif
|
732
|
+
|
733
|
+
void
|
734
|
+
Init_glib_keyfile()
|
735
|
+
{
|
736
|
+
#if GLIB_CHECK_VERSION(2,6,0)
|
737
|
+
VALUE kf = G_DEF_CLASS(G_TYPE_KEY_FILE, "KeyFile", mGLib);
|
738
|
+
G_DEF_ERROR(G_KEY_FILE_ERROR, "KeyFileError", mGLib,
|
739
|
+
rb_eRuntimeError, G_TYPE_KEY_FILE_ERROR);
|
740
|
+
|
741
|
+
rb_define_method(kf, "initialize", keyfile_initialize, 0);
|
742
|
+
rb_define_method(kf, "set_list_separator", keyfile_set_list_separator, 1);
|
743
|
+
rb_define_method(kf, "load_from_file", keyfile_load_from_file, -1);
|
744
|
+
rb_define_method(kf, "load_from_data", keyfile_load_from_data, -1);
|
745
|
+
rb_define_method(kf, "load_from_data_dirs", keyfile_load_from_data_dirs, -1);
|
746
|
+
#if GLIB_CHECK_VERSION(2, 14, 0)
|
747
|
+
rb_define_method(kf, "load_from_dirs", keyfile_load_from_dirs, -1);
|
748
|
+
#endif
|
749
|
+
rb_define_method(kf, "to_data", keyfile_to_data, 0);
|
750
|
+
rb_define_method(kf, "start_group", keyfile_get_start_group, 0);
|
751
|
+
rb_define_method(kf, "groups", keyfile_get_groups, 0);
|
752
|
+
rb_define_method(kf, "get_keys", keyfile_get_keys, 1);
|
753
|
+
rb_define_method(kf, "has_group?", keyfile_has_group, 1);
|
754
|
+
rb_define_method(kf, "has_key?", keyfile_has_key, 2);
|
755
|
+
rb_define_method(kf, "get_value", keyfile_get_value, 2);
|
756
|
+
rb_define_method(kf, "get_string", keyfile_get_string, 2);
|
757
|
+
rb_define_method(kf, "get_locale_string", keyfile_get_locale_string, -1);
|
758
|
+
rb_define_method(kf, "get_boolean", keyfile_get_boolean, 2);
|
759
|
+
rb_define_method(kf, "get_integer", keyfile_get_integer, 2);
|
760
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
761
|
+
rb_define_method(kf, "get_double", keyfile_get_double, 2);
|
762
|
+
#endif
|
763
|
+
rb_define_method(kf, "get_string_list", keyfile_get_string_list, 2);
|
764
|
+
rb_define_method(kf, "get_locale_string_list", keyfile_get_locale_string_list, -1);
|
765
|
+
rb_define_method(kf, "get_boolean_list", keyfile_get_boolean_list, 2);
|
766
|
+
rb_define_method(kf, "get_integer_list", keyfile_get_integer_list, 2);
|
767
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
768
|
+
rb_define_method(kf, "get_double_list", keyfile_get_double_list, 2);
|
769
|
+
#endif
|
770
|
+
rb_define_method(kf, "get_comment", keyfile_get_comment, 2);
|
771
|
+
rb_define_method(kf, "set_value", keyfile_set_value, 3);
|
772
|
+
rb_define_method(kf, "set_string", keyfile_set_string, 3);
|
773
|
+
rb_define_method(kf, "set_locale_string", keyfile_set_locale_string, 4);
|
774
|
+
rb_define_method(kf, "set_boolean", keyfile_set_boolean, 3);
|
775
|
+
rb_define_method(kf, "set_integer", keyfile_set_integer, 3);
|
776
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
777
|
+
rb_define_method(kf, "set_double", keyfile_set_double, 3);
|
778
|
+
#endif
|
779
|
+
rb_define_method(kf, "set_string_list", keyfile_set_string_list, 3);
|
780
|
+
rb_define_method(kf, "set_locale_string_list", keyfile_set_locale_string_list, 4);
|
781
|
+
rb_define_method(kf, "set_boolean_list", keyfile_set_boolean_list, 3);
|
782
|
+
rb_define_method(kf, "set_integer_list", keyfile_set_integer_list, 3);
|
783
|
+
#if GLIB_CHECK_VERSION(2,12,0)
|
784
|
+
rb_define_method(kf, "set_double_list", keyfile_set_double_list, 3);
|
785
|
+
#endif
|
786
|
+
rb_define_method(kf, "set_comment", keyfile_set_comment, 3);
|
787
|
+
rb_define_method(kf, "remove_group", keyfile_remove_group, 1);
|
788
|
+
rb_define_method(kf, "remove_key", keyfile_remove_key, 2);
|
789
|
+
rb_define_method(kf, "remove_comment", keyfile_remove_comment, 2);
|
790
|
+
|
791
|
+
/* GKeyFileFlags */
|
792
|
+
G_DEF_CLASS(G_TYPE_KEY_FILE_FLAGS, "Flags", kf);
|
793
|
+
G_DEF_CONSTANTS(kf, G_TYPE_KEY_FILE_FLAGS, "G_KEY_FILE_");
|
794
|
+
|
795
|
+
#if GLIB_CHECK_VERSION(2, 14, 0)
|
796
|
+
/* Defines for handling freedesktop.org Desktop files */
|
797
|
+
rb_define_const(kf, "DESKTOP_GROUP", CSTR2RVAL(G_KEY_FILE_DESKTOP_GROUP));
|
798
|
+
|
799
|
+
rb_define_const(kf, "DESKTOP_KEY_TYPE",
|
800
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_TYPE));
|
801
|
+
rb_define_const(kf, "DESKTOP_KEY_VERSION",
|
802
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_VERSION));
|
803
|
+
rb_define_const(kf, "DESKTOP_KEY_NAME",
|
804
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_NAME));
|
805
|
+
rb_define_const(kf, "DESKTOP_KEY_GENERIC_NAME",
|
806
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME));
|
807
|
+
rb_define_const(kf, "DESKTOP_KEY_NO_DISPLAY",
|
808
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY));
|
809
|
+
rb_define_const(kf, "DESKTOP_KEY_COMMENT",
|
810
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_COMMENT));
|
811
|
+
rb_define_const(kf, "DESKTOP_KEY_ICON",
|
812
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_ICON));
|
813
|
+
rb_define_const(kf, "DESKTOP_KEY_HIDDEN",
|
814
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_HIDDEN));
|
815
|
+
rb_define_const(kf, "DESKTOP_KEY_ONLY_SHOW_IN",
|
816
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN));
|
817
|
+
rb_define_const(kf, "DESKTOP_KEY_NOT_SHOW_IN",
|
818
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN));
|
819
|
+
rb_define_const(kf, "DESKTOP_KEY_TRY_EXEC",
|
820
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_TRY_EXEC));
|
821
|
+
rb_define_const(kf, "DESKTOP_KEY_EXEC",
|
822
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_EXEC));
|
823
|
+
rb_define_const(kf, "DESKTOP_KEY_PATH",
|
824
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_PATH));
|
825
|
+
rb_define_const(kf, "DESKTOP_KEY_TERMINAL",
|
826
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_TERMINAL));
|
827
|
+
rb_define_const(kf, "DESKTOP_KEY_MIME_TYPE",
|
828
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_MIME_TYPE));
|
829
|
+
rb_define_const(kf, "DESKTOP_KEY_CATEGORIES",
|
830
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_CATEGORIES));
|
831
|
+
rb_define_const(kf, "DESKTOP_KEY_STARTUP_NOTIFY",
|
832
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY));
|
833
|
+
rb_define_const(kf, "DESKTOP_KEY_STARTUP_WM_CLASS",
|
834
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS));
|
835
|
+
rb_define_const(kf, "DESKTOP_KEY_URL",
|
836
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_KEY_URL));
|
837
|
+
|
838
|
+
rb_define_const(kf, "DESKTOP_TYPE_APPLICATION",
|
839
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_TYPE_APPLICATION));
|
840
|
+
rb_define_const(kf, "DESKTOP_TYPE_LINK",
|
841
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_TYPE_LINK));
|
842
|
+
rb_define_const(kf, "DESKTOP_TYPE_DIRECTORY",
|
843
|
+
CSTR2RVAL(G_KEY_FILE_DESKTOP_TYPE_DIRECTORY));
|
844
|
+
#endif
|
845
|
+
#endif
|
846
|
+
}
|