Please enter the commit message for your changes. Lines starting
with '' will be ignored, and an empty message aborts the commit. On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) new file: lib/ruby-gtk2-2.0.2/AUTHORS new file: lib/ruby-gtk2-2.0.2/COPYING.LIB new file: lib/ruby-gtk2-2.0.2/NEWS new file: lib/ruby-gtk2-2.0.2/README new file: lib/ruby-gtk2-2.0.2/Rakefile new file: lib/ruby-gtk2-2.0.2/atk/COPYING.LIB new file: lib/ruby-gtk2-2.0.2/atk/README new file: lib/ruby-gtk2-2.0.2/atk/Rakefile new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/atk.def new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/depend new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/extconf.rb new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatk.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatk.h new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkaction.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkcomponent.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkconversions.h new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkdocument.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkeditabletext.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkgobjectaccessible.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkhyperlink.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkhypertext.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkimage.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkimplementor.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatknoopobject.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatknoopobjectfactory.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkobject.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkobjectfactory.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkobjectrole.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkprivate.h new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkregistry.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkrelation.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkrelationset.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkrelationtype.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkselection.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkstate.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkstateset.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkstreamablecontent.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatktable.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatktext.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatktextattribute.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatktextrange.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatktextrectangle.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkutil.c new file: lib/ruby-gtk2-2.0.2/atk/ext/atk/rbatkvalue.c new file: lib/ruby-gtk2-2.0.2/atk/extconf.rb new file: lib/ruby-gtk2-2.0.2/atk/lib/atk.rb new file: lib/ruby-gtk2-2.0.2/atk/test/atk-test-utils.rb new file: lib/ruby-gtk2-2.0.2/atk/test/run-test.rb new file: lib/ruby-gtk2-2.0.2/atk/test/test-text-rectangle.rb new file: lib/ruby-gtk2-2.0.2/exec_make.rb new file: lib/ruby-gtk2-2.0.2/extconf.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/COPYING.LIB new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/README new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/Rakefile new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/depend new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/extconf.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/gdk_pixbuf2.def new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbuf.c new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbuf.h new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/ext/gdk_pixbuf2/rbgdk-pixdata.c new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/extconf.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/lib/gdk_pixbuf2.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/anim.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/composite.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/flip.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/floppybuddy.gif new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/format.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/gnome-foot.png new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/inline.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/loader.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/pixdata.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/rotate.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/save.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/scale.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/simpleanim.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/utils.rb new file: lib/ruby-gtk2-2.0.2/gdk_pixbuf2/sample/xpm.rb new file: lib/ruby-gtk2-2.0.2/gio2/README new file: lib/ruby-gtk2-2.0.2/gio2/Rakefile new file: lib/ruby-gtk2-2.0.2/gio2/TODO new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/depend new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/extconf.rb new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/gio2.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/gio2.def new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/gio2.h new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgio.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgio2.h new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgio2conversions.h new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgio2private.h new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioappinfo.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioapplaunchcontext.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioasyncinitable.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioasyncresult.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiobufferedinputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiobufferedoutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiocancellable.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiocharsetconverter.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiocontenttype.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioconverter.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioconverterinputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioconverteroutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiodatainputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiodataoutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiodesktopappinfo.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiodrive.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioemblem.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioemblemedicon.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofile.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileattribute.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileattributeinfo.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileattributeinfolist.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileattributematcher.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofiledescriptorbased.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileenumerator.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileicon.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileinfo.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileinputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileiostream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofilemonitor.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofilenamecompleter.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofileoutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofilterinputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiofilteroutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioicon.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioinetaddress.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioinetsocketaddress.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioinitable.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioinputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioio.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioiomodule.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioiomodules.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioioscheduler.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioioschedulerjob.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioiostream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioloadableicon.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiomemoryinputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiomemoryoutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiomount.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiomountoperation.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgionetworkaddress.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgionetworkservice.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiooutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioresolver.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgioseekable.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosimpleasyncresult.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocket.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketaddress.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketaddressenumerator.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketclient.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketconnectable.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketconnection.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketconnectionfactory.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketcontrolmessage.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketlistener.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosocketservice.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiosrvtarget.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiotcpconnection.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiothemedicon.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiothreadedsocketservice.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiotlscertificate.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixconnection.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixfdlist.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixfdmessage.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixinputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixmount.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixmountmonitor.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixmountpoint.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixmountpoints.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixmounts.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixoutputstream.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiounixsocketaddress.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiovfs.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiovolume.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiovolumemonitor.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiozlibcompressor.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/rbgiozlibdecompressor.c new file: lib/ruby-gtk2-2.0.2/gio2/ext/gio2/util.c new file: lib/ruby-gtk2-2.0.2/gio2/extconf.rb new file: lib/ruby-gtk2-2.0.2/gio2/lib/gio2.rb new file: lib/ruby-gtk2-2.0.2/gio2/lib/gio2/deprecated.rb new file: lib/ruby-gtk2-2.0.2/gio2/test/load-test.rb new file: lib/ruby-gtk2-2.0.2/gio2/test/test_bufferedinputstream.rb new file: lib/ruby-gtk2-2.0.2/gio2/test/test_charsetconverter.rb new file: lib/ruby-gtk2-2.0.2/gio2/test/test_datainputstream.rb new file: lib/ruby-gtk2-2.0.2/gio2/test/test_fileenumerator.rb new file: lib/ruby-gtk2-2.0.2/gio2/test/test_filemonitor.rb new file: lib/ruby-gtk2-2.0.2/gio2/test/test_inetaddress.rb new file: lib/ruby-gtk2-2.0.2/glib2/COPYING.LIB new file: lib/ruby-gtk2-2.0.2/glib2/README new file: lib/ruby-gtk2-2.0.2/glib2/Rakefile new file: lib/ruby-gtk2-2.0.2/glib2/TODO new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/depend new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/extconf.rb new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/glib2.def new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgcompat.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib2conversions.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_bookmarkfile.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_convert.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_error.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_fileutils.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_i18n.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_int64.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_io_constants.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_iochannel.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_iochannel_win32_socket.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_iochannelerror.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_keyfile.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_maincontext.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_mainloop.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_messages.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_pollfd.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_shell.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_shellerror.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_source.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_spawn.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_spawnerror.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_threads.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_timer.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_ucs4.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_unichar.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_unicode.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_utf16.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_utf8.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_utils.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglib_win32.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglibdeprecated.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbglibdeprecated.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_boxed.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_closure.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_convert.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_enumflags.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_enums.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_flags.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_object.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_param.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_paramspecs.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_signal.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_strv.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_type.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_typeinstance.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_typeinterface.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_typemodule.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_typeplugin.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_value.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_valuearray.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobj_valuetypes.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobject.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgobject.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgprivate.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgutil.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgutil.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgutil_callback.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgutil_list.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgutil_list.h new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgutildeprecated.c new file: lib/ruby-gtk2-2.0.2/glib2/ext/glib2/rbgutildeprecated.h new file: lib/ruby-gtk2-2.0.2/glib2/extconf.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/glib-mkenums.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/glib2.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/glib2/deprecatable.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2-raketask.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2/rake/external-package.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2/rake/native-binary-build-task.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2/rake/package-task.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2/rake/package.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2/rake/source-download-task.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2/rake/win32-binary-build-task.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/gnome2/rake/win32-binary-download-task.rb new file: lib/ruby-gtk2-2.0.2/glib2/lib/mkmf-gnome2.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/bookmarkfile.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/idle.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/iochannel.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/keyfile.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/shell.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/spawn.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/timeout.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/timeout2.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/timer.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/type-register.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/type-register2.rb new file: lib/ruby-gtk2-2.0.2/glib2/sample/utils.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/glib-test-init.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/glib-test-utils.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/run-test.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_enum.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_file_utils.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_flags.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_glib2.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_iochannel.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_key_file.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_mkenums.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_poll_fd.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_signal.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_source.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_spawn.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_timeout.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_unicode.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_utils.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_value.rb new file: lib/ruby-gtk2-2.0.2/glib2/test/test_win32.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/COPYING.LIB new file: lib/ruby-gtk2-2.0.2/gobject-introspection/README.md new file: lib/ruby-gtk2-2.0.2/gobject-introspection/Rakefile new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/depend new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/extconf.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/gobject_introspection.def new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-arg-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-argument.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-base-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-boxed-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-callable-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-callback-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-constant-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-constructor-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-conversions.h new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-enum-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-field-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-flags-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-function-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-interface-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-loader.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-method-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-object-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-private.h new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-property-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-registered-type-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-repository.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-signal-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-struct-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-type-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-type-tag.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-types.h new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-union-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-unresolved-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-value-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gi-vfunc-info.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gobject-introspection.c new file: lib/ruby-gtk2-2.0.2/gobject-introspection/ext/gobject-introspection/rb-gobject-introspection.h new file: lib/ruby-gtk2-2.0.2/gobject-introspection/extconf.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/boxed-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/callable-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/collection-reader.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/interface-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/loader.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/object-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/repository.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/struct-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/lib/gobject-introspection/union-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/patches/0001-Support-external-g-ir-scanner.patch new file: lib/ruby-gtk2-2.0.2/gobject-introspection/patches/cross-g-ir-scanner.diff new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/gobject-introspection-test-utils.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/run-test.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-arg-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-base-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-boxed-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-callable-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-callback-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-constant-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-enum-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-field-type.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-flags-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-function-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-interface-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-loader.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-object-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-property-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-registered-type-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-repository.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-signal-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-struct-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-type-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-type-tag.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-union-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-value-info.rb new file: lib/ruby-gtk2-2.0.2/gobject-introspection/test/test-vfunc-info.rb new file: lib/ruby-gtk2-2.0.2/gtk2/COPYING.LIB new file: lib/ruby-gtk2-2.0.2/gtk2/README new file: lib/ruby-gtk2-2.0.2/gtk2/Rakefile new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/depend new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/extconf.rb new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/global.h new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/gtk2.def new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/init.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdk.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdk.h new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkatom.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkcairo.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkcolor.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkcolormap.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkconst.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkconversions.h new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkcursor.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkdevice.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkdisplay.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkdisplaymanager.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkdragcontext.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkdraw.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkevent.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkgc.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkgeometry.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkimage.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkinput.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkkeymap.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkkeyval.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkpango.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkpangorenderer.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkpixbuf.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkpixmap.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkproperty.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkrectangle.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkregion.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkrgb.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkscreen.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkselection.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkthreads.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdktimecoord.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkvisual.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkwindow.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkwindowattr.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgdkx11.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtk.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtk.h new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaboutdialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaccelerator.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaccelgroup.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaccelgroupentry.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaccelkey.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaccellabel.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaccelmap.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaccessible.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaction.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkactiongroup.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkadjustment.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkalignment.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkallocation.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkarrow.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkaspectframe.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkassistant.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkbbox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkbin.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkbindingset.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkborder.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkbox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkbuildable.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkbuilder.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcalendar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcelleditable.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcelllayout.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrenderer.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrendereraccel.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrenderercombo.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrendererpixbuf.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrendererprogress.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrendererspin.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrendererspinner.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrenderertext.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellrenderertoggle.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcellview.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcheckbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcheckmenuitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkclipboard.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcolorbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcolorsel.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcolorselectiondialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcombo.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcombobox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcomboboxentry.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkconst.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcontainer.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkconversions.h new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkcurve.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkdialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkdrag.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkdrawingarea.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkeditable.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkentry.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkentrycompletion.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkeventbox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkexpander.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfilechooser.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfilechooserbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfilechooserdialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfilechooserwidget.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfilefilter.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfilesel.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfilesystemerror.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfixed.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfontbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfontselection.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkfontselectiondialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkframe.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkgamma.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhandlebox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhbbox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhbox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhpaned.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhruler.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhscale.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhscrollbar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkhseparator.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkiconfactory.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkiconinfo.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkiconset.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkiconsize.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkiconsource.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkicontheme.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkiconview.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkimage.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkimagemenuitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkimcontext.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkimcontextsimple.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkimmulticontext.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkinfobar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkinputdialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkinvisible.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkitemfactory.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtklabel.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtklayout.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtklinkbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkliststore.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmacros.h new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmenu.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmenubar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmenuitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmenushell.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmenutoolbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmessagedialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkmisc.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtknotebook.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkobject.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkoptionmenu.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkpagesetup.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkpagesetupunixdialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkpaned.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkpapersize.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkplug.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprintcontext.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprinter.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprintjob.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprintoperation.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprintoperationpreview.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprintsettings.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprintunixdialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprogress.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkprogressbar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkradioaction.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkradiobutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkradiomenuitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkradiotoolbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrange.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrc.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrcstyle.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentaction.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentchooser.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentchooserdialog.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentchoosermenu.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentchooserwidget.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentdata.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentfilter.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentfilterinfo.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentinfo.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkrecentmanager.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkruler.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkscale.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkscalebutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkscrollbar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkscrolledwindow.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkselection.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkselectiondata.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkseparator.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkseparatormenuitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkseparatortoolitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtksettings.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtksizegroup.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtksocket.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkspinbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkspinner.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkstatusbar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkstatusicon.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkstock.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkstyle.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktable.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktargetlist.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktearoffmenuitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktextappearance.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktextattributes.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktextbuffer.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktextchild.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktextiter.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktextmark.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktexttag.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktexttagtable.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktextview.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktoggleaction.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktogglebutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktoggletoolbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktoolbar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktoolbutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktoolitem.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktooltip.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktooltips.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreedragdest.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreedragsource.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreeiter.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreemodel.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreemodelfilter.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreemodelsort.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreepath.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreerowreference.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreeselection.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreesortable.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreestore.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreeview.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtktreeviewcolumn.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkuimanager.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvbbox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvbox.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkviewport.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvolumebutton.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvpaned.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvruler.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvscale.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvscrollbar.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkvseparator.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkwidget.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkwindow.c new file: lib/ruby-gtk2-2.0.2/gtk2/ext/gtk2/rbgtkwindowgroup.c new file: lib/ruby-gtk2-2.0.2/gtk2/extconf.rb new file: lib/ruby-gtk2-2.0.2/gtk2/lib/gtk2.rb new file: lib/ruby-gtk2-2.0.2/gtk2/lib/gtk2/base.rb new file: lib/ruby-gtk2-2.0.2/gtk2/patches/gtk+-2.24.14-add-missing-exeext.diff new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/README new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/alphatest.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/apple-red.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/appwindow.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/background.jpg new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/builder.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/button_box.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-arc-negative.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-arc.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-clip-image.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-clip-rectangle.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-clip.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-curve-rectangle.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-curve-to.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-dash.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-fill-and-stroke.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-fill-and-stroke2.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-gradient.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-image-pattern.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-image.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-line-cap.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-line-join.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-long-lines.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-operator.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-path.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-pattern-fill.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-self-intersect.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-text-align-center.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-text-extents.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/cairo-text.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/changedisplay.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/clipboard.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/colorsel.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/common.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/demo.ui new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/dialog.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/drawingarea.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/editable_cells.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/entry_completion.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/expander.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/floppybuddy.gif new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-applets.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-calendar.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-foot.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-fs-directory.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-fs-regular.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-gimp.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-gmush.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnome-gsame.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gnu-keys.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/gtk-logo-rgb.gif new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/hypertext.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/iconview.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/images.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/item_factory.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/list_store.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/main.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/menus.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/panes.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/pixbufs.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/printing.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/rotated_text.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/ruby-gnome2-logo.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/sizegroup.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/stock_browser.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/textview.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/gtk-demo/tree_store.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/aboutdialog.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/aboutdialog2.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/alpha-demo.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/assistant.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/bindings.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/button.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/button2.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/buttonbox.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/cairo-pong.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/calendar.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/checkbutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/colorselection.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/combo_check.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/combobox.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/composited-windows.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/cursor.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/dialog.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/dialog2.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/dnd.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/dndtreeview.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/drag-move.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/drawing.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/entry.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/entrycompletion.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/expander.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/filechooser.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/fileselection.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/frame.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/gc.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/gdkscreen.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/gnome-logo-icon.png new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/helloworld.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/iconview.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/image.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/infobar.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/itemfactory.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/itemfactory2.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/keyboard_grab.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/label.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/linkbutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/listview.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/menu.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/misc_button.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/mouse-gesture.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/pangorenderer.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/pointer_grab.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/print.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/properties.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/radiobutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/recentchooserdialog.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/rgtk+cairo.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/scalebutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/settings.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/statusicon.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/stock.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/style_property.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/style_property.rc new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/t-gtkplug.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/t-gtksocket.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/test.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/textbuffer_serialize.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/threads.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/to_drawable.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/togglebutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/toolbar.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/tooltips.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/tree_combo.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/tree_progress.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/treemodelfilter.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/treeview.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/uimanager.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/uimanager2.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/uimanager2.xml new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/window.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/misc/xbm_cursor.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/3DRings.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/FilesQueue.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/Modeller.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/README new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/button.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/buttonbox.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/check-n.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/check-y.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/checkbutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/circles.xbm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/colorselect.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/dialog.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/entry.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/filesel.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/fontselection.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/gammacurve.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/labels.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/layout.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/marble.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/menu.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/notebook.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/pixmap.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/progressbar.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/radiobutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/range.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/reparent.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/rulers.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/sample.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/savedposition.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/scrolledwindow.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/shapedwindow.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/spinbutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/statusbar.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/test.xpm new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/testgtk.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/testgtkrc new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/testgtkrc2 new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/togglebutton.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/toolbar.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/tooltips.rb new file: lib/ruby-gtk2-2.0.2/gtk2/sample/testgtk/wmhints.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/gtk-test-utils.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/run-test.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gc.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_color.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_display.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_event.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_gc.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_geometry.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_keymap.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_pango.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_rectangle.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_selection_data.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_window.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gdk_window_attribute.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_about_dialog.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_accel_group_entry.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_accel_key.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_allocation.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_border.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_buildable.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_builder.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_entry.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_icon_theme.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_image.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_list_store.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_menu_item.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_rc_style.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_recent_data.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_recent_filter_info.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_tree_path.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_unix_print.rb new file: lib/ruby-gtk2-2.0.2/gtk2/test/test_gtk_widget.rb new file: lib/ruby-gtk2-2.0.2/pango/COPYING.LIB new file: lib/ruby-gtk2-2.0.2/pango/README new file: lib/ruby-gtk2-2.0.2/pango/Rakefile new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/depend new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/extconf.rb new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/pango.def new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpango.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpango.h new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoanalysis.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoattribute.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoattriterator.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoattrlist.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangocairo.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangocairocontext.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangocolor.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangocontext.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoconversions.h new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangocoverage.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoengine.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofont.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofontdescription.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofontface.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofontfamily.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofontmap.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofontmetrics.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofontset.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangofontsetsimple.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoglyphinfo.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoglyphitem.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoglyphstring.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangogravity.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoitem.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangolanguage.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangolayout.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangolayoutiter.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangolayoutline.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangologattr.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangomatrix.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoprivate.h new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangorectangle.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangorenderer.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoscript.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangoscriptiter.c new file: lib/ruby-gtk2-2.0.2/pango/ext/pango/rbpangotabarray.c new file: lib/ruby-gtk2-2.0.2/pango/extconf.rb new file: lib/ruby-gtk2-2.0.2/pango/lib/pango.rb new file: lib/ruby-gtk2-2.0.2/pango/patches/harfbuzz-0.9.17-disable-uniscribe.diff new file: lib/ruby-gtk2-2.0.2/pango/patches/pango-1.34.0-enable-fc-font.diff new file: lib/ruby-gtk2-2.0.2/pango/sample/attribute.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/break.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/gdk_layout.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/glyphstring.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/item.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/label.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/layout.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/pango_cairo.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/parse.rb new file: lib/ruby-gtk2-2.0.2/pango/sample/sample.txt new file: lib/ruby-gtk2-2.0.2/pango/sample/script.rb new file: lib/ruby-gtk2-2.0.2/pango/test/pango-test-utils.rb new file: lib/ruby-gtk2-2.0.2/pango/test/run-test.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test-analysis.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test-attribute.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test-color.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test-language.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test-log-attr.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test-matrix.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test-rectangle.rb new file: lib/ruby-gtk2-2.0.2/pango/test/test_layout.rb new file: lib/ruby-gtk2-2.0.2/run-test.rb
This commit is contained in:
5
lib/ruby-gtk2-2.0.2/glib2/test/glib-test-init.rb
Normal file
5
lib/ruby-gtk2-2.0.2/glib2/test/glib-test-init.rb
Normal file
@ -0,0 +1,5 @@
|
||||
$VERBOSE = true
|
||||
|
||||
require "rubygems"
|
||||
gem 'test-unit'
|
||||
require 'test/unit'
|
12
lib/ruby-gtk2-2.0.2/glib2/test/glib-test-utils.rb
Normal file
12
lib/ruby-gtk2-2.0.2/glib2/test/glib-test-utils.rb
Normal file
@ -0,0 +1,12 @@
|
||||
module GLibTestUtils
|
||||
private
|
||||
def only_glib_version(major, minor, micro)
|
||||
unless GLib.check_version?(major, minor, micro)
|
||||
omit("Require GLib >= #{major}.#{minor}.#{micro}")
|
||||
end
|
||||
end
|
||||
|
||||
def only_win32
|
||||
omit("Only for Win32 platform") unless GLib.os_win32?
|
||||
end
|
||||
end
|
21
lib/ruby-gtk2-2.0.2/glib2/test/run-test.rb
Executable file
21
lib/ruby-gtk2-2.0.2/glib2/test/run-test.rb
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
base = File.expand_path(File.join(File.dirname(__FILE__)))
|
||||
top = File.expand_path(File.join(base, ".."))
|
||||
|
||||
$LOAD_PATH.unshift(top)
|
||||
require 'test/glib-test-init'
|
||||
|
||||
if system("which make > /dev/null")
|
||||
system("cd #{top.dump} && make > /dev/null") or exit(1)
|
||||
end
|
||||
|
||||
$LOAD_PATH.unshift(File.join(top, "ext", "glib2"))
|
||||
$LOAD_PATH.unshift(File.join(top, "lib"))
|
||||
|
||||
$LOAD_PATH.unshift(base)
|
||||
require 'glib-test-utils'
|
||||
|
||||
require 'glib2'
|
||||
|
||||
exit Test::Unit::AutoRunner.run(true, base)
|
99
lib/ruby-gtk2-2.0.2/glib2/test/test_enum.rb
Normal file
99
lib/ruby-gtk2-2.0.2/glib2/test/test_enum.rb
Normal file
@ -0,0 +1,99 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
require 'test/unit'
|
||||
require 'glib2'
|
||||
|
||||
class TestEnum < Test::Unit::TestCase
|
||||
def test_enum_by_symbol
|
||||
original = [0x00c1].pack("U*") # A with acute
|
||||
|
||||
assert_equal(GLib::UTF8.normalize(original, GLib::NormalizeMode::NFD),
|
||||
GLib::UTF8.normalize(original, :nfd))
|
||||
assert_equal(GLib::UTF8.normalize(original, GLib::NormalizeMode::NFD),
|
||||
GLib::UTF8.normalize(original, :NFD))
|
||||
|
||||
assert_raise(TypeError) do
|
||||
GLib::UTF8.normalize(original, :unknown)
|
||||
end
|
||||
end
|
||||
|
||||
def test_enum_by_string
|
||||
original = [0x00c1].pack("U*") # A with acute
|
||||
|
||||
assert_equal(GLib::UTF8.normalize(original, GLib::NormalizeMode::NFD),
|
||||
GLib::UTF8.normalize(original, "nfd"))
|
||||
assert_equal(GLib::UTF8.normalize(original, GLib::NormalizeMode::NFD),
|
||||
GLib::UTF8.normalize(original, "NFD"))
|
||||
|
||||
assert_raise(TypeError) do
|
||||
GLib::UTF8.normalize(original, "unknown")
|
||||
end
|
||||
end
|
||||
|
||||
def test_flags_simple
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS, :keep_comments)
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS, :KEEP_COMMENTS)
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS, "keep_comments")
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS, "KEEP_COMMENTS")
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS, "keep COMMENTS")
|
||||
|
||||
assert_raise(TypeError) do
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS, :unknown)
|
||||
end
|
||||
|
||||
assert_raise(TypeError) do
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS, "UNKNOWN")
|
||||
end
|
||||
end
|
||||
|
||||
def test_flags_by_array
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS |
|
||||
GLib::KeyFile::KEEP_TRANSLATIONS,
|
||||
[:keep_comments, :keep_translations])
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS |
|
||||
GLib::KeyFile::KEEP_TRANSLATIONS,
|
||||
[:keep_COMMENTS, "KEEP_TRANSLATIONS"])
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS |
|
||||
GLib::KeyFile::KEEP_TRANSLATIONS,
|
||||
["keep_comments", "KEEP_translations"])
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS |
|
||||
GLib::KeyFile::KEEP_TRANSLATIONS,
|
||||
[:keep_comments, GLib::KeyFile::KEEP_TRANSLATIONS])
|
||||
|
||||
assert_raise(TypeError) do
|
||||
assert_key_file_load(GLib::KeyFile::KEEP_COMMENTS |
|
||||
GLib::KeyFile::KEEP_TRANSLATIONS,
|
||||
[:keep_comments, nil, :keep_translations])
|
||||
end
|
||||
end
|
||||
|
||||
def test_flags_or
|
||||
assert_equal(GLib::KeyFile::KEEP_COMMENTS,
|
||||
GLib::KeyFile::KEEP_COMMENTS | [])
|
||||
assert_equal(GLib::KeyFile::KEEP_COMMENTS |
|
||||
GLib::KeyFile::KEEP_TRANSLATIONS ,
|
||||
GLib::KeyFile::KEEP_COMMENTS | [:keep_translations])
|
||||
end
|
||||
|
||||
private
|
||||
def assert_key_file_load(flags, convenience_flags)
|
||||
data = <<-EOD
|
||||
[SECTION]
|
||||
KEY=VALUE
|
||||
# comment
|
||||
|
||||
KEY[ja]=値
|
||||
EOD
|
||||
|
||||
expected_key_file = GLib::KeyFile.new
|
||||
expected_key_file.load_from_data(data, flags)
|
||||
|
||||
actual_key_file = GLib::KeyFile.new
|
||||
actual_key_file.load_from_data(data, convenience_flags)
|
||||
|
||||
assert_equal(expected_key_file.get_value("SECTION", "KEY"),
|
||||
actual_key_file.get_value("SECTION", "KEY"))
|
||||
|
||||
assert_equal(expected_key_file.to_data,
|
||||
actual_key_file.to_data)
|
||||
end
|
||||
end
|
15
lib/ruby-gtk2-2.0.2/glib2/test/test_file_utils.rb
Normal file
15
lib/ruby-gtk2-2.0.2/glib2/test/test_file_utils.rb
Normal file
@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class TestGLibFileUtils < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_format_size_for_display
|
||||
only_glib_version(2, 16, 0)
|
||||
|
||||
assert_equal("1.0 KB", GLib.format_size_for_display(1024))
|
||||
assert_equal("10.0 KB", GLib.format_size_for_display(1024 * 10))
|
||||
assert_equal("1.0 MB", GLib.format_size_for_display(1024 * 1024))
|
||||
assert_equal("1.5 MB", GLib.format_size_for_display(1024 * 1024 * 1.5))
|
||||
assert_equal("1.0 GB", GLib.format_size_for_display(1024 * 1024 * 1024))
|
||||
end
|
||||
end
|
129
lib/ruby-gtk2-2.0.2/glib2/test/test_flags.rb
Normal file
129
lib/ruby-gtk2-2.0.2/glib2/test/test_flags.rb
Normal file
@ -0,0 +1,129 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
require 'test/unit'
|
||||
require 'glib2'
|
||||
|
||||
class TestFlags < Test::Unit::TestCase
|
||||
{
|
||||
'<=>' => [
|
||||
[0b0000, 0.0, nil],
|
||||
[0b0000, 0b0000, 0],
|
||||
[0b0000, 0b0110, -1],
|
||||
[0b0000, 0b1111, -1],
|
||||
[0b0110, 0b0000, 1],
|
||||
[0b0110, 0b0011, nil],
|
||||
[0b0110, 0b0110, 0],
|
||||
[0b0110, 0b0111, -1],
|
||||
[0b0110, 0b1001, nil],
|
||||
[0b0110, 0b1100, nil],
|
||||
[0b0110, 0b1110, -1],
|
||||
[0b0110, 0b1111, -1],
|
||||
[0b1111, 0b0000, 1],
|
||||
[0b1111, 0b0110, 1],
|
||||
[0b1111, 0b1111, 0],
|
||||
],
|
||||
'==' => [
|
||||
[0b0000, 0.0, nil],
|
||||
[0b0000, 0b0000, true],
|
||||
[0b0000, 0b0110, false],
|
||||
[0b0000, 0b1111, false],
|
||||
[0b0110, 0b0000, false],
|
||||
[0b0110, 0b0011, false],
|
||||
[0b0110, 0b0110, true],
|
||||
[0b0110, 0b0111, false],
|
||||
[0b0110, 0b1001, false],
|
||||
[0b0110, 0b1100, false],
|
||||
[0b0110, 0b1110, false],
|
||||
[0b0110, 0b1111, false],
|
||||
[0b1111, 0b0000, false],
|
||||
[0b1111, 0b0110, false],
|
||||
[0b1111, 0b1111, true],
|
||||
],
|
||||
'>=' => [
|
||||
[0b0000, 0.0, nil],
|
||||
[0b0000, 0b0000, true],
|
||||
[0b0000, 0b0110, false],
|
||||
[0b0000, 0b1111, false],
|
||||
[0b0110, 0b0000, true],
|
||||
[0b0110, 0b0011, false],
|
||||
[0b0110, 0b0110, true],
|
||||
[0b0110, 0b0111, false],
|
||||
[0b0110, 0b1001, false],
|
||||
[0b0110, 0b1100, false],
|
||||
[0b0110, 0b1110, false],
|
||||
[0b0110, 0b1111, false],
|
||||
[0b1111, 0b0000, true],
|
||||
[0b1111, 0b0110, true],
|
||||
[0b1111, 0b1111, true],
|
||||
],
|
||||
'<=' => [
|
||||
[0b0000, 0.0, nil],
|
||||
[0b0000, 0b0000, true],
|
||||
[0b0000, 0b0110, true],
|
||||
[0b0000, 0b1111, true],
|
||||
[0b0110, 0b0000, false],
|
||||
[0b0110, 0b0011, false],
|
||||
[0b0110, 0b0110, true],
|
||||
[0b0110, 0b0111, true],
|
||||
[0b0110, 0b1001, false],
|
||||
[0b0110, 0b1100, false],
|
||||
[0b0110, 0b1110, true],
|
||||
[0b0110, 0b1111, true],
|
||||
[0b1111, 0b0000, false],
|
||||
[0b1111, 0b0110, false],
|
||||
[0b1111, 0b1111, true],
|
||||
],
|
||||
'>' => [
|
||||
[0b0000, 0.0, nil],
|
||||
[0b0000, 0b0000, false],
|
||||
[0b0000, 0b0110, false],
|
||||
[0b0000, 0b1111, false],
|
||||
[0b0110, 0b0000, true],
|
||||
[0b0110, 0b0011, false],
|
||||
[0b0110, 0b0110, false],
|
||||
[0b0110, 0b0111, false],
|
||||
[0b0110, 0b1001, false],
|
||||
[0b0110, 0b1100, false],
|
||||
[0b0110, 0b1110, false],
|
||||
[0b0110, 0b1111, false],
|
||||
[0b1111, 0b0000, true],
|
||||
[0b1111, 0b0110, true],
|
||||
[0b1111, 0b1111, false],
|
||||
],
|
||||
'<' => [
|
||||
[0b0000, 0.0, nil],
|
||||
[0b0000, 0b0000, false],
|
||||
[0b0000, 0b0110, true],
|
||||
[0b0000, 0b1111, true],
|
||||
[0b0110, 0b0000, false],
|
||||
[0b0110, 0b0011, false],
|
||||
[0b0110, 0b0110, false],
|
||||
[0b0110, 0b0111, true],
|
||||
[0b0110, 0b1001, false],
|
||||
[0b0110, 0b1100, false],
|
||||
[0b0110, 0b1110, true],
|
||||
[0b0110, 0b1111, true],
|
||||
[0b1111, 0b0000, false],
|
||||
[0b1111, 0b0110, false],
|
||||
[0b1111, 0b1111, false],
|
||||
],
|
||||
}.each do |operator, values|
|
||||
values.each do |a, b, expected|
|
||||
a_format = a.is_a?(Float) ? "%f" : "0b%04b"
|
||||
b_format = b.is_a?(Float) ? "%f" : "0b%04b"
|
||||
label_format = "#{a_format} %s #{b_format} == %s"
|
||||
data((label_format % [a, operator, b, expected.inspect]),
|
||||
{
|
||||
:a => a,
|
||||
:operator => operator,
|
||||
:b => b,
|
||||
:expected => expected,
|
||||
})
|
||||
end
|
||||
end
|
||||
def test_flags_compare(data)
|
||||
flags = GLib::KeyFile::Flags.new(data[:a])
|
||||
assert_equal(data[:expected],
|
||||
flags.send(data[:operator], data[:b]))
|
||||
end
|
||||
end
|
122
lib/ruby-gtk2-2.0.2/glib2/test/test_glib2.rb
Executable file
122
lib/ruby-gtk2-2.0.2/glib2/test/test_glib2.rb
Executable file
@ -0,0 +1,122 @@
|
||||
# coding: binary
|
||||
|
||||
require 'test/unit'
|
||||
require 'glib2'
|
||||
|
||||
class TestGLib < Test::Unit::TestCase
|
||||
|
||||
def test_version
|
||||
assert_kind_of(Array, GLib::VERSION)
|
||||
assert_equal(GLib::VERSION.length, 3)
|
||||
assert(GLib::VERSION.all?{|i| i.is_a? Integer })
|
||||
|
||||
assert_kind_of(Integer, GLib::MAJOR_VERSION)
|
||||
assert_kind_of(Integer, GLib::MINOR_VERSION)
|
||||
assert_kind_of(Integer, GLib::MICRO_VERSION)
|
||||
|
||||
assert_kind_of(Array, GLib::BINDING_VERSION)
|
||||
assert_equal(GLib::BINDING_VERSION.length, 3)
|
||||
assert(GLib::BINDING_VERSION.all?{|i| i.is_a? Integer })
|
||||
end
|
||||
|
||||
def test_priority
|
||||
assert_kind_of(Integer, GLib::PRIORITY_HIGH)
|
||||
assert_kind_of(Integer, GLib::PRIORITY_DEFAULT)
|
||||
assert_kind_of(Integer, GLib::PRIORITY_HIGH_IDLE)
|
||||
assert_kind_of(Integer, GLib::PRIORITY_DEFAULT_IDLE)
|
||||
assert_kind_of(Integer, GLib::PRIORITY_LOW)
|
||||
end
|
||||
|
||||
def test_int64
|
||||
end
|
||||
|
||||
def test_convert
|
||||
assert_kind_of(String, GLib.charset)
|
||||
|
||||
sjis = "\202\261\202\361\202\311\202\277\202\315\220\242\212E"
|
||||
euc = "\244\263\244\363\244\313\244\301\244\317\300\244\263\246"
|
||||
utf8 = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257\344\270\226\347\225\214"
|
||||
assert_equal(GLib.convert(sjis, "UTF-8", "SHIFT_JIS"), utf8)
|
||||
assert_equal(GLib.convert(sjis, "EUC-JP", "SHIFT_JIS"), euc)
|
||||
assert_equal(GLib.convert(sjis, "SHIFT_JIS", "SHIFT_JIS"), sjis)
|
||||
assert_equal(GLib.convert(euc, "UTF-8", "EUC-JP"), utf8)
|
||||
assert_equal(GLib.convert(euc, "EUC-JP", "EUC-JP"), euc)
|
||||
assert_equal(GLib.convert(euc, "SHIFT_JIS", "EUC-JP"), sjis)
|
||||
assert_equal(GLib.convert(utf8, "UTF-8", "UTF-8"), utf8)
|
||||
assert_equal(GLib.convert(utf8, "EUC-JP", "UTF-8"), euc)
|
||||
assert_equal(GLib.convert(utf8, "SHIFT_JIS", "UTF-8"), sjis)
|
||||
|
||||
# rb_define_module_function(mGLib, "locale_to_utf8", rbglib_m_locale_to_utf8, 1);
|
||||
# rb_define_module_function(mGLib, "locale_from_utf8", rbglib_m_locale_from_utf8, 1);
|
||||
# rb_define_module_function(mGLib, "filename_to_utf8", rbglib_m_filename_to_utf8, 1);
|
||||
# rb_define_module_function(mGLib, "filename_from_utf8", rbglib_m_filename_from_utf8, 1);
|
||||
#
|
||||
# rb_define_module_function(mGLib, "filename_to_uri", rbglib_m_filename_to_uri, -1);
|
||||
# rb_define_module_function(mGLib, "filename_from_uri", rbglib_m_filename_from_uri, 1);
|
||||
|
||||
end
|
||||
|
||||
def test_messages
|
||||
#rb_define_module_function(mGLog, "set_handler", rbglib_m_log_set_handler, 2);
|
||||
#rb_define_module_function(mGLog, "remove_handler", rbglib_m_log_remove_handler, 2);
|
||||
end
|
||||
|
||||
def test_object
|
||||
assert_raises(GLib::NoPropertyError) {
|
||||
GLib::Object.property("foo")
|
||||
}
|
||||
|
||||
assert_raises(GLib::NoSignalError) {
|
||||
GLib::Object.signal("foo")
|
||||
}
|
||||
end
|
||||
|
||||
def test_interface_extend
|
||||
assert_raises(TypeError){
|
||||
Object.__send__(:include, GLib::TypePlugin)
|
||||
}
|
||||
end
|
||||
|
||||
def test_signal_has_handler_pending
|
||||
obj = GLib::Object.new
|
||||
signal_name = "notify"
|
||||
|
||||
assert(!obj.signal_has_handler_pending?(signal_name))
|
||||
|
||||
h = obj.signal_connect(signal_name){}
|
||||
assert(obj.signal_has_handler_pending?(signal_name))
|
||||
|
||||
obj.signal_handler_block(h) {
|
||||
assert(obj.signal_has_handler_pending?(signal_name, true))
|
||||
assert(!obj.signal_has_handler_pending?(signal_name, false))
|
||||
}
|
||||
assert(obj.signal_has_handler_pending?(signal_name, false))
|
||||
|
||||
obj.signal_handler_disconnect(h)
|
||||
assert(!obj.signal_has_handler_pending?(signal_name))
|
||||
|
||||
obj = nil
|
||||
end
|
||||
|
||||
def test_signal_handler_disconnect_and_gc
|
||||
obj = GLib::Object.new
|
||||
klass = Class.new
|
||||
1000.times {
|
||||
a = klass.new
|
||||
id = obj.signal_connect("notify") { p a }
|
||||
obj.signal_handler_disconnect(id)
|
||||
}
|
||||
GC.start
|
||||
ary = []
|
||||
ObjectSpace.each_object(klass) { |a| ary.push(a) }
|
||||
assert_operator(ary.size, :<, 1000)
|
||||
end
|
||||
|
||||
def test_gtype
|
||||
assert_equal(GLib::Object.gtype, GLib::Type["GObject"])
|
||||
assert_equal(GLib::Interface.gtype, GLib::Type["GInterface"])
|
||||
|
||||
obj = GLib::Object.new
|
||||
assert_equal(obj.gtype, GLib::Object.gtype)
|
||||
end
|
||||
end
|
275
lib/ruby-gtk2-2.0.2/glib2/test/test_iochannel.rb
Executable file
275
lib/ruby-gtk2-2.0.2/glib2/test/test_iochannel.rb
Executable file
@ -0,0 +1,275 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
require 'test/unit'
|
||||
require 'glib2'
|
||||
|
||||
require 'tempfile'
|
||||
require 'nkf'
|
||||
|
||||
$KCODE = "U" unless defined?(:Encoding)
|
||||
|
||||
class TestGIOChannel < Test::Unit::TestCase
|
||||
def setup
|
||||
@content = "aaa\nbbb\nccc\nあああ\n"
|
||||
@sjis_content = NKF.nkf("-sW", @content)
|
||||
|
||||
@file = Tempfile.new("glib2-content")
|
||||
@file.open
|
||||
@file.print(@content)
|
||||
@file.close
|
||||
|
||||
@sjis_file = Tempfile.new("glib2-sjis-content")
|
||||
@sjis_file.open
|
||||
@sjis_file.print(@sjis_content)
|
||||
@sjis_file.close
|
||||
end
|
||||
|
||||
def test_open
|
||||
write_test_file = Tempfile.new("glib2-write-test")
|
||||
|
||||
io = GLib::IOChannel.open(@file.path)
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.open(@file.path, "r")
|
||||
assert_equal(@content, io.read)
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.open(write_test_file.path, "w")
|
||||
assert_raises(RuntimeError){
|
||||
assert_equal(@content, io.read)
|
||||
}
|
||||
io.close
|
||||
|
||||
GLib::IOChannel.open(@file.path) do |_io|
|
||||
assert_equal(@content, _io.read)
|
||||
end
|
||||
|
||||
GLib::IOChannel.open(@file.path, "r") do |_io|
|
||||
assert_equal(@content, _io.read)
|
||||
end
|
||||
|
||||
GLib::IOChannel.open(write_test_file.path, "w") do |_io|
|
||||
io = _io
|
||||
assert_raises(RuntimeError) do
|
||||
assert_equal(@content, io.read)
|
||||
end
|
||||
end
|
||||
|
||||
assert_raises(GLib::IOChannelError) do
|
||||
io.close
|
||||
end
|
||||
|
||||
assert_raises(GLib::FileError) do
|
||||
GLib::IOChannel.new("foo")
|
||||
end
|
||||
end
|
||||
|
||||
def test_getc
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
["a", "b", "c", "あ"].each do |v|
|
||||
3.times do
|
||||
assert_equal(v.unpack("U")[0], io.getc)
|
||||
end
|
||||
assert_equal("\n".unpack("U")[0], io.getc)
|
||||
end
|
||||
assert_equal(nil, io.getc)
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_each_char
|
||||
text = @content.split(//u)
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
i = 0
|
||||
io.each_char {|ch|
|
||||
assert_equal(text[i].unpack("U")[0], ch)
|
||||
i += 1
|
||||
}
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_readchar
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
text = @content.split(//u)
|
||||
text.each do |v|
|
||||
assert_equal(v.unpack("U")[0], io.readchar)
|
||||
end
|
||||
assert_raises(EOFError) {
|
||||
io.readchar
|
||||
}
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_gets
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal("aaa\n", io.gets)
|
||||
assert_equal("bbb\n", io.gets)
|
||||
assert_equal("ccc\n", io.gets)
|
||||
assert_equal("あああ\n", io.gets)
|
||||
assert_equal(nil, io.gets)
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal("aaa\nbbb\n", io.gets("bbb\n"))
|
||||
assert_equal("ccc\nあああ\n", io.gets("bbb\n"))
|
||||
assert_equal(nil, io.gets("bbb\n"))
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_readline
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal("aaa\n", io.readline)
|
||||
assert_equal("bbb\n", io.readline)
|
||||
assert_equal("ccc\n", io.readline)
|
||||
assert_equal("あああ\n", io.readline)
|
||||
assert_raises(EOFError) {
|
||||
io.readline
|
||||
}
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal("aaa\nbbb\n", io.readline("bbb\n"))
|
||||
assert_equal("ccc\nあああ\n", io.readline("bbb\n"))
|
||||
assert_raises(EOFError) {
|
||||
io.readline("bbb\n")
|
||||
}
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_each_line
|
||||
lines = ["aaa\n", "bbb\n", "ccc\n", "あああ\n"]
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
i = 0
|
||||
io.each {|line|
|
||||
assert_equal(lines[i], line)
|
||||
i += 1
|
||||
}
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_raises(RuntimeError) {
|
||||
io.each {|line|
|
||||
raise "test"
|
||||
}
|
||||
}
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
i = 0
|
||||
io.each_line {|line|
|
||||
assert_equal(lines[i], line)
|
||||
i += 1
|
||||
}
|
||||
io.close
|
||||
|
||||
#Test for Enumerable
|
||||
GLib::IOChannel.open(@file.path) do |_io|
|
||||
io = _io
|
||||
io.each_with_index do |line, _i|
|
||||
assert_equal(lines[_i], line)
|
||||
end
|
||||
end
|
||||
|
||||
assert_raises(ArgumentError) do
|
||||
io.each
|
||||
end
|
||||
end
|
||||
|
||||
def test_read
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal(@content, io.read)
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal(@content, io.read(100))
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal("aaa\nbbb\n", io.read(8))
|
||||
assert_equal("ccc\n", io.read(4))
|
||||
assert_equal("あああ\n", io.read(10))
|
||||
assert_equal("", io.read(10))
|
||||
assert_equal("", io.read(10))
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_seek
|
||||
text = @content
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
io.seek(5)
|
||||
assert_equal(text.unpack("U*")[5], io.getc)
|
||||
io.seek(6, GLib::IOChannel::SEEK_SET)
|
||||
assert_equal(text.unpack("U*")[6], io.getc)
|
||||
|
||||
io.seek(1, GLib::IOChannel::SEEK_CUR)
|
||||
assert_equal(text.unpack("U*")[8], io.getc)
|
||||
|
||||
io.pos = 0
|
||||
assert_equal(text.unpack("U*")[0], io.getc)
|
||||
|
||||
io.set_pos(2)
|
||||
assert_equal(text.unpack("U*")[2], io.getc)
|
||||
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_write
|
||||
write_test_file = Tempfile.new("glib2-write-test")
|
||||
|
||||
io = GLib::IOChannel.new(write_test_file.path, "w")
|
||||
io.write("a\n")
|
||||
io.write("あいう\n")
|
||||
io.printf("a%sa\n", "a")
|
||||
io.print("a", 100, "a\n")
|
||||
io.puts("b", 200, "b")
|
||||
io.putc("c")
|
||||
io.putc("c".unpack("U")[0])
|
||||
io.putc("cc".unpack("U")[0])
|
||||
io.putc("あ".unpack("U")[0])
|
||||
io.putc("あ")
|
||||
io.putc("あい") #Ignore 2nd char
|
||||
io.putc("aあ") #Ignore 2nd char
|
||||
io.close
|
||||
|
||||
# check them
|
||||
io = GLib::IOChannel.new(write_test_file.path, "r")
|
||||
assert_equal("a\n", io.gets)
|
||||
assert_equal("あいう\n", io.gets)
|
||||
assert_equal("aaa\n", io.gets)
|
||||
assert_equal("a100a\n", io.gets)
|
||||
assert_equal("b\n", io.gets)
|
||||
assert_equal("200\n", io.gets)
|
||||
assert_equal("b\n", io.gets)
|
||||
assert_equal("c".unpack("U")[0], io.getc)
|
||||
assert_equal("c".unpack("U")[0], io.getc)
|
||||
assert_equal("c".unpack("U")[0], io.getc)
|
||||
assert_equal("あ".unpack("U")[0], io.getc)
|
||||
assert_equal("あ".unpack("U")[0], io.getc)
|
||||
assert_equal("あ".unpack("U")[0], io.getc)
|
||||
assert_equal("a".unpack("U")[0], io.getc)
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_encoding
|
||||
io = GLib::IOChannel.new(@file.path)
|
||||
assert_equal("UTF-8", io.encoding)
|
||||
io.encoding = "Shift_JIS"
|
||||
assert_equal("Shift_JIS", io.encoding)
|
||||
assert_raises(GLib::ConvertError) {
|
||||
io.read
|
||||
}
|
||||
io.close
|
||||
|
||||
io = GLib::IOChannel.new(@sjis_file.path)
|
||||
io.encoding = "Shift_JIS"
|
||||
assert_equal("Shift_JIS", io.encoding)
|
||||
assert_equal(@content, io.read)
|
||||
io.close
|
||||
end
|
||||
|
||||
def test_error
|
||||
assert_raises(GLib::FileError) {
|
||||
# No such file or directory
|
||||
GLib::IOChannel.new("foo")
|
||||
}
|
||||
end
|
||||
end
|
42
lib/ruby-gtk2-2.0.2/glib2/test/test_key_file.rb
Normal file
42
lib/ruby-gtk2-2.0.2/glib2/test/test_key_file.rb
Normal file
@ -0,0 +1,42 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
require 'tempfile'
|
||||
|
||||
class TestGLibKeyFile < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_load_from_dirs
|
||||
only_glib_version(2, 14, 0)
|
||||
|
||||
key_file = GLib::KeyFile.new
|
||||
assert_raise(GLib::KeyFileError) do
|
||||
key_file.load_from_dirs("non-existent")
|
||||
end
|
||||
|
||||
temp = Tempfile.new("key-file")
|
||||
base_name = File.basename(temp.path)
|
||||
search_dirs = [File.dirname(temp.path)]
|
||||
assert_raise(GLib::KeyFileError) do
|
||||
key_file.load_from_dirs("non-existent", search_dirs)
|
||||
end
|
||||
if GLib.check_version?(2, 31, 2)
|
||||
assert_equal(temp.path, key_file.load_from_dirs(base_name, search_dirs))
|
||||
else
|
||||
assert_raise(GLib::KeyFileError) do
|
||||
key_file.load_from_dirs(base_name, search_dirs)
|
||||
end
|
||||
end
|
||||
temp.puts(<<-EOK)
|
||||
[General]
|
||||
key = value
|
||||
EOK
|
||||
temp.close
|
||||
assert_equal(temp.path, key_file.load_from_dirs(base_name, search_dirs))
|
||||
end
|
||||
|
||||
def test_desktop_constants
|
||||
only_glib_version(2, 14, 0)
|
||||
assert_equal("Desktop Entry", GLib::KeyFile::DESKTOP_GROUP)
|
||||
assert_equal("URL", GLib::KeyFile::DESKTOP_KEY_URL)
|
||||
end
|
||||
end
|
25
lib/ruby-gtk2-2.0.2/glib2/test/test_mkenums.rb
Normal file
25
lib/ruby-gtk2-2.0.2/glib2/test/test_mkenums.rb
Normal file
@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
require 'glib-mkenums'
|
||||
|
||||
class TestGLibMkEnums < Test::Unit::TestCase
|
||||
def test_parse_flags
|
||||
source = <<-EOS
|
||||
G_MARKUP_COLLECT_INVALID,
|
||||
G_MARKUP_COLLECT_STRING,
|
||||
G_MARKUP_COLLECT_STRDUP,
|
||||
G_MARKUP_COLLECT_BOOLEAN,
|
||||
G_MARKUP_COLLECT_TRISTATE,
|
||||
|
||||
G_MARKUP_COLLECT_OPTIONAL = (1 << 16)
|
||||
EOS
|
||||
enum = GLib::EnumDefinition.new("GMarkupCollectType", source, 'G_TYPE_')
|
||||
assert_equal([["G_MARKUP_COLLECT_INVALID", "invalid"],
|
||||
["G_MARKUP_COLLECT_STRING", "string"],
|
||||
["G_MARKUP_COLLECT_STRDUP", "strdup"],
|
||||
["G_MARKUP_COLLECT_BOOLEAN", "boolean"],
|
||||
["G_MARKUP_COLLECT_TRISTATE", "tristate"],
|
||||
["G_MARKUP_COLLECT_OPTIONAL", "optional"]],
|
||||
enum.constants)
|
||||
end
|
||||
end
|
26
lib/ruby-gtk2-2.0.2/glib2/test/test_poll_fd.rb
Normal file
26
lib/ruby-gtk2-2.0.2/glib2/test/test_poll_fd.rb
Normal file
@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
class TestGLibPollFD < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_fd
|
||||
poll_fd = GLib::PollFD.new(0, GLib::IOChannel::IN, 0)
|
||||
assert_equal(0, poll_fd.fd)
|
||||
end
|
||||
end
|
20
lib/ruby-gtk2-2.0.2/glib2/test/test_signal.rb
Normal file
20
lib/ruby-gtk2-2.0.2/glib2/test/test_signal.rb
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class TestSignal < Test::Unit::TestCase
|
||||
def test_signal_flags
|
||||
assert_const_defined(GLib, :SignalFlags)
|
||||
assert_kind_of(GLib::SignalFlags, GLib::Signal::RUN_FIRST)
|
||||
assert_equal(GLib::SignalFlags::MASK, GLib::Signal::FLAGS_MASK)
|
||||
end
|
||||
|
||||
def test_connect_flags
|
||||
assert_const_defined(GLib, :ConnectFlags)
|
||||
assert_kind_of(GLib::ConnectFlags, GLib::Signal::CONNECT_AFTER)
|
||||
end
|
||||
|
||||
def test_signal_match_type
|
||||
assert_const_defined(GLib, :SignalMatchType)
|
||||
assert_kind_of(GLib::SignalMatchType, GLib::Signal::MATCH_ID)
|
||||
assert_equal(GLib::SignalMatchType::MASK, GLib::Signal::MATCH_MASK)
|
||||
end
|
||||
end
|
29
lib/ruby-gtk2-2.0.2/glib2/test/test_source.rb
Normal file
29
lib/ruby-gtk2-2.0.2/glib2/test/test_source.rb
Normal file
@ -0,0 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
class TestGLibSource < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_time
|
||||
context = GLib::MainContext.default
|
||||
source = GLib::Idle.source_new
|
||||
source.attach(context)
|
||||
time = source.time
|
||||
assert_operator(0, :<, time)
|
||||
end
|
||||
end
|
33
lib/ruby-gtk2-2.0.2/glib2/test/test_spawn.rb
Normal file
33
lib/ruby-gtk2-2.0.2/glib2/test/test_spawn.rb
Normal file
@ -0,0 +1,33 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
require 'rbconfig'
|
||||
|
||||
class TestGLibSpawn < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
def teardown
|
||||
end
|
||||
|
||||
def test_async_keep_environment
|
||||
if File.exist?('/bin/true')
|
||||
assert_nothing_raised do
|
||||
GLib::Spawn.async(Dir.pwd, ['/bin/true'], nil, 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_async_clear_environment
|
||||
if RbConfig.respond_to?(:ruby)
|
||||
ruby = RbConfig.ruby
|
||||
else
|
||||
ruby = File.join(RbConfig::CONFIG['bindir'],
|
||||
RbConfig::CONFIG['RUBY_INSTALL_NAME'] +
|
||||
RbConfig::CONFIG['EXEEXT'])
|
||||
end
|
||||
pid = GLib::Spawn.async(Dir.pwd, [ruby, '-e', 'exit 1 unless ENV.empty?'], [], GLib::Spawn::DO_NOT_REAP_CHILD)
|
||||
_, status = *Process.waitpid2(pid)
|
||||
assert status.success?
|
||||
end
|
||||
end
|
28
lib/ruby-gtk2-2.0.2/glib2/test/test_timeout.rb
Normal file
28
lib/ruby-gtk2-2.0.2/glib2/test/test_timeout.rb
Normal file
@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class TestGLibTimeout < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def setup
|
||||
@id = nil
|
||||
end
|
||||
|
||||
def teardown
|
||||
GLib::Source.remove(@id) if @id
|
||||
end
|
||||
|
||||
def test_timeout_add_priority
|
||||
priority = GLib::PRIORITY_HIGH
|
||||
@id = GLib::Timeout.add(10, priority)
|
||||
source = GLib::MainContext.default.find_source(@id)
|
||||
assert_equal(priority, source.priority)
|
||||
end
|
||||
|
||||
def test_timeout_add_seconds_priority
|
||||
only_glib_version(2, 14, 0)
|
||||
priority = GLib::PRIORITY_HIGH
|
||||
@id = GLib::Timeout.add_seconds(10, priority)
|
||||
source = GLib::MainContext.default.find_source(@id)
|
||||
assert_equal(priority, source.priority)
|
||||
end
|
||||
end
|
394
lib/ruby-gtk2-2.0.2/glib2/test/test_unicode.rb
Normal file
394
lib/ruby-gtk2-2.0.2/glib2/test/test_unicode.rb
Normal file
@ -0,0 +1,394 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class TestGLibUnicode < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_gunicode_type
|
||||
assert_nothing_raised do
|
||||
GLib::Unicode::CONTROL
|
||||
end
|
||||
end
|
||||
|
||||
def test_gunicode_break_type
|
||||
assert_nothing_raised do
|
||||
GLib::Unicode::BREAK_MANDATORY
|
||||
end
|
||||
end
|
||||
|
||||
def test_unichar_alnum?
|
||||
assert(GLib::UniChar.alnum?(unichar("a")))
|
||||
assert(GLib::UniChar.alnum?(unichar("1")))
|
||||
assert(!GLib::UniChar.alnum?(unichar("!")))
|
||||
end
|
||||
|
||||
def test_unichar_alpha?
|
||||
assert(GLib::UniChar.alpha?(unichar("a")))
|
||||
assert(GLib::UniChar.alpha?(unichar("A")))
|
||||
assert(!GLib::UniChar.alpha?(unichar("1")))
|
||||
end
|
||||
|
||||
def test_unichar_cntrl?
|
||||
assert(GLib::UniChar.cntrl?(unichar("\t")))
|
||||
assert(!GLib::UniChar.cntrl?(unichar("\h")))
|
||||
assert(!GLib::UniChar.cntrl?(unichar("a")))
|
||||
assert(!GLib::UniChar.cntrl?(unichar("1")))
|
||||
end
|
||||
|
||||
def test_unichar_digit?
|
||||
assert(GLib::UniChar.digit?(unichar("1")))
|
||||
assert(!GLib::UniChar.digit?(unichar("a")))
|
||||
end
|
||||
|
||||
def test_unichar_graph?
|
||||
assert(GLib::UniChar.graph?(unichar("a")))
|
||||
assert(!GLib::UniChar.graph?(unichar(" ")))
|
||||
assert(!GLib::UniChar.graph?(unichar("\t")))
|
||||
end
|
||||
|
||||
def test_unichar_lower?
|
||||
assert(GLib::UniChar.lower?(unichar("a")))
|
||||
assert(!GLib::UniChar.lower?(unichar("A")))
|
||||
assert(!GLib::UniChar.lower?(unichar("1")))
|
||||
end
|
||||
|
||||
def test_unichar_print?
|
||||
assert(GLib::UniChar.print?(unichar("a")))
|
||||
assert(GLib::UniChar.print?(unichar(" ")))
|
||||
assert(!GLib::UniChar.print?(unichar("\t")))
|
||||
end
|
||||
|
||||
def test_unichar_punct?
|
||||
assert(GLib::UniChar.punct?(unichar(",")))
|
||||
assert(GLib::UniChar.punct?(unichar(".")))
|
||||
assert(!GLib::UniChar.punct?(unichar("a")))
|
||||
assert(!GLib::UniChar.punct?(unichar("\t")))
|
||||
end
|
||||
|
||||
def test_unichar_space?
|
||||
assert(GLib::UniChar.space?(unichar(" ")))
|
||||
assert(GLib::UniChar.space?(unichar("\t")))
|
||||
assert(GLib::UniChar.space?(unichar("\r")))
|
||||
assert(GLib::UniChar.space?(unichar("\n")))
|
||||
assert(!GLib::UniChar.space?(unichar("a")))
|
||||
end
|
||||
|
||||
def test_unichar_upper?
|
||||
assert(GLib::UniChar.upper?(unichar("A")))
|
||||
assert(!GLib::UniChar.upper?(unichar("a")))
|
||||
assert(!GLib::UniChar.upper?(unichar("1")))
|
||||
end
|
||||
|
||||
def test_unichar_xdigit?
|
||||
assert(GLib::UniChar.xdigit?(unichar("1")))
|
||||
assert(GLib::UniChar.xdigit?(unichar("a")))
|
||||
assert(GLib::UniChar.xdigit?(unichar("A")))
|
||||
assert(GLib::UniChar.xdigit?(unichar("F")))
|
||||
assert(!GLib::UniChar.xdigit?(unichar("X")))
|
||||
end
|
||||
|
||||
def test_unichar_title?
|
||||
end
|
||||
|
||||
def test_unichar_defined?
|
||||
end
|
||||
|
||||
def test_unichar_wide?
|
||||
assert(GLib::UniChar.wide?(unichar("あ")))
|
||||
assert(GLib::UniChar.wide?(unichar("A")))
|
||||
assert(!GLib::UniChar.wide?(unichar("a")))
|
||||
end
|
||||
|
||||
def test_unichar_wide_cjk?
|
||||
only_glib_version(2, 12, 0)
|
||||
assert(GLib::UniChar.wide_cjk?(unichar("あ")))
|
||||
assert(GLib::UniChar.wide_cjk?(0xD55C)) # HANGUL SYLLABLE HAN
|
||||
assert(!GLib::UniChar.wide_cjk?(unichar("a")))
|
||||
end
|
||||
|
||||
def test_unichar_to_upper
|
||||
assert_equal(unichar("A"), GLib::UniChar.to_upper(unichar("a")))
|
||||
assert_equal(unichar("A"), GLib::UniChar.to_upper(unichar("A")))
|
||||
assert_equal(unichar("*"), GLib::UniChar.to_title(unichar("*")))
|
||||
end
|
||||
|
||||
def test_unichar_to_lower
|
||||
assert_equal(unichar("a"), GLib::UniChar.to_lower(unichar("A")))
|
||||
assert_equal(unichar("a"), GLib::UniChar.to_lower(unichar("a")))
|
||||
assert_equal(unichar("*"), GLib::UniChar.to_title(unichar("*")))
|
||||
end
|
||||
|
||||
def test_unichar_to_title
|
||||
assert_equal(unichar("A"), GLib::UniChar.to_title(unichar("a")))
|
||||
assert_equal(unichar("A"), GLib::UniChar.to_title(unichar("A")))
|
||||
assert_equal(unichar("*"), GLib::UniChar.to_title(unichar("*")))
|
||||
end
|
||||
|
||||
def test_unichar_digit_value
|
||||
assert_equal(0, GLib::UniChar.digit_value(unichar("0")))
|
||||
assert_equal(9, GLib::UniChar.digit_value(unichar("9")))
|
||||
assert_equal(-1, GLib::UniChar.digit_value(unichar("a")))
|
||||
end
|
||||
|
||||
def test_unichar_xdigit_value
|
||||
assert_equal(0, GLib::UniChar.xdigit_value(unichar("0")))
|
||||
assert_equal(9, GLib::UniChar.xdigit_value(unichar("9")))
|
||||
assert_equal(10, GLib::UniChar.xdigit_value(unichar("a")))
|
||||
assert_equal(15, GLib::UniChar.xdigit_value(unichar("F")))
|
||||
assert_equal(-1, GLib::UniChar.xdigit_value(unichar("g")))
|
||||
end
|
||||
|
||||
def test_unichar_type
|
||||
assert_equal(GLib::Unicode::DECIMAL_NUMBER,
|
||||
GLib::UniChar.type(unichar("0")))
|
||||
assert_equal(GLib::Unicode::LOWERCASE_LETTER,
|
||||
GLib::UniChar.type(unichar("a")))
|
||||
assert_equal(GLib::Unicode::UPPERCASE_LETTER,
|
||||
GLib::UniChar.type(unichar("A")))
|
||||
end
|
||||
|
||||
def test_unichar_break_type
|
||||
assert_equal(GLib::Unicode::BREAK_HYPHEN,
|
||||
GLib::UniChar.break_type(unichar("-")))
|
||||
assert_equal(GLib::Unicode::BREAK_NUMERIC,
|
||||
GLib::UniChar.break_type(unichar("0")))
|
||||
end
|
||||
|
||||
def test_unicode_canonical_ordering
|
||||
original = [unichar("a"), 0x0308, 0x0323,
|
||||
unichar("e"), 0x0304, 0x0301, 0x0323].pack("U*")
|
||||
expected = [unichar("a"), 0x0323, 0x0308,
|
||||
unichar("e"), 0x0323, 0x0304, 0x0301].pack("U*")
|
||||
assert_equal(utf8_to_utf32(expected),
|
||||
GLib::Unicode.canonical_ordering(utf8_to_utf32(original)))
|
||||
end
|
||||
|
||||
def test_unicode_canonical_decomposition
|
||||
a_with_acute = 0x00E1
|
||||
expected = [unichar("a"), 0x0301].pack("U*")
|
||||
assert_equal(utf8_to_utf32(expected),
|
||||
GLib::Unicode.canonical_decomposition(a_with_acute))
|
||||
|
||||
hiragana_ga = 0x304C
|
||||
hiragana_ka = 0x304B
|
||||
expected = [hiragana_ka, 0x3099].pack("U*")
|
||||
assert_equal(utf8_to_utf32(expected),
|
||||
GLib::Unicode.canonical_decomposition(hiragana_ga))
|
||||
end
|
||||
|
||||
def test_unichar_get_mirror_char
|
||||
assert_equal(unichar("("), GLib::UniChar.get_mirror_char(unichar(")")))
|
||||
assert_equal(unichar(")"), GLib::UniChar.get_mirror_char(unichar("(")))
|
||||
assert_equal(unichar("x"), GLib::UniChar.get_mirror_char(unichar("x")))
|
||||
end
|
||||
|
||||
def test_unichar_get_script
|
||||
only_glib_version(2, 14, 0)
|
||||
assert_equal(GLib::Unicode::SCRIPT_HIRAGANA,
|
||||
GLib::UniChar.get_script(unichar("あ")))
|
||||
end
|
||||
|
||||
def test_utf8_get_char
|
||||
assert_equal(utf8_to_utf32("あ").unpack("L*")[0],
|
||||
GLib::UTF8.get_char("あ"))
|
||||
|
||||
assert_equal(utf8_to_utf32("あ").unpack("L*")[0],
|
||||
GLib::UTF8.get_char("あ", true))
|
||||
partial_input = "あ".unpack("c*")[0..-2].pack("c*")
|
||||
assert_equal(-2, GLib::UTF8.get_char(partial_input, true))
|
||||
invalid_input = "あ".unpack("c*")[2..-1].pack("c*")
|
||||
assert_equal(-1, GLib::UTF8.get_char(invalid_input, true))
|
||||
end
|
||||
|
||||
def test_utf8_size
|
||||
assert_equal(1, GLib::UTF8.size("あ"))
|
||||
assert_equal(2, GLib::UTF8.size("あい"))
|
||||
end
|
||||
|
||||
def test_utf8_reverse
|
||||
assert_equal("おえういあ", GLib::UTF8.reverse("あいうえお"))
|
||||
end
|
||||
|
||||
def test_utf8_validate
|
||||
assert(GLib::UTF8.validate("あ"))
|
||||
assert(!GLib::UTF8.validate(binary("あ")[1..-1]))
|
||||
end
|
||||
|
||||
def test_utf8_upcase
|
||||
assert_equal("ABCあいう", GLib::UTF8.upcase("aBcあいう"))
|
||||
end
|
||||
|
||||
def test_utf8_downcase
|
||||
assert_equal("abcあいう", GLib::UTF8.downcase("aBcあいう"))
|
||||
end
|
||||
|
||||
def test_utf8_casefold
|
||||
assert_equal(GLib::UTF8.casefold("AbCあいう"),
|
||||
GLib::UTF8.casefold("aBcあいう"))
|
||||
end
|
||||
|
||||
def test_utf8_normalize
|
||||
original = [0x00c1].pack("U*") # A with acute
|
||||
|
||||
nfd = [0x0041, 0x0301].pack("U*")
|
||||
assert_equal(nfd,
|
||||
GLib::UTF8.normalize(original, GLib::NormalizeMode::NFD))
|
||||
|
||||
nfc = [0x00c1].pack("U*")
|
||||
assert_equal(nfc,
|
||||
GLib::UTF8.normalize(original, GLib::NormalizeMode::NFC))
|
||||
|
||||
nfkd = [0x0041, 0x0301].pack("U*")
|
||||
assert_equal(nfkd,
|
||||
GLib::UTF8.normalize(original, GLib::NormalizeMode::NFKD))
|
||||
|
||||
nfkc = [0x00c1].pack("U*")
|
||||
assert_equal(nfkc,
|
||||
GLib::UTF8.normalize(original, GLib::NormalizeMode::NFKC))
|
||||
end
|
||||
|
||||
def test_utf8_collate
|
||||
only_glib_version(2, 16, 0)
|
||||
assert_operator(0, :>, GLib::UTF8.collate("あ", "い"))
|
||||
assert_operator(0, :<, GLib::UTF8.collate("い", "あ"))
|
||||
assert_equal(0, GLib::UTF8.collate("あ", "あ"))
|
||||
end
|
||||
|
||||
def test_utf8_collate_key
|
||||
only_glib_version(2, 16, 0)
|
||||
assert_operator(0, :>,
|
||||
GLib::UTF8.collate_key("あ") <=>
|
||||
GLib::UTF8.collate_key("い"))
|
||||
assert_operator(0, :<,
|
||||
GLib::UTF8.collate_key("い") <=>
|
||||
GLib::UTF8.collate_key("あ"))
|
||||
assert_equal(0,
|
||||
GLib::UTF8.collate_key("あ") <=>
|
||||
GLib::UTF8.collate_key("あ"))
|
||||
end
|
||||
|
||||
def test_utf8_collate_key_for_filename
|
||||
assert_equal(["event.c", "event.h", "eventgenerator.c"],
|
||||
["event.c", "eventgenerator.c", "event.h"].sort_by do |f|
|
||||
GLib::UTF8.collate_key(f, true)
|
||||
end)
|
||||
|
||||
assert_equal(["file1", "file5", "file10"],
|
||||
["file1", "file10", "file5"].sort_by do |f|
|
||||
GLib::UTF8.collate_key(f, true)
|
||||
end)
|
||||
end
|
||||
|
||||
def test_utf8_to_utf16
|
||||
assert_equal(utf8_to_utf16("あいうえお"),
|
||||
GLib::UTF8.to_utf16("あいうえお"))
|
||||
end
|
||||
|
||||
def test_utf8_to_ucs4
|
||||
assert_equal(utf8_to_utf32("あいうえお"),
|
||||
GLib::UTF8.to_ucs4("あいうえお"))
|
||||
|
||||
assert_raise(GLib::ConvertError) do
|
||||
GLib::UTF8.to_ucs4(binary("あいうえお")[1..-1])
|
||||
end
|
||||
assert_nothing_raised do
|
||||
GLib::UTF8.to_ucs4(binary("あいうえお")[1..-1], true)
|
||||
end
|
||||
end
|
||||
|
||||
def test_utf16_to_ucs4
|
||||
assert_equal(utf8_to_utf32("あいうえお"),
|
||||
GLib::UTF16.to_ucs4(utf8_to_utf16("あいうえお")))
|
||||
end
|
||||
|
||||
def test_utf16_to_utf8
|
||||
assert_equal("あいうえお",
|
||||
GLib::UTF16.to_utf8(utf8_to_utf16("あいうえお")))
|
||||
end
|
||||
|
||||
|
||||
def test_ucs4_to_utf16
|
||||
assert_equal(utf8_to_utf16("あいうえお"),
|
||||
GLib::UCS4.to_utf16(utf8_to_utf32("あいうえお")))
|
||||
|
||||
assert_raise(GLib::ConvertError) do
|
||||
GLib::UCS4.to_utf16(binary(utf8_to_utf32("あいうえお"))[1..-1])
|
||||
end
|
||||
end
|
||||
|
||||
def test_ucs4_to_utf8
|
||||
assert_equal("あいうえお",
|
||||
GLib::UCS4.to_utf8(utf8_to_utf32("あいうえお")))
|
||||
end
|
||||
|
||||
def test_unichar_to_utf8
|
||||
assert_equal("あ",
|
||||
GLib::UniChar.to_utf8(utf8_to_utf32("あ").unpack("L*")[0]))
|
||||
end
|
||||
|
||||
def test_unichar_combining_class
|
||||
only_glib_version(2, 14, 0)
|
||||
assert_equal(0, GLib::UniChar.combining_class(unichar("a")))
|
||||
assert_equal(230, GLib::UniChar.combining_class(unichar("́")))
|
||||
end
|
||||
|
||||
def test_unichar_mark?
|
||||
only_glib_version(2, 14, 0)
|
||||
assert(!GLib::UniChar.mark?(unichar("a")))
|
||||
assert(!GLib::UniChar.mark?(0x200E)) # LEFT-TO-RIGHT MARK
|
||||
assert(GLib::UniChar.mark?(0x1DC3)) # COMBINING SUSPENSION MARK
|
||||
end
|
||||
|
||||
def test_unichar_zero_width?
|
||||
only_glib_version(2, 14, 0)
|
||||
assert(!GLib::UniChar.zero_width?(unichar("a")))
|
||||
assert(GLib::UniChar.zero_width?(0x200B)) # ZERO WIDTH SPACE
|
||||
end
|
||||
|
||||
private
|
||||
def unichar(char)
|
||||
GLib::UTF8.get_char(char)
|
||||
end
|
||||
|
||||
def utf8_to_utf32(string)
|
||||
if string.respond_to?(:encode)
|
||||
if little_endian?
|
||||
string.encode("UTF-32LE")
|
||||
else
|
||||
string.encode("UTF-32BE")
|
||||
end
|
||||
else
|
||||
require_uconv
|
||||
Uconv.u8tou4(string)
|
||||
end
|
||||
end
|
||||
|
||||
def utf8_to_utf16(string)
|
||||
if string.respond_to?(:encode)
|
||||
if little_endian?
|
||||
string.encode("UTF-16LE")
|
||||
else
|
||||
string.encode("UTF-16BE")
|
||||
end
|
||||
else
|
||||
require_uconv
|
||||
Uconv.u8tou16(string)
|
||||
end
|
||||
end
|
||||
|
||||
def require_uconv
|
||||
require 'uconv'
|
||||
rescue LoadError
|
||||
omit("Need uconv to run this test.")
|
||||
end
|
||||
|
||||
def binary(string)
|
||||
if string.respond_to?(:force_encoding)
|
||||
string.force_encoding("ascii-8bit")
|
||||
end
|
||||
string
|
||||
end
|
||||
|
||||
def little_endian?
|
||||
[1].pack("v") == [1].pack("S")
|
||||
end
|
||||
end
|
37
lib/ruby-gtk2-2.0.2/glib2/test/test_utils.rb
Normal file
37
lib/ruby-gtk2-2.0.2/glib2/test/test_utils.rb
Normal file
@ -0,0 +1,37 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class TestGLibUtils < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_user_cache_dir
|
||||
only_glib_version(2, 6, 0)
|
||||
assert_kind_of(String, GLib.user_cache_dir)
|
||||
end
|
||||
|
||||
def test_user_data_dir
|
||||
only_glib_version(2, 6, 0)
|
||||
assert_kind_of(String, GLib.user_data_dir)
|
||||
end
|
||||
|
||||
def test_user_config_dir
|
||||
only_glib_version(2, 6, 0)
|
||||
assert_kind_of(String, GLib.user_config_dir)
|
||||
end
|
||||
|
||||
def test_system_data_dirs
|
||||
only_glib_version(2, 6, 0)
|
||||
assert_kind_of(Array, GLib.system_data_dirs)
|
||||
end
|
||||
|
||||
def test_system_config_dirs
|
||||
only_glib_version(2, 6, 0)
|
||||
assert_kind_of(Array, GLib.system_config_dirs)
|
||||
end
|
||||
|
||||
def test_get_user_special_dir
|
||||
only_glib_version(2, 14, 0)
|
||||
assert_nothing_raised do
|
||||
GLib.get_user_special_dir(GLib::UserDirectory::DESKTOP)
|
||||
end
|
||||
end
|
||||
end
|
31
lib/ruby-gtk2-2.0.2/glib2/test/test_value.rb
Normal file
31
lib/ruby-gtk2-2.0.2/glib2/test/test_value.rb
Normal file
@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
class TestGLibValue < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_type
|
||||
value = GLib::Value.new(GLib::Type::UINT, 29)
|
||||
assert_equal(GLib::Type::UINT, value.type)
|
||||
end
|
||||
|
||||
def test_value
|
||||
value = GLib::Value.new(GLib::Type::UINT, 29)
|
||||
assert_equal(29, value.value)
|
||||
end
|
||||
end
|
13
lib/ruby-gtk2-2.0.2/glib2/test/test_win32.rb
Normal file
13
lib/ruby-gtk2-2.0.2/glib2/test/test_win32.rb
Normal file
@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
class TestGLibWin32 < Test::Unit::TestCase
|
||||
include GLibTestUtils
|
||||
|
||||
def test_get_package_install_directory_of_module
|
||||
only_win32
|
||||
only_glib_version(2, 16, 0)
|
||||
|
||||
assert_equal("FIXME",
|
||||
GLib::Win32.get_package_installation_directory_of_module)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user