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:
Quentin
2013-12-17 11:20:08 +01:00
parent 2e835fac51
commit 26e8968796
929 changed files with 121236 additions and 0 deletions

View File

@ -0,0 +1,116 @@
/* XPM */
static char * DRings_xpm[] = {
"48 48 65 1",
" c None",
". c #104010404103",
"X c #1040208130C2",
"o c #104014515144",
"O c #000010402081",
"+ c #1040104030C2",
"@ c #208120815144",
"# c #28A241035965",
"$ c #30C230C26185",
"% c #208130C24103",
"& c #104010402081",
"* c #104000002081",
"= c #000010401040",
"- c #492441036185",
"; c #596559659E79",
": c #30C220815144",
"> c #0820186128A2",
", c #000000001040",
"< c #2081104030C2",
"1 c #514459659658",
"2 c #514455556185",
"3 c #104000001040",
"4 c #000008200000",
"5 c #618569A6AEBA",
"6 c #618569A69658",
"7 c #410345148E38",
"8 c #104020814103",
"9 c #79E782079658",
"0 c #208120814103",
"q c #596571C69E79",
"w c #4103514471C6",
"e c #2081208130C2",
"r c #6185618571C6",
"t c #28A228A25965",
"y c #596561858617",
"u c #96589E79BEFB",
"i c #28A230C271C6",
"p c #38E345145144",
"a c #79E78207A699",
"s c #30C2492469A6",
"d c #410330C25965",
"f c #410351446185",
"g c #AEBAAAAAD75C",
"h c #38E338E34103",
"j c #EFBEEBADEFBE",
"k c #208130C25144",
"l c #9658A289DF7D",
"z c #208110404103",
"x c #28A228A26185",
"c c #8E388A28BEFB",
"v c #208118612081",
"b c #38E3451479E7",
"n c #4924618579E7",
"m c #86178617B6DA",
"M c #30C220814103",
"N c #104030C25144",
"B c #4103410371C6",
"V c #86178A28D75C",
"C c #DF7DDB6CE79D",
"Z c #BEFBC30BD75C",
"A c #410330C271C6",
"S c #30C228A230C2",
"D c #082008201861",
"F c #186130C238E3",
"G c #0000208130C2",
" .Xo ",
" O+O@#$% ",
" &*=+X-;: ",
" >&=,=<11#2 ",
" +O34,X567& ",
" 8X+=,90q9w. ",
" +e<>3r tyu-& ",
" Xi%.= paus+ ",
" Od-@= fga$h ",
" @y7X, Xrjak ",
" 2:eaw+ $ag;@ ",
" .X@8@k@o@X+ +pl9tO ",
" +zX@x$$isikt8o02crv ",
" 8@%ip7757ywbs$Ohn6#. ",
" &0%$p7r215ybw1pzp2-0= ",
" 8tk$#yw21665n;1+%-p$O ",
" O<e7pbryq5am9ay6XMpM>3& ",
" 9.NtpBw16amclVcm1t%kX*88 ",
" +&etd7r6y9ulgglm6>e>3s@83 ",
" +0k$y-y69cgCCCZVam%+#ik8X ",
" O&oi$d725amgCjCZu962ybtx8+p ",
" &X0x$sBym9VZCCCZca;yBbi%08& ",
" =++@sApMy5muZZgum6y2wds:>+& ",
" #tp;1;yB#i25cVucma5;w-pti@8& ",
" .#2alumnBp:@1r59y9y6ywBS$%0X+= ",
" %$wmZVu;#tX8X07r1656y2wbp$k@%@OD ",
" 0Byc9a;h%0>&D&hBrr2r1bwB-AF:0<&*= ",
" kBf;yr#@X+&<%MkhsBwBwpsB#Bktkt8+Oh ",
" xt7B-t8*,3O.X00:$i#dBd#bptFek0X.+* ",
" Xt#b#@=, =&O+X0Ft%ibsp$p$ki%l5sX&= ",
" &<kvX&4 +O*&<X0e:%$pAti%:edugn0= ",
" +X@&+, V,O&>+Xt>tktktv0%@k;Cls+ ",
" =+O*4*X:p;9cy3&&8ve0FMtt$ee0>z7cZ6k ",
" D=D4,=.k$sBs$ee=+X0Fk%-#t%0X&O0nu9bG ",
" ,,434*&ze@F<eeeeee><tdhdSMe<&&XAaawx ",
" 4,4,=+><peeeeee&=<%M%$hSF0X&O&kw5r%Z ",
" D&vSFMF<>&D =0S-2i& ",
" +>puB> >0h7s. ",
" SM5VqM &0t#$8 ",
" XpVV70 &0kMk. ",
" XdyB%z *X<%@+ ",
" &k$b0X+=8X08o ",
" &e:e+=*X.X+& ",
" +X.O+X0O.=, ",
" +>&+0>3&* ",
" &X0k+O, ",
" >v,3 ",
" "};

View File

@ -0,0 +1,98 @@
/* XPM */
static char * FilesQueue_xpm[] = {
"44 31 64 1",
" c None",
". c #E79DE38DDF7D",
"X c #CF3CC71BCF3C",
"o c #71C675D671C6",
"O c #B6DAB2CAB6DA",
"+ c #CF3CD34CCF3C",
"@ c #DF7DE38DE79D",
"# c #FFFFFBEEFFFF",
"$ c #EFBEEFBEEFBE",
"% c #DF7DDB6CDF7D",
"& c #BEFBBAEAC71B",
"* c #BEFBBAEABEFB",
"= c #BEFBC30BC71B",
"- c #71C66DB671C6",
"; c #D75CD34CD75C",
": c #9E799A699E79",
"> c #E79DE38DE79D",
", c #CF3CCB2BC71B",
"< c #B6DAB2CABEFB",
"1 c #BEFBBAEAB6DA",
"2 c #B6DAB6DAB6DA",
"3 c #618561856185",
"4 c #C71BBAEABEFB",
"5 c #AEBAAAAAAEBA",
"6 c #965892488E38",
"7 c #A699A699A699",
"8 c #38E338E338E3",
"9 c #F7DEF7DEF7DE",
"0 c #E79DEFBEEFBE",
"q c #DF7DE38DDF7D",
"w c #C71BC71BC71B",
"e c #C71BC30BBEFB",
"r c #BEFBC30BBEFB",
"t c #B6DAAAAAAEBA",
"y c #410345144103",
"u c #D75CDB6CD75C",
"i c #C71BCB2BC71B",
"p c #BEFBCB2BBEFB",
"a c #9E79A289A699",
"s c #86178E388E38",
"d c #CF3CCF3CD75C",
"f c #CF3CD75CCF3C",
"g c #C71BC30BCF3C",
"h c #28A22CB228A2",
"j c #000000000000",
"k c #D75CD34CDF7D",
"l c #10400C300820",
"z c #E79DEBADEFBE",
"x c #DF7DDB6CD75C",
"c c #514459655965",
"v c #8617861779E7",
"b c #DF7DD34CD75C",
"n c #CF3CCB2BCF3C",
"m c #618555555965",
"M c #861786178617",
"N c #30C234D330C2",
"B c #EFBEEBADE79D",
"V c #DF7DDB6CE79D",
"C c #D75CE38DD75C",
"Z c #514449245144",
"A c #186120812081",
"S c #79E77DF779E7",
"D c #6185659569A6",
"F c #9E7992489E79",
" .XoOX+ ",
" @#$%&*=-o;: ",
" @>,=O<12*&:-<3X ",
" >%&1*4*2*OO**56758790 ",
" 9qX+we=r*&e<<<251t5555yu9 ",
" $qu++;ipi=p*=p**2tOOO27a5s<- ",
" #9udfXi;,gi&**4**4r*Ot5t55tehj ",
" 0qku+u;+d,gg=*=r*&**&<255t<*yl1 ",
" $$zq@%xk%uf;,w,i=i=e**r=12tO1=8cvj ",
" $@%>.%.%%%xbkx,w+ni,wwrwe*4*1=;8mMNj ",
" zz@Bz>>>V%%%C+u;;dfnnfwggi&=&X+yZsNll ",
" af#9@B0>q>qqq>xk.;;;kfX+XnXw=g,fycMhhN5 ",
" al5#9$$>qzBV.%x%%b;x+fnf+,X,iiqym6NAo-j ",
" #roS%#$zz>>V%%xkk%f;;+df,XnwnVZD:8AS-j* ",
" D-9Oy*9$Bz>q%qx%%u;x;;dknX+d>Zm:hhSDjr ",
" a3o+>S3z#90@@z.%>qCC%uu;ff%@Zm:NhMoj= ",
" wlvvo#:3599$>B>q>%%%%+f;fk$ymaalMvjr ",
" 0.a--S49mct9$z@.qkkqC;xu%@Zm5AlvSj* ",
" ohu%3:Z:9@y609q@@>..>Cx>$Zm5NhMvjr ",
" -j797Zv5705y=#$0>>V.%>#Z378AMMj* ",
" Zj9Xo-McBXDv%90.%%#9cc78AsMj* ",
" 8hM#M-DSF96cvz0>z#c35Nhs6j1 ",
" jl9#o63vx#-D###mmt8N66j* ",
" 5jc@fZF3o%+ZFDm<8A6FjO ",
" :j50sSay<$ss2Nh:FjO ",
" 6880&SDMF.rNNFFj1 ",
" 8jr#:SFScA6ajO ",
" Alr$DSysajO ",
" >jy#51:jO ",
" %Dy*gjO ",
" alla "};

View File

