Hi,
The Ruby-GNOME2 project released Ruby-GNOME2 1.2.0:
http://ruby-gnome2.sourceforge.jp/hiki.cgi?News_20130124_1
Ruby/GTK3 that is bindings for GTK+ 3 is added!
You can install it by the following command:
gem install gtk3
We also uploaded a gem that includes binary for Windows. You
can use Ruby/GTK3 by the above command.
(But I didn’t try it on Windows. If you have Windows, please
try and tell us result.)
This release also adds bindings for Clutter and Clutter-GTK.
They are implemented by GObject Introspection.
== Help us!
We want to replace existing bindings by GObject
Introspection based bindings. If the bindings is GObject
Introspection ready. To be specific, first we want to
replace Ruby/GStreamer and Ruby/GooCanvas with GObject
Introspection based bindings. We want you to help us for the
work.
GStreamer and GooCanvas has many API. So their bindings
aren’t completed yet. Their bindings are still
“experimental”. And their bindings don’t support the latest
version yet. (GStreamer 1.0.0 had been released!)
If we get GObject Introspection based bindings, we can
support the latest version semi automatically. Both
developers and users will be happy.
To be specific, we want you to port sample programs for them
to Ruby.
We create raw GObject Introspection based bindings of them.
For GStreamer:
https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gstreamer/sample/gst-gi.rb
For GooCanvas:
https://github.com/ruby-gnome2/ruby-gnome2/blob/master/goocanvas/sample/goocanvas-gi.rb
We want you to port sample programs of GStreamer and
GooCanvas to Ruby by requiring those bindings.
Here are work flows to start the work.
For GStreamer:
% gem install gobject-introspection
% git clone [email protected]:ruby-gnome2/ruby-gnome2.git
% cd ruby-gnome2/gstreamer
% cd vim sample/xxx.rb
require “gst-gi”
Gst.init
Port a sample
% ruby -I sample sample/xxx.rb
You can find samples for GStreamer at
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/tests/examples/
For example:
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/tests/examples/helloworld/helloworld.c
For GooCanvas:
% gem install gobject-introspection
% git clone [email protected]:ruby-gnome2/ruby-gnome2.git
% cd ruby-gnome2/goocanvas
% cd vim sample/xxx.rb
require “goocanvas-gi”
Port a sample
% ruby -I sample sample/xxx.rb
You can find samples for GooCanvas at
demo · master · GNOME / goocanvas · GitLab
We are happy that you send a pull request for a sample.
You may find a sample that can’t be ported well. If you find
it, please tell us by pull request or sending an email to
this mailing list. The sample may use a feature that is not
implemented in Ruby/GObjectIntrospection.
== Ruby-GNOME2 1.2.0: 2013-01-24
GTK+ 3 support release!
=== Changes
==== All
- Added ruby-gtk3 package. Here is a list:
- Ruby/GLib2
- Ruby/ATK
- Ruby/Pango
- Ruby/GdkPixbuf2
- Ruby/GDK3
- Ruby/GTK3
==== Ruby/GLib2
- Improvements
- Supported custom VALUE ↔ GBoxed conversion
- Supported VALUE ↔ GBoxed conversion by RVAL2GOBJ
- Added GLib::Source::REMOVE
- Added GLib::Source::CONTINUE
- Added rbgobj_make_boxed_raw()
- Added GLib::Value for internal use
- [windows] Updated to the latest GLib: 2.28.8-1 → 2.34.3
- Changes
- Removed deprecated GLib::Win32.get_package_installation_directory
- Removed deprecated
GLib::Win32.get_package_installation_subdirectory - Added user_data to RGConvertTable callbacks
- rbgobj_convert_define() copies passed RGConvertTable
- Removed deprecated G_DEF_FUNDAMENTAL. Use RG_DEF_CONVERSION
instead
==== Ruby/GIO2
- Improvements
- Installed headers
==== Ruby/ATK
- Improvements
- [windows] Updated to the latest ATK: 1.32.0 → 2.6.0
==== Ruby/Pango
- Improvements
- [windows] Updated to the latest Pango: 1.28.3 → 1.32.6
==== Ruby/GdkPixbuf2
- Improvements
- [windows] Updated to the latest gdk-pixbuf: 2.24.0 → 2.26.5
==== Ruby/GTK2
- Improvements
- Removed needless not copy flag from Allocation
- [windows] Updated to the latest GTK+ 2: 2.24.8 → 2.24.14
==== Ruby/GDK3
- Improvements
- [windows] Supported: 3.6.4
==== Ruby/GTK3
- Improvements
- Removed needless not copy flag from Allocation
- [windows] Supported: 3.6.4
==== Ruby/GObjectIntrospection
- Improvements
- Supported over loaded method
- Supported over loaded constructor
- Supported GBoxed object
- Supported char *
- Supported GInterface
- Supported CallableInfo
- Supported may be null
- Supported union object
- Supported not GBoxed struct
- Supported out parameter
- Supported C array
- Added “?” suffix to predicate method name
- Supported SourceFunc callback
- Supported GValue
- Added GObjectIntrospection::Loader.register_boxed_class_converter
- Supported inout parameter
- Supported binary data array
- Changes
- ArgInfo#[] → ArgInfo#get_arg
==== Ruby/CairoGObject
- Added
==== Ruby/Clutter
- Added
==== Ruby/ClutterGtk
- Added
Thanks,
kou