@ -0,0 +1,117 @@
/* XPM */
static char * InterfaceModeller_app_2_Tile_xpm[] = {
"48 48 66 1",
" c None",
". c #86174D344103",
"X c #69A651445144",
"o c #8617410330C2",
"O c #69A6410338E3",
"+ c #30C218611861",
"@ c #AEBA6DB66185",
"# c #71C638E328A2",
"$ c #69A634D328A2",
"% c #30C228A228A2",
"& c #79E73CF330C2",
"* c #BEFB9E799E79",
"= c #8E3869A66185",
"- c #514424921861",
"; c #A699A289B6DA",
": c #A6999E79A699",
"> c #71C65D756185",
", c #9E799A69A699",
"< c #8E3882078E38",
"1 c #861779E78617",
"2 c #A6999A69AEBA",
"3 c #8E388A289658",
"4 c #71C675D679E7",
"5 c #96588A289E79",
"6 c #30C230C238E3",
"7 c #C71BC71BC71B",
"8 c #9E79A289AEBA",
"9 c #AEBAAAAABEFB",
"0 c #96589248A699",
"q c #A699AAAAB6DA",
"w c #AEBAAAAAB6DA",
"e c #D75CD34CD75C",
"r c #EFBEE79DEFBE",
"t c #BEFBB6DABEFB",
"y c #B6DABAEAC71B",
"u c #AEBAAEBAB6DA",
"i c #E79DDB6CDF7D",
"p c #96588E389658",
"a c #596559656185",
"s c #AEBA8E388E38",
"d c #CF3CCB2BCF3C",
"f c #9E799A699E79",
"g c #86177DF78E38",
"h c #69A6659571C6",
"j c #AEBAAEBABEFB",
"k c #96589E799E79",
"l c #B6DAA699A699",
"z c #E79DC71BC71B",
"x c #B6DAB6DAB6DA",
"c c #861786179658",
"v c #B6DAB2CABEFB",
"b c #BEFBAAAAAEBA",
"n c #C71BBEFBC71B",
"m c #514441034103",
"M c #41033CF34103",
"N c #492428A228A2",
"B c #AEBAA289B6DA",
"V c #618530C22081",
"C c #69A630C228A2",
"Z c #69A630C22081",
"A c #596528A22081",
"S c #492428A22081",
"D c #618528A22081",
"F c #596520811861",
"G c #69A628A22081",
"H c #FFFF14514103",
" .X ",
" .oO+ ",
" @.o#++ ",
" @.o$%+ ",
" @.&#++ ",
" @.o#++ ",
" @.o$++ ",
" @.&#++ ",
" .O#++ ",
" *=-$++ ",
" ;:>+++ ",
" ;,<1% ",
" 2,34 ",
" 2;,51 ",
" 2,,,,6 ",
" 7777 28888,6 ",
" 77777777 2829,,,06 ",
" 9qwwe7rrrrr77rr 828,9tyt,6 ",
" uuwriirrieiiieii77pa< 82,8,,,8,06 ",
" s=1ttiieeeeded77eufgh>j,8,8,k,0,6 ",
" =@lzieeeeee77eeex:fpcg4>9,,,,qjv6 ",
" =O=blt7eeee7deenw:ffp<gha:t979;06 ",
" =OO@=@zieeee7ex:::fffff0,v72444h6 ",
" =OOo&Osst7iee7wkf:f:ff;t721444ham ",
" =#&&&&OO@di7eu:ff:fferiv114444hmMX ",
" =O&&&..o.sdp33fff:errrii7cc1hhh6mmNX= ",
" =O&&&@.o.@sberrrrrriiuxuxnB;44aMmVCO#OX ",
" =O&&o@..o.zrrrie777nnxtuxx:x;n:>mV##&&O$mX ",
" =O&&o....zrrieieuxunx7txx:nnfwpMmVZ#$ZZZVVN ",
" =O&oooo.*rrde77ewxnxxtnw:f4M%M%+NA#$Z$ZZVmN> ",
" =Oo&ooo@iree7inxn7nnuuff4h%M>m%S-AZ$CCZDZmSX ",
" =O&o.o.@rrn7eulun7xxuwp4mm6ahM%--AZCCZDDDANX ",
" =Ooooo.*rixenuwwn7nxupph%M>>h6mAADVVZVVDDANX ",
" =O&o.o.zrexwwnwuxxnughX%mahhmMN-AZCCVVDDAAN> ",
" *XOoo.*iin7n777xxxtphaM+ama>MSNFVCZZVVDAAAS> ",
" 1O..izewxux7nuuux4%++%hha>%N-DDCZZVDAAAASX ",
" 1.=ituu:uButnxxuX%>hh>M%++NADZZZVDADAA--X ",
" :e7f::lnn7*ppnx6ahm6++mNN-ADCZVDDAAAA-SX ",
" 7nupp:wxxg%MMau6%++NmmmADADVVVVVDAA---NX ",
" 7uBgh1wwxg6h>m%:MmmVNAVDZVZCVZZDAAAAF-S+X ",
" nfgaM%pnwhX6%mXb6$DVVZC$C#C$ZZDVAAA---+NX ",
" 27a%MaM47:mN.OoolmODGZ####$$ZZVDDA-----SSX ",
" 2gmg<m6p7wmmOo...O$GZ####$$CZVVDAAA----++X ",
" qBcaM <gxgmXmo.@.o&$$##$$$CZZZDADA-A-++-NX ",
" M6> paMa HX.@@@oZ$###$$CZVDDAAAA---SS+X ",
" 43 p=&@@&&$##$CCCVVVAAA--+S+S+%X ",
" k =o@.##$VVmmmNNNSSSSSS%XXXX ",
" s>OSSNmN>>aaa177777 "};

View File

@ -0,0 +1,14 @@
ruby-testgtk - testgtk.c rewritten in Ruby/GTK
To run, do
ruby testgtk.rb
in this directory.
----
(Maintainer from Ruby/GTK2)
Masao Mutoh <mutoh@highway.ne.jp>
(Original Author of Ruby/GTK version)
Hiroshi Igarashi <igarashi@ueda.info.waseda.ac.jp>

View File

@ -0,0 +1,133 @@
=begin header
button.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Date: 2005/07/17 16:55:26 $
$Id: button.rb,v 1.6 2005/07/17 16:55:26 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class ButtonSample < SampleWindow
def initialize
super("buttons")
box1 = Gtk::VBox.new(false, 0)
add(box1)
table = Gtk::Table.new(3, 3, false)
table.row_spacings = 5
table.column_spacings = 5
table.border_width = 10
box1.pack_start(table, true, true, 0)
button = [
Gtk::Button.new("button1"),
Gtk::Button.new("button2"),
Gtk::Button.new("button3"),
Gtk::Button.new("button4"),
Gtk::Button.new("button5"),
Gtk::Button.new("button6"),
Gtk::Button.new("button7"),
Gtk::Button.new("button8"),
Gtk::Button.new("button9"),
]
button[0].signal_connect("clicked") do
button_window(button[1])
end
table.attach(button[0], 0, 1, 0, 1,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[1].signal_connect("clicked") do
button_window(button[2])
end
table.attach(button[1], 1, 2, 1, 2,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[2].signal_connect("clicked") do
button_window(button[3])
end
table.attach(button[2], 2, 3, 2, 3,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[3].signal_connect("clicked") do
button_window(button[4])
end
table.attach(button[3], 0, 1, 2, 3,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[4].signal_connect("clicked") do
button_window(button[5])
end
table.attach(button[4], 2, 3, 0, 1,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[5].signal_connect("clicked") do
button_window(button[6])
end
table.attach(button[5], 1, 2, 2, 3,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[6].signal_connect("clicked") do
button_window(button[7])
end
table.attach(button[6], 1, 2, 0, 1,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[7].signal_connect("clicked") do
button_window(button[8])
end
table.attach(button[7], 2, 3, 1, 2,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
button[8].signal_connect("clicked") do
button_window(button[0])
end
table.attach(button[8], 0, 1, 1, 2,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
box1.pack_start(Gtk::HSeparator.new, false, true, 0)
box2 = Gtk::VBox.new(false, 10)
box2.border_width = 10
box1.pack_start(box2, false, true, 0)
button[9] = Gtk::Button.new("close")
button[9].signal_connect("clicked") do destroy end
box2.add(button[9])
end
private
def button_window(button)
unless button.visible?
button.show
else
button.hide
end
end
end

View File

@ -0,0 +1,108 @@
=begin header
buttonbox.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: buttonbox.rb,v 1.6 2005/07/17 16:55:26 mutoh Exp $
Rewritten by Minoru Inachi <inachi@earth.interq.or.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class ButtonBoxSample < SampleWindow
def initialize
super("Button Boxes")
signal_connect("destroy"){destroy}
set_border_width(10)
main_vbox = Gtk::VBox.new
add(main_vbox)
frame_horz = Gtk::Frame.new("Horizontal Button Boxes")
main_vbox.pack_start(frame_horz, true, true, 10)
vbox = Gtk::VBox.new
vbox.border_width = 10
frame_horz.add(vbox)
vbox.pack_start(create_bbox(true, "Spread", 40,
Gtk::ButtonBox::SPREAD))
vbox.pack_start(create_bbox(true, "Edge", 40,
Gtk::ButtonBox::EDGE), true, true, 5)
vbox.pack_start(create_bbox(true, "Start", 40,
Gtk::ButtonBox::START), true, true, 5)
vbox.pack_start(create_bbox(true, "End", 40,
Gtk::ButtonBox::END), true, true, 5)
frame_vert = Gtk::Frame.new("Vertical Button Boxes")
main_vbox.pack_start(frame_vert, true, true, 10)
hbox = Gtk::HBox.new
hbox.border_width = 10
frame_vert.add(hbox)
hbox.pack_start(create_bbox(false, "Spread", 30,
Gtk::ButtonBox::SPREAD))
hbox.pack_start(create_bbox(false, "Edge", 30,
Gtk::ButtonBox::EDGE), true, true, 5)
hbox.pack_start(create_bbox(false, "Start", 30,
Gtk::ButtonBox::START), true, true, 5)
hbox.pack_start(create_bbox(false, "End", 30,
Gtk::ButtonBox::END), true, true, 5)
end
def create_bbox(horizontal, title, spacing, layout)
frame = Gtk::Frame.new(title)
if horizontal then
bbox = Gtk::HButtonBox.new
else
bbox = Gtk::VButtonBox.new
end
bbox.border_width = 5
frame.add(bbox)
bbox.set_layout_style(layout)
bbox.set_spacing(spacing)
button = Gtk::Button.new("OK")
bbox.add(button)
button = Gtk::Button.new("Cancel")
bbox.add(button)
button = Gtk::Button.new("Help")
bbox.add(button)
frame
end
end

View File

@ -0,0 +1,21 @@
/* XPM */
static char *openfile[] = {
/* width height num_colors chars_per_pixel */
" 10 9 5 1",
/* colors */
". c None",
"# c #000000",
"y c #666666",
"i c #ff1f00",
"# c #9f9f9f",
/* pixels */
"..........",
"........yy",
".......yy.",
"......yy..",
".yyy.yy...",
"..yyyy....",
"...yy.....",
"..........",
"..........",
};

View File

@ -0,0 +1,21 @@
/* XPM */
static char *openfile[] = {
/* width height num_colors chars_per_pixel */
" 10 9 5 1",
/* colors */
". c None",
"# c #000000",
"i c #ff0fff",
"y c #ff1f00",
"# c #9f9f9f",
/* pixels */
"..........",
"........yy",
".......yy.",
"......yy..",
".yyy.yy...",
"..yyyy....",
"...yy.....",
"..........",
"..........",
};

View File

@ -0,0 +1,67 @@
=begin header
checkbutton.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: checkbutton.rb,v 1.6 2005/07/17 16:55:26 mutoh Exp $
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Date: 2005/07/17 16:55:26 $
$Id: checkbutton.rb,v 1.6 2005/07/17 16:55:26 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class CheckButtonSample < SampleWindow
def initialize
super("check buttons")
box1 = Gtk::VBox.new
add(box1)
box2 = Gtk::VBox.new(false, 10)
box2.border_width = 10
box1.add(box2)
button = Gtk::CheckButton.new("button1")
box2.add(button)
button = Gtk::CheckButton.new("button2")
box2.add(button)
button = Gtk::CheckButton.new("button3")
box2.add(button)
box1.pack_start(Gtk::HSeparator.new)
box2 = Gtk::VBox.new(false, 10)
box2.border_width = 10
box1.add(box2)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
box2.add(button)
end
end

View File

@ -0,0 +1,46 @@
#define circles_width 64
#define circles_height 64
static unsigned char circles_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff,
0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0x00, 0x00, 0x00,
0x00, 0x00, 0xfc, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,
0xff, 0x1f, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00,
0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff,
0xff, 0xff, 0x01, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00,
0x00, 0xfe, 0xff, 0x01, 0xf0, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x3f, 0x00,
0x80, 0xff, 0x1f, 0x00, 0x80, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0x3f, 0x00,
0x80, 0xff, 0x03, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0xc0, 0xff, 0x01, 0x00,
0x00, 0xf0, 0x7f, 0x00, 0xe0, 0x7f, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x00,
0xf0, 0x3f, 0x00, 0x00, 0x00, 0x80, 0xff, 0x01, 0xf0, 0x1f, 0x00, 0x00,
0x00, 0x00, 0xff, 0x01, 0xf8, 0x1f, 0x00, 0x20, 0x00, 0x00, 0xff, 0x03,
0xf8, 0x0f, 0x00, 0xff, 0x07, 0x00, 0xfe, 0x03, 0xfc, 0x07, 0xc0, 0xff,
0x1f, 0x00, 0xfc, 0x07, 0xfc, 0x07, 0xf0, 0xff, 0x7f, 0x00, 0xfc, 0x07,
0xfc, 0x03, 0xf8, 0xff, 0xff, 0x00, 0xf8, 0x07, 0xfe, 0x03, 0xfc, 0xff,
0xff, 0x01, 0xf8, 0x0f, 0xfe, 0x01, 0xfe, 0x8f, 0xff, 0x03, 0xf0, 0x0f,
0xfe, 0x01, 0xfe, 0x01, 0xfc, 0x03, 0xf0, 0x0f, 0xff, 0x01, 0xff, 0x00,
0xf8, 0x07, 0xf0, 0x1f, 0xff, 0x00, 0x7f, 0x00, 0xf0, 0x07, 0xe0, 0x1f,
0xff, 0x80, 0x3f, 0x00, 0xe0, 0x0f, 0xe0, 0x1f, 0xff, 0x80, 0x1f, 0x00,
0xc0, 0x0f, 0xe0, 0x1f, 0xff, 0x80, 0x1f, 0x00, 0xc0, 0x0f, 0xe0, 0x1f,
0xff, 0x80, 0x1f, 0x00, 0xc0, 0x0f, 0xe0, 0x1f, 0xff, 0x80, 0x0f, 0x00,
0x80, 0x0f, 0xe0, 0x1f, 0xff, 0xc0, 0x0f, 0x00, 0x80, 0x1f, 0xe0, 0x1f,
0xff, 0x80, 0x0f, 0x00, 0x80, 0x0f, 0xe0, 0x1f, 0xff, 0x80, 0x1f, 0x00,
0xc0, 0x0f, 0xe0, 0x1f, 0xff, 0x80, 0x1f, 0x00, 0xc0, 0x0f, 0xe0, 0x1f,
0xff, 0x80, 0x1f, 0x00, 0xc0, 0x0f, 0xe0, 0x1f, 0xff, 0x81, 0x3f, 0x00,
0xe0, 0x0f, 0xf0, 0x1f, 0xfe, 0x01, 0x7f, 0x00, 0xf0, 0x07, 0xf0, 0x0f,
0xfe, 0x01, 0xff, 0x00, 0xf8, 0x07, 0xf0, 0x0f, 0xfe, 0x03, 0xfe, 0x01,
0xfc, 0x03, 0xf8, 0x0f, 0xfc, 0x03, 0xfe, 0x8f, 0xff, 0x03, 0xf8, 0x07,
0xfc, 0x07, 0xfc, 0xff, 0xff, 0x01, 0xfc, 0x07, 0xfc, 0x07, 0xf8, 0xff,
0xff, 0x00, 0xfc, 0x07, 0xf8, 0x0f, 0xf0, 0xff, 0x7f, 0x00, 0xfe, 0x03,
0xf8, 0x1f, 0xc0, 0xff, 0x1f, 0x00, 0xff, 0x03, 0xf0, 0x1f, 0x00, 0xff,
0x07, 0x00, 0xff, 0x01, 0xf0, 0x3f, 0x00, 0x20, 0x00, 0x80, 0xff, 0x01,
0xe0, 0x7f, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x00, 0xc0, 0xff, 0x01, 0x00,
0x00, 0xf0, 0x7f, 0x00, 0x80, 0xff, 0x03, 0x00, 0x00, 0xf8, 0x3f, 0x00,
0x80, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0xff, 0x3f, 0x00,
0x80, 0xff, 0x1f, 0x00, 0x00, 0xfe, 0xff, 0x01, 0xf0, 0xff, 0x0f, 0x00,
0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xf0, 0xff, 0xff,
0xff, 0xff, 0x01, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
0x00, 0xc0, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,
0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x07, 0x00, 0x00,
0x00, 0x00, 0xe0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff,
0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

View File

@ -0,0 +1,33 @@
=begin
colorselect.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project
$Id: colorselect.rb,v 1.5 2005/07/17 16:55:27 mutoh Exp $
=end
require 'sample'
class ColorSelectionSample < Gtk::ColorSelectionDialog
include Sample
extend SampleClass
def initialize
super("color selection dialog")
@destroyed = false
signal_connect("destroy"){destroy}
colorsel.set_has_opacity_control(true)
set_window_position(Gtk::Window::POS_MOUSE)
colorsel.signal_connect("color_changed"){
colorsel.current_color
}
ok_button.signal_connect("clicked"){
color = colorsel.current_color
colorsel.set_current_color(color)
}
cancel_button.signal_connect("clicked"){destroy}
end
end

View File

@ -0,0 +1,47 @@
=begin
dialog.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: dialog.rb,v 1.6 2005/07/17 16:55:27 mutoh Exp $
=end
require 'sample'
class DialogSample < SampleDialog
def initialize
super("Gtk::Dialog")
set_default_size(200, 100)
button = Gtk::Button.new("OK")
button.can_default = true
action_area.pack_start(button)
button.grab_default
button = Gtk::Button.new("Toggle")
button.signal_connect("clicked"){label_toggle}
button.can_default = true
action_area.pack_start(button)
@label = nil
end
private
def label_toggle
if @label == nil then
@label = Gtk::Label.new("Dialog Test")
@label.signal_connect("destroy"){@label = nil}
@label.set_padding(10, 10)
vbox.pack_start(@label)
@label.show
else
@label.destroy
end
end
end

View File

@ -0,0 +1,73 @@
=begin header
entry.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002,2003 Ruby-GNOME2 Project Team
$Id: entry.rb,v 1.6 2005/07/17 16:55:27 mutoh Exp $
=end
require 'sample'
class EntrySample < SampleWindow
def initialize
cbitems = [
"item0",
"item1 item1",
"item2 item2 item2",
"item3 item3 item3 item3",
"item4 item4 item4 item4 item4",
"item5 item5 item5 item5 item5 item5",
"item6 item6 item6 item6 item6",
"item7 item7 item7 item7",
"item8 item8 item8",
"item9 item9"
]
super("entry")
box = Gtk::VBox.new(false, 5)
add(box)
entry = Gtk::Entry.new
entry.text = "hello world"
entry.select_region(0, 5)
box.add(entry)
cb = Gtk::Combo.new
cb.set_popdown_strings(cbitems)
cb.entry.text = "hello world"
cb.entry.select_region(0, -1)
box.add(cb)
editable_check = Gtk::CheckButton.new("Editable")
box.add(editable_check)
editable_check.signal_connect("toggled"){
entry.editable = editable_check.active?
}
editable_check.active = true
visible_check = Gtk::CheckButton.new("Visible")
box.add(visible_check)
visible_check.signal_connect("toggled"){
entry.visibility = visible_check.active?
}
visible_check.active = true
sensitive_check = Gtk::CheckButton.new("Sensitive")
box.add(sensitive_check)
sensitive_check.signal_connect("toggled"){
entry.sensitive = sensitive_check.active?
}
sensitive_check.active = true
box.pack_start(Gtk::HSeparator.new, false, true, 5)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){ destroy }
box.add(button)
end
end

View File

@ -0,0 +1,67 @@
=begin header
filesel.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: filesel.rb,v 1.6 2005/07/17 16:55:27 mutoh Exp $
Rewritten by TAKAHASHI Hitoshi <thitoshi@ne.scphys.kyoto-u.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class FileSelectionSample < Gtk::FileSelection
include Sample
extend SampleClass
def initialize
super("file selection dialog")
@destroyed = false
signal_connect("destroy") do destroy end
set_window_position(Gtk::Window::POS_MOUSE)
hide_fileop_buttons
ok_button.signal_connect("clicked") do
puts filename
destroy
end
cancel_button.signal_connect("clicked") do
destroy
end
button = Gtk::Button.new("Hide Fileops")
button.signal_connect("clicked") do
hide_fileop_buttons
end
action_area.pack_start(button, false, false, 0)
button = Gtk::Button.new("Show Fileops")
button.signal_connect("clicked") do
show_fileop_buttons
end
action_area.pack_start(button, false, false, 0)
end
end

View File

@ -0,0 +1,56 @@
=begin header
fontselection.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: fontselection.rb,v 1.6 2005/07/17 16:55:27 mutoh Exp $
Rewritten by Neil Conway <neilconway@rogers.com>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class FontSelectionSample < Gtk::FontSelectionDialog
include Sample
extend SampleClass
def initialize
super('Font Selection Dialog')
set_window_position(Gtk::Window::POS_MOUSE)
signal_connect('destroy') {
destroy
}
ok_button.signal_connect('clicked') {
puts font_name
destroy
}
cancel_button.signal_connect('clicked') {
destroy
}
end
end

View File

@ -0,0 +1,70 @@
=begin header
gammacurve.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: gammacurve.rb,v 1.6 2005/07/17 16:55:27 mutoh Exp $
Rewritten by TAKAHASHI Hitoshi <thitoshi@ne.scphys.kyoto-u.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class GammaCurveSample < SampleWindow
include Math
def initialize
super("Gtk::GammaCurve")
set_border_width(10)
@curve = Gtk::GammaCurve.new
add(@curve)
@count = 0
end
def update
max = 127 + (@count % 2) * 128
@curve.curve.set_range(0, max, 0, max)
vec = []
max.times do |i|
vec[i] = (127 / sqrt(max)) * sqrt(i)
end
@curve.curve.set_vector(max, vec)
@count += 1
end
attr_reader :count
def GammaCurveSample.invoke
@singleton = new if @singleton.nil? or @singleton.destroyed?
@singleton.update
unless @singleton.visible?
@singleton.show_all
end
if @singleton.count == 4
@singleton.destroy
end
end
end

View File

@ -0,0 +1,74 @@
# -*- coding: utf-8 -*-
=begin header
labels.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002,2003 Ruby-GNOME2 Project Team
$Id: labels.rb,v 1.7 2005/07/17 16:55:27 mutoh Exp $
=end
require 'sample'
class LabelSample < SampleWindow
def initialize
super("Gtk::Label")
set_border_width(5)
vbox = Gtk::VBox::new(false, 5)
hbox = Gtk::HBox::new(false, 5)
hbox.pack_start(vbox, false, false, 0)
create_frame("Normal Label",
"This is a Normal label",
vbox)
create_frame("Multi-line Label",
"This is a Multi-line label.\nSecond line\nThird line",
vbox)
create_frame("Left Justified Label",
"This is a Left-Justified\nMulti-line label.\nThird line",
vbox) do |label|
label.justify = Gtk::JUSTIFY_LEFT
end
create_frame("Right Justified Label",
"This is a Right-Justified\nMulti-line label.\nFourth line, (j/k)",
vbox) do |label|
label.justify = Gtk::JUSTIFY_RIGHT
end
vbox = Gtk::VBox::new(false, 5)
hbox.pack_start(vbox, false, false, 0)
create_frame("Line wrapped label",
"This is an example of a line-wrapped label. It should not be taking up the entire width allocated to it, but automatically wraps the words to fit. The time has come, for all good men, to come to the aid of their party. The sixth sheik's six sheep's sick.\n It supports multiple paragraphs correctly, and correctly adds many extra spaces. ",
vbox) do |label|
label.wrap = true
end
create_frame("Filled, wrapped label",
"This is an example of a line-wrapped, filled label. It should be taking up the entire width allocated to it. Here is a seneance to prove my point. Here is another sentence. Here comes the sun, do de do de do.\n This is a new paragraph.\n This is another newer, longer, better paragraph. It is coming to an end, unfortunately.",
vbox) do |label|
label.justify = Gtk::JUSTIFY_FILL
label.wrap = true
end
create_frame("Underlined label",
"This label is underlined!\nThis one is underlined in 日本語の入用quite a funky fashion",
vbox) do |label|
label.justify = Gtk::JUSTIFY_LEFT
label.pattern = "_________________________ _ _________ _ _____ _ __ __ ___ ____ _____"
end
add(hbox)
end
def create_frame(title, label_str, vbox)
frame = Gtk::Frame::new(title)
frame.show
label = Gtk::Label::new(label_str)
yield(label) if iterator?
frame.add(label)
vbox.pack_start(frame, false, false, 0)
end
private :create_frame
end

View File

@ -0,0 +1,108 @@
=begin header
layout.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: layout.rb,v 1.6 2005/07/17 16:55:27 mutoh Exp $
Rewritten by Minoru Inachi <inachi@earth.interq.or.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class LayoutSample < SampleWindow
def initialize
super("Gtk::Layout")
set_default_size(200, 200)
scrolledwindow = Gtk::ScrolledWindow.new
add(scrolledwindow)
@layout = Gtk::Layout.new(nil, nil)
scrolledwindow.add(@layout)
# We set step sizes here since GtkLayout does not set
# them itself.
@layout.hadjustment.step_increment = 10.0
@layout.vadjustment.step_increment = 10.0
@layout.set_events(Gdk::Event::EXPOSURE_MASK)
@layout.signal_connect("expose_event") do | w, event |
layout_expose_handler(event)
end
@layout.set_size(1600, 128000)
for i in 0..15 do
for j in 0..15 do
buf = "Button #{i}, #{j}"
if ((i + j) % 2) != 0 then
button = Gtk::Button.new(buf)
else
button = Gtk::Label.new(buf)
end
@layout.put(button, j*100, i*100)
button.show
end
end
for i in 16..1279 do
buf = "Button #{i}, 0"
if (i % 2) != 0 then
button = Gtk::Button.new(buf)
else
button = Gtk::Label.new(buf)
end
@layout.put(button, 0, i * 100)
end
end
private
def layout_expose_handler(event)
imin = (event.area.x) / 10
imax = (event.area.x + event.area.width + 9) / 10
jmin = (event.area.y) / 10
jmax = (event.area.y + event.area.height + 9) / 10
for i in imin..imax-1 do
for j in jmin..jmax-1 do
if ((i+j) % 2) != 0 then
@layout.bin_window.draw_rectangle(
@layout.style.black_gc,
true,
10 * i, 10 * j,
1 + i % 10, 1 + j % 10)
end
end
end
false
end
end

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,79 @@
=begin header
menu.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: menu.rb,v 1.6 2005/07/18 17:13:32 mutoh Exp $
=end
require 'sample'
class MenuSample < SampleWindow
def initialize
super("menus")
signal_connect("delete_event") do true end
box = Gtk::VBox.new(false, 10)
add(box)
menubar = Gtk::MenuBar.new
box.pack_start(menubar, false, true, 0)
menu = create_menu(2, true)
menuitem = Gtk::MenuItem.new("test\nline2")
menuitem.set_submenu(menu)
menubar.append(menuitem)
menuitem = Gtk::MenuItem.new("foo")
menuitem.set_submenu(create_menu(3, true))
menubar.append(menuitem)
menuitem = Gtk::MenuItem.new("bar")
menuitem.set_submenu(create_menu(4, true))
menuitem.right_justified = true
menubar.append(menuitem)
optionmenu = Gtk::OptionMenu.new
optionmenu.set_menu(create_menu(1, false))
optionmenu.history = 4
box.add(optionmenu)
box.add(Gtk::HSeparator.new)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
box.add(button)
button.set_flags(Gtk::Widget::CAN_DEFAULT)
button.grab_default
end
private
def create_menu(depth, tearoff)
return nil if depth < 1
menu = Gtk::Menu.new
group = nil
if tearoff then
menuitem = Gtk::TearoffMenuItem.new
menu.append(menuitem)
end
for i in 0..4
j = i + 1
buf = sprintf("item %2d - %d", depth, j)
menuitem = Gtk::RadioMenuItem.new(group, buf)
group = menuitem.group
menu.append(menuitem)
menuitem.set_sensitive(false) if i == 3
submenu = create_menu(depth - 1, true)
menuitem.set_submenu(submenu) unless submenu.nil?
end
menu
end
end

View File

@ -0,0 +1,281 @@
=begin header
notebook.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: notebook.rb,v 1.11 2005/07/18 17:13:32 mutoh Exp $
Rewritten by TAKAHASHI Hitoshi <thitoshi@ne.scphys.kyoto-u.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
$book_open_xpm = [
"16 16 4 1",
" c None s None",
". c black",
"X c #808080",
"o c white",
" ",
" .. ",
" .Xo. ... ",
" .Xoo. ..oo. ",
" .Xooo.Xooo... ",
" .Xooo.oooo.X. ",
" .Xooo.Xooo.X. ",
" .Xooo.oooo.X. ",
" .Xooo.Xooo.X. ",
" .Xooo.oooo.X. ",
" .Xoo.Xoo..X. ",
" .Xo.o..ooX. ",
" .X..XXXXX. ",
" ..X....... ",
" .. ",
" "
]
$book_closed_xpm = [
"16 16 6 1",
" c None s None",
". c black",
"X c red",
"o c yellow",
"O c #808080",
"# c white",
" ",
" .. ",
" ..XX. ",
" ..XXXXX. ",
" ..XXXXXXXX. ",
".ooXXXXXXXXX. ",
"..ooXXXXXXXXX. ",
".X.ooXXXXXXXXX. ",
".XX.ooXXXXXX.. ",
" .XX.ooXXX..#O ",
" .XX.oo..##OO. ",
" .XX..##OO.. ",
" .X.#OO.. ",
" ..O.. ",
" .. ",
" "
]
class NotebookSample < SampleWindow
def initialize
super("notebook")
vbox = Gtk::VBox.new(false, 0)
add(vbox)
@notebook = Gtk::Notebook.new
@notebook.signal_connect("switch_page") do |widget, page, num_page|
unless destroyed?
page_switch(widget, page, num_page)
end
end
@notebook.tab_pos = Gtk::POS_TOP
vbox.add(@notebook)
@notebook.border_width = 10
@notebook.realize
@book_open, @book_open_mask =
Gdk::Pixmap::create_from_xpm_d(@notebook.window, nil, $book_open_xpm)
@book_closed, @book_closed_mask =
Gdk::Pixmap::create_from_xpm_d(@notebook.window, nil, $book_closed_xpm)
create_pages(1, 5)
vbox.add(Gtk::HSeparator.new)
cbutton1 = Gtk::CheckButton.new("popup menu")
vbox.add(cbutton1)
cbutton1.signal_connect("clicked"){
@notebook.enable_popup = cbutton1.active?
}
hbox = Gtk::HBox.new(false, 5)
hbox.border_width = 10
vbox.pack_start(hbox, false, false, 0)
label = Gtk::Label.new("Notebook Style :")
hbox.add(label)
omenu = build_option_menu([
OptionMenuItem.new("Standard", proc { standard_notebook }),
OptionMenuItem.new("No tabs", proc { notabs_notebook }),
OptionMenuItem.new("Scrollable", proc { scrollable_notebook }) ], 0)
hbox.add(omenu)
button = Gtk::Button.new("Show all Pages")
hbox.add(button)
button.signal_connect('clicked'){
@notebook.each do |w|
w.show
end
}
hbox = Gtk::HBox.new(true, 10)
hbox.set_border_width(10)
vbox.pack_start(hbox, false, true, 0)
button = Gtk::Button.new("prev")
button.signal_connect("clicked"){
@notebook.prev_page
}
hbox.pack_start(button, true, true, 0)
button = Gtk::Button.new("next")
button.signal_connect("clicked"){
@notebook.next_page
}
hbox.pack_start(button, true, true, 0)
button = Gtk::Button.new("rotate")
button.signal_connect("clicked"){
@notebook.tab_pos = (@notebook.tab_pos.to_i + 1) % 4
}
hbox.pack_start(button, true, true, 0)
vbox.add(Gtk::HSeparator.new)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
vbox.pack_start(button, false, false, 5)
button.can_default = true
button.grab_default
end
def standard_notebook
@notebook.set_show_tabs(true)
@notebook.set_scrollable(false)
if @notebook.children.size == 15
10.times do
@notebook.remove_page(5)
end
end
end
def notabs_notebook
@notebook.set_show_tabs(false)
if @notebook.children.size == 15
10.times do
@notebook.remove_page(5)
end
end
end
def scrollable_notebook
@notebook.set_show_tabs(true)
@notebook.set_scrollable(true)
if @notebook.children.size == 5
create_pages(6, 15)
end
end
def create_pages(start_page, end_page)
start_page.upto(end_page) do |i|
buffer = "Page #{i}"
child = Gtk::Frame.new(buffer)
child.border_width = 10
vbox = Gtk::VBox.new(true, 0)
vbox.border_width = 10
child.add(vbox)
hbox = Gtk::HBox.new(true, 0)
vbox.pack_start(hbox, false, true, 5)
button1 = Gtk::CheckButton.new("Fill Tab")
hbox.pack_start(button1, true, true, 5)
button1.active = true
button1.signal_connect('toggled'){
expand, fill, pack = @notebook.query_tab_label_packing(child)
@notebook.set_tab_label_packing(child, expand, button1.active?, pack)
}
button2 = Gtk::CheckButton.new("Expand Tab")
hbox.pack_start(button2, true, true, 5)
button2.signal_connect('toggled'){
expand, fill, pack = @notebook.query_tab_label_packing(child)
@notebook.set_tab_label_packing(child, button2.active?, fill, pack)
}
button3 = Gtk::CheckButton.new("Pack end")
hbox.pack_start(button3, true, true, 5)
button3.signal_connect('toggled'){
expand, fill, pack = @notebook.query_tab_label_packing(child)
@notebook.set_tab_label_packing(child, expand, fill,
if button3.active? then Gtk::PACK_END else Gtk::PACK_START end)
}
button = Gtk::Button.new("Hide Page")
vbox.pack_end(button, false, false, 5)
button.signal_connect('clicked'){
child.hide
}
child.show_all
label_box = Gtk::HBox.new(false, 0)
pixwid = Gtk::Image.new(@book_closed, @book_closed_mask)
label_box.pack_start(pixwid, false, true, 0)
pixwid.set_padding(3, 1)
label = Gtk::Label.new(buffer)
label_box.pack_start(label, false, true, 0)
label_box.show_all
menu_box = Gtk::HBox.new(false, 0)
pixwid = Gtk::Image.new(@book_closed, @book_closed_mask)
menu_box.pack_start(pixwid, false, true, 0)
pixwid.set_padding(3, 1)
label = Gtk::Label.new(buffer)
menu_box.pack_start(label, false, true, 0)
menu_box.show_all
@notebook.append_page_menu(child, label_box, menu_box)
end
end
def set_page_pixmaps(notebook, page_num, pix, mask)
child = notebook.get_nth_page(page_num)
label = notebook.get_tab_label(child).children[0].set(pix, mask)
end
def page_switch(notebook, page, page_num)
old_page_num = notebook.page
return if (page_num == old_page_num)
set_page_pixmaps(notebook, page_num, @book_open, @book_open_mask)
if (old_page_num != -1)
set_page_pixmaps(notebook, old_page_num, @book_closed, @book_closed_mask)
end
end
end

View File

@ -0,0 +1,58 @@
=begin header
pixmap.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Date: 2005/07/18 17:13:32 $
$Id: pixmap.rb,v 1.5 2005/07/18 17:13:32 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class PixmapSample < SampleWindow
def initialize
super("pixmap")
vbox = Gtk::VBox.new(false, 0)
add(vbox)
button = Gtk::Button.new
vbox.pack_start(button, false, false, 10)
label = Gtk::Label.new("Pixmap\ntest")
boxbutton = Gtk::HBox.new(false, 0)
boxbutton.border_width = 2
boxbutton.add(Gtk::Image.new("test.xpm"))
boxbutton.add(label)
button.add(boxbutton)
vbox.add(Gtk::HSeparator.new)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
vbox.pack_start(button, false, false, 10)
end
end

View File

@ -0,0 +1,181 @@
=begin header
progressbar.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: progressbar.rb,v 1.9 2005/07/18 17:13:32 mutoh Exp $
Rewritten by Minoru Inachi <inachi@earth.interq.or.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class ProgressBarSample < SampleDialog
def initialize
super("Gtk::ProgressBar")
set_border_width(10)
vbox1 = Gtk::VBox.new(false, 5)
vbox1.border_width = 10
vbox.add(vbox1)
frame = Gtk::Frame.new("Progress")
vbox1.add(frame)
vbox2 = Gtk::VBox.new(false, 5)
frame.add(vbox2)
align = Gtk::Alignment.new(0.5, 0.5, 0, 0)
vbox2.pack_start(align, FALSE, FALSE, 5)
@pbar = Gtk::ProgressBar.new
align.add(@pbar)
@timer = Gtk.timeout_add(100){progress_timeout}
align = Gtk::Alignment.new(0.5, 0.5, 0, 0)
vbox2.pack_start(align, false, false, 5);
hbox = Gtk::HBox.new(false, 5)
align.add(hbox)
label = Gtk::Label.new("Label updated by user :")
hbox.add(label)
@label = Gtk::Label.new("")
hbox.add(@label)
frame = Gtk::Frame.new("Options")
vbox1.add(frame)
vbox2 = Gtk::VBox.new(false, 5)
frame.add(vbox2)
tab = Gtk::Table.new(3, 2, false)
vbox2.add(tab)
label = Gtk::Label.new("Orientation :");
tab.attach(label, 0, 1, 0, 1,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL,
5, 5)
label.set_alignment(0, 0.5)
@omenu1 = build_option_menu(
[ OptionMenuItem.new("Left-Right", proc { |w| toggle_orientation(w) }),
OptionMenuItem.new("Right-Left", proc { |w| toggle_orientation(w) }),
OptionMenuItem.new("Bottom-Top", proc { |w| toggle_orientation(w) }),
OptionMenuItem.new("Top-Bottom", proc { |w| toggle_orientation(w) })
], 0)
hbox = Gtk::HBox.new(false, 0)
tab.attach(hbox, 1, 2, 0, 1,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL,
5, 5);
hbox.add(@omenu1)
check = Gtk::CheckButton.new("Show text")
check.signal_connect("clicked") do |w| toggle_show_text(w) end
tab.attach(check, 0, 1, 1, 2,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL,
5, 5)
hbox = Gtk::HBox.new(false, 0)
tab.attach(hbox, 1, 2, 1, 2,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL,
5, 5)
label = Gtk::Label.new("Text align :")
tab.attach(label, 0, 1, 2, 3,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL,
5, 5)
label.set_alignment(0, 0.5)
hbox = Gtk::HBox.new(false, 0)
tab.attach(hbox, 1, 2, 2, 3,
Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL,
5, 5)
label = Gtk::Label.new("x :")
hbox.pack_start(label, false, true, 5)
adj = Gtk::Adjustment.new(0.5, 0, 1, 0.1, 0.1, 0)
@x_align_spin = Gtk::SpinButton.new(adj, 0, 1)
adj.signal_connect("value_changed"){adjust_align}
hbox.pack_start(@x_align_spin, false, true, 0)
@x_align_spin.sensitive = false
label = Gtk::Label.new("y :")
hbox.pack_start(label, false, true, 5)
adj = Gtk::Adjustment.new(0.5, 0, 1, 0.1, 0.1, 0)
@y_align_spin = Gtk::SpinButton.new(adj, 0, 1)
adj.signal_connect("value_changed"){adjust_align}
hbox.pack_start(@y_align_spin, false, true, 0)
@y_align_spin.sensitive = false
button = Gtk::Button.new("close")
button.signal_connect("clicked"){
Gtk::timeout_remove(@timer)
destroy
}
button.can_default = true
self.action_area.add(button)
button.grab_default
end
private
def toggle_orientation(rmitem)
return unless rmitem.mapped?
i = 3
group = rmitem.group
group.each do |g|
break if g.active?
i -= 1
end
@pbar.orientation = i
end
private
def progress_timeout
new_val = @pbar.fraction + 0.05
new_val = 0.0 if new_val > 1.0
@pbar.fraction = new_val
@label.text = "#{(new_val * 100).to_i}"
true
end
private
def toggle_show_text(cbutton)
@pbar.show_text = cbutton.active?
@x_align_spin.sensitive = cbutton.active?
@y_align_spin.sensitive = cbutton.active?
end
private
def adjust_align
@pbar.text_xalign = @x_align_spin.value
@pbar.text_yalign = @y_align_spin.value
end
end

View File

@ -0,0 +1,61 @@
=begin header
radiobutton.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Date: 2005/07/18 17:13:32 $
$Id: radiobutton.rb,v 1.7 2005/07/18 17:13:32 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class RadioButtonSample < SampleWindow
def initialize
super("radio buttons")
set_border_width(10)
vbox = Gtk::VBox.new(false, 10)
add(vbox)
button1 = Gtk::RadioButton.new("button1")
vbox.add(button1)
button2 = Gtk::RadioButton.new(button1, "button2")
vbox.add(button2)
button3 = Gtk::RadioButton.new(button1, "button3")
vbox.add(button3)
vbox.add(Gtk::HSeparator.new)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
vbox.pack_start(button, false, true)
button.can_default = true
button.grab_default
end
end

View File

@ -0,0 +1,65 @@
=begin header
range.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: range.rb,v 1.6 2005/07/18 17:13:32 mutoh Exp $
Rewritten by TAKAHASHI Hitoshi <thitoshi@ne.scphys.kyoto-u.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class RangeSample < SampleWindow
def initialize
super("range controls")
vbox = Gtk::VBox.new(false, 10)
add(vbox)
adjustment = Gtk::Adjustment.new(0.0, 0.0, 101.0, 0.1, 1.0, 1.0)
scale = Gtk::HScale.new(adjustment)
scale.set_size_request(150, 50)
scale.update_policy = Gtk::UPDATE_DELAYED
scale.digits = 1
scale.draw_value = true
vbox.add(scale)
scrollbar = Gtk::HScrollbar.new(adjustment)
scrollbar.update_policy = Gtk::UPDATE_CONTINUOUS
vbox.add(scrollbar)
vbox.add(Gtk::HSeparator.new)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
vbox.pack_start(button, true, true, 0)
button.can_default = true
button.grab_default
end
end

View File

@ -0,0 +1,91 @@
=begin header
reparent.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: reparent.rb,v 1.6 2005/07/18 17:13:33 mutoh Exp $
Rewritten by TAKAHASHI Hitoshi <thitoshi@ne.scphys.kyoto-u.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class ReparentSample < SampleWindow
def initialize
super("reparent")
vbox = Gtk::VBox.new(false, 0)
add(vbox)
box2 = Gtk::HBox.new(false, 5)
box2.set_border_width(10)
vbox.pack_start(box2, true, true, 0)
label = Gtk::Label.new("Hello World")
frame = Gtk::Frame.new("Frame 1")
box2.pack_start(frame, true, true, 0)
framebox1 = Gtk::VBox.new(false, 5)
framebox1.border_width = 5
frame.add(framebox1)
button = Gtk::Button.new("switch")
button.signal_connect("clicked"){
label.reparent(framebox1)
}
framebox1.pack_start(button, false, true, 0)
framebox1.add(label)
label.signal_connect("parent_set"){ |child, old_parent|
puts "set_parent for \"#{child.class}\":"
puts " new parent: \"#{if child.parent then child.parent.class else 'NULL' end}\","
puts " old parent: \"#{if old_parent then old_parent.class else 'NULL' end}\","
puts " data: 42\n"
}
frame = Gtk::Frame.new("Frame 2")
box2.pack_start(frame, true, true, 0)
framebox2 = Gtk::VBox.new(false, 5)
framebox2.border_width = 5
frame.add(framebox2)
button = Gtk::Button.new("switch")
button.signal_connect("clicked"){
label.reparent(framebox2)
}
framebox2.pack_start(button, false, true, 0)
vbox.pack_start(Gtk::HSeparator.new, false, true)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
vbox.pack_start(button, false, true, 10)
button.can_default = true
button.grab_default
end
end

View File

@ -0,0 +1,46 @@
=begin header
rulers.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: rulers.rb,v 1.9 2005/07/18 17:13:33 mutoh Exp $
=end
require 'sample'
class RulerSample < SampleWindow
def initialize
super("rulers")
set_default_size(300, 300)
set_events(Gdk::Event::POINTER_MOTION_MASK |
Gdk::Event::POINTER_MOTION_HINT_MASK)
table = Gtk::Table.new(2, 2, false)
add(table)
hruler = Gtk::HRuler.new
hruler.metric = Gtk::CENTIMETERS
hruler.set_range(100, 0, 0, 20)
vruler = Gtk::VRuler.new
vruler.set_range(5, 15, 0, 20)
signal_connect("motion_notify_event"){ |w, e|
vruler.signal_emit("motion_notify_event", e)
}
table.attach(hruler, 1, 2, 0, 1,
Gtk::EXPAND | Gtk::FILL, Gtk::FILL, 0, 0)
signal_connect("motion_notify_event"){ |w, e|
hruler.signal_emit("motion_notify_event", e)
}
table.attach(vruler, 0, 1, 1, 2,
Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0)
end
end

View File

@ -0,0 +1,80 @@
=begin header
sample.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: sample.rb,v 1.9 2005/07/21 17:47:19 mutoh Exp $
=end
require 'gtk2'
module Sample
def destroy
super
@destroyed = true
end
def destroyed?
@destroyed
end
end
module SampleClass
def invoke
@singleton = nil unless defined? @singleton
@singleton = new if @singleton.nil? or @singleton.destroyed?
unless @singleton.visible?
@singleton.show_all
else
@singleton.destroy
end
end
end
class SampleWindow < Gtk::Window
include Sample
extend SampleClass
def initialize(title)
super(title)
@destroyed = false
signal_connect("destroy") do destroy end
end
end
class SampleDialog < Gtk::Dialog
include Sample
extend SampleClass
def initialize(title)
super(title)
@destroyed = false
signal_connect("destroy") do destroy end
end
end
OptionMenuItem = Struct.new("OptionMenuItem", :name, :block)
def build_option_menu(items, history)
omenu = Gtk::OptionMenu.new
menu = Gtk::Menu.new
group = nil
items.size.times do |i|
menu_item = Gtk::RadioMenuItem.new(group, items[i].name)
menu_item.signal_connect("activate") do |widget|
items[i].block.call(widget)
end
group = menu_item.group
menu.append(menu_item)
menu_item.active = true if i == history
menu_item.show
end
omenu.menu = menu
omenu.history = history
omenu
end

View File

@ -0,0 +1,87 @@
=begin
savedposition.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: savedposition.rb,v 1.7 2005/07/21 17:47:19 mutoh Exp $
Rewritten by TAKAHASHI Hitoshi <thitoshi@ne.scphys.kyoto-u.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class SavedPositionSample < SampleWindow
Pos = [ 0, 0 ]
def initialize
super("Saved Position")
move(Pos[0], Pos[1])
set_default_size(200, 100)
set_border_width = 5
vbox = Gtk::VBox.new
add(vbox)
hbox1 = Gtk::HBox.new
hbox1.border_width = 5
vbox.add(hbox1)
label = Gtk::Label.new("X Origin : ")
label.set_alignment(0, 0.5)
hbox1.add(label)
x_label = Gtk::Label.new("")
hbox1.add(x_label)
hbox2 = Gtk::HBox.new
hbox2.set_border_width(5)
vbox.add(hbox2)
label = Gtk::Label.new("Y Origin : ")
label.set_alignment(0, 0.5)
hbox2.add(label)
y_label = Gtk::Label.new("")
hbox2.add(y_label)
signal_connect("configure_event") do
x, y = window.root_origin
Pos[0] = x
Pos[1] = y
x_label.text = x.to_s
y_label.text = y.to_s
false
end
vbox.pack_start(Gtk::HSeparator.new, false, true, 10)
button = Gtk::Button.new("Close")
button.signal_connect("clicked"){destroy}
vbox.add(button)
button.can_default = true
button.grab_default
end
end

View File

@ -0,0 +1,67 @@
=begin header
scrolledwindow.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Date: 2005/07/21 17:47:19 $
$Id: scrolledwindow.rb,v 1.7 2005/07/21 17:47:19 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class ScrolledWindowSample < SampleDialog
def initialize
super("dialog")
scrolled_window = Gtk::ScrolledWindow.new
scrolled_window.border_width = 10
scrolled_window.set_policy(Gtk::POLICY_AUTOMATIC,
Gtk::POLICY_AUTOMATIC)
vbox.add(scrolled_window)
table = Gtk::Table.new(20, 20, false)
table.row_spacings = 10
table.column_spacings = 10
scrolled_window.add_with_viewport(table)
table.focus_hadjustment = scrolled_window.hadjustment
table.focus_vadjustment = scrolled_window.vadjustment
for i in 0..19
for j in 0..19
buffer = "button (#{i},#{j})"
button = Gtk::ToggleButton.new(buffer)
table.attach(button, i, i + 1, j, j + 1)
end
end
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
action_area.pack_start(button, true, true, 0)
set_default_size(300, 300)
end
end

View File

@ -0,0 +1,99 @@
=begin header
shapedwindow.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: shapedwindow.rb,v 1.7 2005/07/21 17:47:19 mutoh Exp $
=end
require 'sample'
class ShapeSampleBasic < Gtk::Window
include Sample
extend SampleClass
@@root_win = nil
def initialize(xpm_file, x, y, px, py, type)
super(type)
@destroyed = false
signal_connect("destroy"){destroy}
realize
@@root_win = Gdk::Window.default_root_window unless @@root_win
window.set_events(window.events | Gdk::Event::BUTTON_MOTION_MASK |
Gdk::Event::POINTER_MOTION_HINT_MASK |
Gdk::Event::BUTTON_PRESS_MASK)
signal_connect("button_press_event") do |w, event|
if (event.event_type == Gdk::Event::BUTTON_PRESS)
@x = event.x
@y = event.y
Gtk.grab_add(self)
Gdk.pointer_grab(window, true,
Gdk::Event::BUTTON_RELEASE_MASK |
Gdk::Event::BUTTON_MOTION_MASK |
Gdk::Event::POINTER_MOTION_HINT_MASK,
nil, nil, 0)
end
end
signal_connect("button_release_event") do
Gtk.grab_remove(self)
Gdk.pointer_ungrab(0)
end
signal_connect("motion_notify_event") do
xp, yp, mask = @@root_win.pointer
move(xp - @x, yp - @y)
end
move(x, y)
style = Gtk::Widget.default_style
fixed = Gtk::Fixed.new
fixed.set_size_request(100, 100)
add(fixed)
gdk_pixmap, gdk_pixmap_mask =
Gdk::Pixmap::create_from_xpm(window,
style.bg(Gtk::STATE_NORMAL),
xpm_file)
pixmap = Gtk::Image.new(gdk_pixmap, gdk_pixmap_mask)
fixed.put(pixmap, px, py)
shape_combine_mask(gdk_pixmap_mask, px, py)
end
end
class ShapeSampleModeller < ShapeSampleBasic
def initialize
super("Modeller.xpm", 440, 140, 0, 0, Gtk::Window::POPUP)
end
end
class ShapeSampleSheets < ShapeSampleBasic
def initialize
super("FilesQueue.xpm", 580, 170, 0, 0, Gtk::Window::POPUP)
end
end
class ShapeSampleRings < ShapeSampleBasic
def initialize
super("3DRings.xpm", 460, 270, 25, 25, Gtk::Window::TOPLEVEL)
end
end
ShapesSample = Class.new
class << ShapesSample
def invoke
ShapeSampleModeller.invoke
ShapeSampleSheets.invoke
ShapeSampleRings.invoke
end
end

View File

@ -0,0 +1,181 @@
=begin header
spinbutton.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: spinbutton.rb,v 1.7 2005/07/30 10:24:57 mutoh Exp $
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class SpinButtonSample < SampleWindow
def get_value(spin, label, data)
if (data == 1)
buf = sprintf("%d", spin.value_as_int)
else
buf = sprintf("%0.*f", spin.digits, spin.value)
end
label.text = buf
end
def initialize
super("Gtk::SpinButton")
main_vbox = Gtk::VBox.new(false, 5)
main_vbox.set_border_width(10)
add(main_vbox)
frame = Gtk::Frame.new("Not accelerated")
main_vbox.pack_start(frame, true, true, 0)
vbox = Gtk::VBox.new(false, 0)
vbox.set_border_width(5)
frame.add(vbox)
# Day, month, year spinners
hbox = Gtk::HBox.new(false, 0)
vbox.pack_start(hbox, true, true, 5)
vbox2 = Gtk::VBox.new(false, 0)
hbox.pack_start(vbox2, true, true, 5)
label = Gtk::Label.new("Day :")
label.set_alignment(0, 0.5)
vbox2.pack_start(label, false, true, 0)
adj = Gtk::Adjustment.new(1.0, 1.0, 31.0, 1.0, 5.0, 0.0)
spinner = Gtk::SpinButton.new(adj, 0, 0)
spinner.wrap = true
vbox2.pack_start(spinner, false, true, 0)
vbox2 = Gtk::VBox.new(false, 0)
hbox.pack_start(vbox2, true, true, 5)
label = Gtk::Label.new("Month :")
label.set_alignment(0, 0.5)
vbox2.pack_start(label, false, true, 0)
adj = Gtk::Adjustment.new(1.0, 1.0, 12.0, 1.0, 5.0, 0.0)
spinner = Gtk::SpinButton.new(adj, 0, 0)
spinner.wrap = true
vbox2.pack_start(spinner, false, true, 0)
vbox2 = Gtk::VBox.new(false, 0)
hbox.pack_start(vbox2, true, true, 5)
label = Gtk::Label.new("Year :")
label.set_alignment(0, 0.5)
vbox2.pack_start(label, false, true, 0)
adj = Gtk::Adjustment.new(1998.0, 0.0, 2100.0, 1.0, 100.0, 0.0)
spinner = Gtk::SpinButton.new(adj, 0, 0)
spinner.wrap = true
spinner.set_size_request(55, -1)
vbox2.pack_start(spinner, false, true, 0)
frame = Gtk::Frame.new("Accelerated")
main_vbox.pack_start(frame, true, true, 0)
vbox = Gtk::VBox.new(false, 0)
vbox.set_border_width(5)
frame.add(vbox)
hbox = Gtk::HBox.new(false, 0)
vbox.pack_start(hbox, false, true, 5)
vbox2 = Gtk::VBox.new(false, 0)
hbox.pack_start(vbox2, true, true, 5)
label = Gtk::Label.new("Value :")
label.set_alignment(0, 0.5)
vbox2.pack_start(label, false, true, 0)
adj = Gtk::Adjustment.new(0.0, -10000.0, 10000.0, 0.5, 100.0, 0.0)
spinner1 = Gtk::SpinButton.new(adj, 1.0, 2)
spinner1.set_wrap(true)
spinner1.set_size_request(100, -1)
spinner1.set_update_policy(Gtk::SpinButton::UPDATE_ALWAYS)
vbox2.pack_start(spinner1, false, true, 0)
vbox2 = Gtk::VBox.new(false, 0)
hbox.pack_start(vbox2, true, true, 5)
label = Gtk::Label.new("Digits :")
label.set_alignment(0, 0.5)
vbox2.pack_start(label, false, true, 0)
adj = Gtk::Adjustment.new(2, 1, 5, 1, 1, 0)
spinner2 = Gtk::SpinButton.new(adj, 0.0, 0)
spinner2.wrap = true
adj.signal_connect("value_changed"){
spinner1.digits = spinner2.value_as_int
}
vbox2.pack_start(spinner2, false, true, 0)
hbox = Gtk::HBox.new(false, 0)
vbox.pack_start(hbox, false, true, 5)
button = Gtk::CheckButton.new("Snap to 0.5-ticks")
button.signal_connect("clicked"){
spinner1.snap_to_ticks = button.active?
}
vbox.pack_start(button, true, true, 0)
button.set_active(true)
button2 = Gtk::CheckButton.new("Numeric only input mode")
button2.signal_connect("clicked"){
spinner1.numeric = button2.active?
}
vbox.pack_start(button2, true, true, 0)
button2.active = true
val_label = Gtk::Label.new("")
hbox = Gtk::HBox.new(false, 0)
vbox.pack_start(hbox, false, true, 5)
button3 = Gtk::Button.new("Value as Int")
button3.signal_connect("clicked"){get_value(spinner1, val_label, 1)}
hbox.pack_start(button3, true, true, 5)
button4 = Gtk::Button.new("Value as Float")
button4.signal_connect("clicked"){get_value(spinner1, val_label, 2)}
hbox.pack_start(button4, true, true, 5)
vbox.pack_start(val_label, true, true, 0)
val_label.text = "0"
hbox = Gtk::HBox.new(false, 0)
main_vbox.pack_start(hbox, false, true, 0)
button5 = Gtk::Button.new("Close")
button5.signal_connect("clicked"){destroy}
hbox.pack_start(button5, true, true, 5)
end
end

View File

@ -0,0 +1,89 @@
=begin header
statusbar.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Date: 2005/07/21 17:47:19 $
$Id: statusbar.rb,v 1.6 2005/07/21 17:47:19 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class StatusbarSample < SampleWindow
def initialize
super("statusbar")
set_border_width(5)
@counter = 1
vbox = Gtk::VBox.new(false, 5)
add(vbox)
statusbar = Gtk::Statusbar.new
vbox.pack_end(statusbar, true, true, 0)
statusbar.signal_connect("text_popped"){|o, mid, text|
@counter = 1 if text
puts "poped"
}
statusbar.signal_connect("text_pushed"){|o, mid, text|
# do nothing... as of gtk 1.2.6
puts "pushed"
}
button_push = Gtk::Button.new("push something")
vbox.add(button_push)
button_push.signal_connect("clicked"){
@counter += 1
statusbar.push(1, "something #{@counter}")
}
button_pop = Gtk::Button.new("pop")
vbox.add(button_pop)
button_pop.signal_connect("clicked"){
statusbar.pop(1)
}
button_steal = Gtk::Button.new("steal #4")
vbox.add(button_steal)
button_steal.signal_connect("clicked"){
statusbar.remove(1, 4)
}
button_context = Gtk::Button.new("test contexts")
vbox.add(button_context)
button_context.signal_connect("clicked"){
["any context", "idle messages", "some text",
"hit the mouse", "hit the mouse2"].each do |str|
puts "Gtk::StatusBar: context=\"#{str}\", context_id=#{statusbar.get_context_id(str)}"
end
}
vbox.add(Gtk::HSeparator.new)
button_close = Gtk::Button.new("close")
button_close.signal_connect("clicked"){destroy}
vbox.add(button_close)
end
end

View File

@ -0,0 +1,92 @@
/* XPM */
static char *openfile[] = {
/* width height num_colors chars_per_pixel */
" 20 19 66 2",
/* colors */
".. c None",
".# c #000000",
".a c #dfdfdf",
".b c #7f7f7f",
".c c #006f6f",
".d c #00efef",
".e c #009f9f",
".f c #004040",
".g c #00bfbf",
".h c #ff0000",
".i c #ffffff",
".j c #7f0000",
".k c #007070",
".l c #00ffff",
".m c #00a0a0",
".n c #004f4f",
".o c #00cfcf",
".p c #8f8f8f",
".q c #6f6f6f",
".r c #a0a0a0",
".s c #7f7f00",
".t c #007f7f",
".u c #5f5f5f",
".v c #707070",
".w c #00f0f0",
".x c #009090",
".y c #ffff00",
".z c #0000ff",
".A c #00afaf",
".B c #00d0d0",
".C c #00dfdf",
".D c #005f5f",
".E c #00b0b0",
".F c #001010",
".G c #00c0c0",
".H c #000f0f",
".I c #00007f",
".J c #005050",
".K c #002f2f",
".L c #dfcfcf",
".M c #dfd0d0",
".N c #006060",
".O c #00e0e0",
".P c #00ff00",
".Q c #002020",
".R c #dfc0c0",
".S c #008080",
".T c #001f1f",
".U c #003f3f",
".V c #007f00",
".W c #00000f",
".X c #000010",
".Y c #00001f",
".Z c #000020",
".0 c #00002f",
".1 c #000030",
".2 c #00003f",
".3 c #000040",
".4 c #00004f",
".5 c #000050",
".6 c #00005f",
".7 c #000060",
".8 c #00006f",
".9 c #000070",
"#. c #7f7f80",
"## c #9f9f9f",
/* pixels */
"........................................",
"........................................",
"........................................",
".......................#.#.#............",
".....................#.......#...#......",
"...............................#.#......",
".......#.#.#.................#.#.#......",
".....#.y.i.y.#.#.#.#.#.#.#..............",
".....#.i.y.i.y.i.y.i.y.i.#..............",
".....#.y.i.y.i.y.i.y.i.y.#..............",
".....#.i.y.i.y.#.#.#.#.#.#.#.#.#.#.#....",
".....#.y.i.y.#.s.s.s.s.s.s.s.s.s.#......",
".....#.i.y.#.s.s.s.s.s.s.s.s.s.#........",
".....#.y.#.s.s.s.s.s.s.s.s.s.#..........",
".....#.#.s.s.s.s.s.s.s.s.s.#............",
".....#.#.#.#.#.#.#.#.#.#.#..............",
"........................................",
"........................................",
"........................................"
};

View File

@ -0,0 +1,181 @@
#!/usr/bin/env ruby
=begin header
testgtk.rb - testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2006 Ruby-GNOME2 Project Team
$Id: testgtk.rb,v 1.16 2006/06/17 13:18:12 mutoh Exp $
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
$:.unshift(File.dirname(__FILE__))
require 'gtk2'
require 'sample'
require 'button'
require 'checkbutton'
require 'togglebutton'
require 'radiobutton'
require 'buttonbox'
require 'toolbar'
require 'statusbar'
require 'reparent'
require 'pixmap'
require 'tooltips'
require 'labels'
require 'layout'
require 'menu'
require 'scrolledwindow'
require 'entry'
require 'spinbutton'
require 'colorselect'
require 'dialog'
require 'range'
require 'rulers'
require 'notebook'
require 'shapedwindow'
require 'wmhints'
require 'progressbar'
require 'gammacurve'
require 'savedposition'
require 'filesel'
require 'fontselection'
#
# Main Window
#
def create_main_window
buttons = [
["button box", ButtonBoxSample],
["buttons", ButtonSample],
["check buttons", CheckButtonSample],
["color selection", ColorSelectionSample],
["dialog", DialogSample],
["entry", EntrySample],
["file selection", FileSelectionSample],
["font selection", FontSelectionSample],
["gamma curve", GammaCurveSample],
["labels", LabelSample],
["layout", LayoutSample],
["menus", MenuSample],
["notebook", NotebookSample],
["pixmap", PixmapSample],
["progress bar", ProgressBarSample],
["radio buttons", RadioButtonSample],
["range controls", RangeSample],
["reparent", ReparentSample],
["rulers", RulerSample],
["saved position", SavedPositionSample],
["scrolled windows", ScrolledWindowSample],
["shapes", ShapesSample],
["spinbutton", SpinButtonSample],
["statusbar", StatusbarSample],
["toggle buttons", ToggleButtonSample],
["toolbar", ToolbarSample],
["tooltips", TooltipsSample],
["WM hints", WMHintsSample],
]
nbuttons = buttons.size
window = Gtk::Window.new
window.name = "main window"
window.set_default_size(200, 400)
window.move(20, 20)
window.signal_connect("destroy"){Gtk.main_quit}
box1 = Gtk::VBox.new(false, 0)
window.add(box1)
label = Gtk::Label.new("Gtk+ v#{Gtk::MAJOR_VERSION}.#{Gtk::MINOR_VERSION}.#{Gtk::MICRO_VERSION}")
box1.pack_start(label, false, false, 0)
label = Gtk::Label.new("Ruby/GTK2 v#{Gtk::BINDING_VERSION.join(".")}")
box1.pack_start(label, false, false, 0)
scrolled_window = Gtk::ScrolledWindow.new(nil, nil)
scrolled_window.border_width = 10
scrolled_window.set_policy(Gtk::POLICY_AUTOMATIC,
Gtk::POLICY_AUTOMATIC)
box1.pack_start(scrolled_window, true, true, 0)
box2 = Gtk::VBox.new(false, 0)
box2.border_width = 10
scrolled_window.add_with_viewport(box2);
box2.focus_vadjustment = scrolled_window.vadjustment
buttons.each do |title, sample_class|
button = Gtk::Button.new(title)
unless sample_class.nil?
button.signal_connect("clicked"){|obj|
sample_class.invoke
}
else
button.sensitive = false
end
box2.pack_start(button, true, true, 0)
end
box1.pack_start(Gtk::HSeparator.new, false, true, 0)
button = Gtk::Button.new("close")
button.signal_connect("clicked") do
window.destroy
Gtk.main_quit
end
box1.pack_start(button, false, true, 5)
window.show_all
end
def main
srand
Gtk::RC.parse("testgtkrc")
create_main_window
Gtk.main
end
if $DEBUG
$stderr.sync = true
Thread.start do
loop do
STDERR.print("+")
GC.start
sleep(1)
end
end
$stderr.puts("#{$0}: started GC-thread for debugging.")
# timeout
Gtk.timeout_add(1000) do
$stderr.print("*")
true
end
end
main
puts("#{$0}: done.")

View File

@ -0,0 +1,146 @@
# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
# include "rc-file"
#
# style <name> [= <name>]
# {
# <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>
# testgtkrc2 sets all the buttons in the main window to blue by default
include "testgtkrc2"
#include "/usr/local/share/themes/Pixmap/gtk/gtkrc"
#include "/usr/local/share/themes/Redmond95/gtk/gtkrc"
#include "/usr/local/share/themes/Metal/gtk/gtkrc"
#include "/usr/local/share/themes/Notif/gtk/gtkrc"
#include "/usr/local/share/themes/Default/gtk/gtkrc"
#pixmap_path "."
style "defaultfont"
{
# fontset = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*,*"
font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
}
# common default
class "GtkWidget" style "defaultfont"
style "window"
{
# bg_pixmap[NORMAL] = "marble.xpm"
}
style "scale"
{
fg[NORMAL] = { 1.0, 0, 0 }
bg_pixmap[NORMAL] = "<parent>"
}
style "button" = "default"
{
# fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
# bg[PRELIGHT] = { 0, 0, 0.75 }
# bg[PRELIGHT] = { 0.75, 0, 0x00 }
}
style "toggle_button" = "button"
{
fg[NORMAL] = { 1.0, 0, 0 }
fg[ACTIVE] = { 1.0, 0, 0 }
# bg_pixmap[ACTIVE] = "check-y.xpm"
# bg_pixmap[NORMAL] = "check-n.xpm"
}
style "text"
{
bg_pixmap[NORMAL] = "marble.xpm"
text[NORMAL] = { 1.0, 1.0, 1.0 }
fg[NORMAL] = { 1.0, 1.0, 1.0 }
base[NORMAL] = { 0.0, 0.0, 0.0 }
}
style "slider"
{
fg[NORMAL] = { 1.0, 1.0, 1.0 }
bg[NORMAL] = { 0.0, 0.0, 1.0 }
bg[ACTIVE] = { 0.0 ,0.0, 0.5 }
bg[PRELIGHT] = { 0.75 ,0.75, 1.0 }
}
style "ruler"
{
font = '-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*'
}
style "curve"
{
fg[NORMAL] = { 58000, 0, 0 } # red
}
style "red-bar"
{
bg[PRELIGHT] = { 0.95, .55, 0.55 }
}
# override testgtk2, introduce the green color in the button list
style 'button_list' = 'button'
{
font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
bg[PRELIGHT] = { 0, 0.75, 0x00 }
}
widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
class "GtkScrollbar" style "red-bar"
widget_class "GtkWindow" style "window"
widget_class "GtkDialog" style "window"
widget_class "GtkFileSelection" style "window"
widget_class "*Gtk*Scale" style "scale"
widget_class "*GtkCheckButton*" style "toggle_button"
widget_class "*GtkRadioButton*" style "toggle_button"
widget_class "*GtkButton*" style "button"
widget_class "*Ruler" style "ruler"
widget_class "*GtkText" style "text"
widget "*GtkCurve" style "curve"
binding "test1"
{
bind "<ctrl>1" {
"debug-msg" ("jup!")
}
}
binding "test2"
{
bind "<ctrl>1" {
"debug-msg" ("hallo and")
"debug-msg" ("huhu")
}
}
# possible priorities are (in ascending order):
# lowest
# gtk (used by gtk for internal class bindings)
# application (for hard coded bindings on application basis)
# rc (used implicitel by rc files)
# highest
class "GtkCList" binding "test1" # implicit : rc
#class "GtkWindow" binding : highest "test2" # override "rc" priority
binding "clist-test"
{
bind "j" {
"scroll-vertical" (step-backward, 0.0)
}
bind "k" {
"scroll-vertical" (step-forward, 0.0)
}
}
class "GtkCList" binding "clist-test"

View File

@ -0,0 +1,21 @@
# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
# include "rc-file"
#
# style <name> [= <name>]
# {
# <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>
# this file gets included from testgtkrc
style 'main_buttons' = 'button'
{
font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
bg[PRELIGHT] = { 0, 0, 0.75 }
}
widget "main window.*GtkButton*" style "main_buttons"

View File

@ -0,0 +1,53 @@
=begin header
togglebutton.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Date: 2005/07/21 17:47:19 $
$Id: togglebutton.rb,v 1.6 2005/07/21 17:47:19 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class ToggleButtonSample < SampleWindow
def initialize
super("toggle buttons")
set_border_width(5)
vbox = Gtk::VBox.new(false, 5)
add(vbox)
(1..3).each do |i|
vbox.add(Gtk::ToggleButton.new("button#{i}"))
end
vbox.pack_start(Gtk::HSeparator.new, false, true, 0)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
vbox.add(button)
end
end

View File

@ -0,0 +1,82 @@
=begin header
toolbar.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
Rewritten by Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
$Id: toolbar.rb,v 1.7 2005/07/21 17:47:19 mutoh Exp $
Original Copyright:
GTK - The GIMP Toolkit
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
=end
require 'sample'
class ToolbarSample < SampleWindow
def initialize
super("Toolbar test")
toolbar = Gtk::Toolbar.new
toolbar.append("Horizontal", "Horizontal toolbar layout",
"Toolbar/Horizontal", Gtk::Image.new("test.xpm")){
toolbar.orientation = Gtk::ORIENTATION_HORIZONTAL
}
toolbar.append("Vertical", "Vertical toolbar layout",
"Toolbar/Vertical", Gtk::Image.new("test.xpm")){
toolbar.orientation = Gtk::ORIENTATION_VERTICAL
}
toolbar.append_space
toolbar.append("Icons", "Only show toolbar icons",
"Toolbar/IconsOnly", Gtk::Image.new("test.xpm")){
toolbar.toolbar_style = Gtk::Toolbar::ICONS
}
toolbar.append("Text", "Only show toolbar text", "Toolbar/TextOnly",
Gtk::Image.new("test.xpm")){
toolbar.toolbar_style = Gtk::Toolbar::TEXT
}
toolbar.append("Both", "Show toolbar icons and text", "Toolbar/Both",
Gtk::Image.new("test.xpm")){
toolbar.toolbar_style = Gtk::Toolbar::BOTH
}
toolbar.append_space
toolbar.append(Gtk::Entry.new, "This is an unusable Gtk::Entry ;)",
"Hey don't click me!!!")
toolbar.append_space
toolbar.append("Enable", "Enable tooltips", nil,
Gtk::Image.new("test.xpm")){
toolbar.tooltips = true
}
toolbar.append("Disable", "Disable tooltips", nil,
Gtk::Image.new("test.xpm")){
toolbar.tooltips = false
}
add(toolbar)
end
end

View File

@ -0,0 +1,41 @@
=begin
tooltips.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: tooltips.rb,v 1.6 2005/07/21 17:47:19 mutoh Exp $
=end
require 'sample'
class TooltipsSample < SampleWindow
def initialize
super("Tooltips")
set_default_size(200, -1)
set_border_width(5)
tooltips = Gtk::Tooltips.new
button = Gtk::ToggleButton.new("button1")
tooltips.set_tip(button,"This is button 1", "ContextHelp/buttons/1")
button2 = Gtk::ToggleButton.new("button2")
tooltips.set_tip(button2,
"This is button 2. This is also a really long tooltip which probably won't fit on a single line and will therefore need to be wrapped. Hopefully the wrapping will work correctly.",
"ContextHelp/buttons/2_long")
vbox = Gtk::VBox.new(false, 10)
vbox.add(button)
vbox.add(button2)
vbox.add(Gtk::HSeparator.new)
button4 = Gtk::Button.new("close")
button4.signal_connect("clicked"){destroy}
vbox.pack_start(button4)
tooltips.set_tip(button4, "Push this button to close window", "ContextHelp/buttons/Close")
add(vbox)
end
end

View File

@ -0,0 +1,40 @@
=begin header
wmhints.rb - a part of testgtk.c rewritten in Ruby/GTK2
Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
$Id: wmhints.rb,v 1.8 2005/07/21 17:47:19 mutoh Exp $
=end
require 'sample'
class WMHintsSample < SampleWindow
def initialize
super("WM Hints")
realize
circles = Gdk::Pixmap.create_from_xbm(window, "circles.xbm")
window.set_icon(nil, circles, circles)
window.icon_name = "WMHints Test Icon"
window.decorations = Gdk::Window::DECOR_ALL | Gdk::Window::DECOR_MENU
window.functions = Gdk::Window::FUNC_ALL | Gdk::Window::FUNC_RESIZE
vbox = Gtk::VBox.new(false, 10)
add(vbox)
label = Gtk::Label.new("Try iconizing me!")
label.set_size_request(150, 50)
vbox.pack_start(label, true, true, 0)
vbox.pack_start(Gtk::HSeparator.new, false, true, 0)
button = Gtk::Button.new("close")
button.signal_connect("clicked"){destroy}
vbox.pack_start(button, true, true, 0)
button.can_default = true
button.grab_default
end
end