# \[ANN\] Ruby-GNOME2 1.2.4

**URL:** <https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679>\
**Category:** Ruby-Gnome 2\
**Created:** [March 24, 2013, 12:29pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679 "2013-03-24T12:29:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [March 24, 2013, 12:29pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679/1 "2013-03-24T12:29:52Z")

</div>

Hi,

The Ruby-GNOME2 project released Ruby-GNOME2 1.2.4:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?News\_20130324\_1](http://ruby-gnome2.sourceforge.jp/hiki.cgi?News_20130324_1)

This release adds Ruby/WebKitGtk2. It is for GTK+ 2.

== Help us!

=== About Ruby/GTK3

Many sample programs for Ruby/GTK3 aren’t migrated from  
Ruby/GTK2. They reports many warnings. We want to migrate  
all sample programs from Ruby/GTK2. We want you to help us  
for the work.

Here are work flows to start the work.

% gem install gtk3  
% git clone removed\_email\_address@domain.invalid:ruby-gnome2/ruby-gnome2.git  
% cd ruby-gnome2/gtk3/gtk-demo  
% ruby main.rb # reports many warnings  
% vim xxx.rb # You fix warnings and errors  
# See Ruby/GTK2 version program to confirm the expected behavior:  
# % cd ${RUBY\_GNOME2\_TOP\_DIR}/gtk2/gtk-demo  
# % ruby main.rb  
# And see also the original sample programs in GTK+ 3:  
# [Sign in · GitLab](https://git.gnome.org/browse/gtk+/tree/demos/gtk-demo)  
# We may have some missing samples. If you find some  
# missing samples, please port it to Ruby/GTK3.

We are happy that you send a pull request for the work.

The above work flows for gtk-demo but there are more samples  
in gtk3/misc/ and gtk3/testgtk/. We want you to help us for  
the samples.

=== About GObject Introspection bindings

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 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 removed\_email\_address@domain.invalid:ruby-gnome2/ruby-gnome2.git  
% cd ruby-gnome2/gstreamer-gi  
% vim sample/xxx.rb  
require “gst”  
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/](http://cgit.freedesktop.org/gstreamer/gstreamer/tree/tests/examples/)

For example:  
[http://cgit.freedesktop.org/gstreamer/gstreamer/tree/tests/examples/helloworld/helloworld.c](http://cgit.freedesktop.org/gstreamer/gstreamer/tree/tests/examples/helloworld/helloworld.c)

For GooCanvas:

% gem install gobject-introspection  
% git clone removed\_email\_address@domain.invalid:ruby-gnome2/ruby-gnome2.git  
% cd ruby-gnome2/goocanvas  
% 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](http://git.gnome.org/browse/goocanvas/tree/demo)

And we want to use GObject Introspection for new bindings  
such as Ruby/WebKitGTK. There are the bindings but it  
doesn’t have ported samples. We need to port WebKitGTK+  
samples to create usable API. Here is work flow to start the  
work:

% gem install gobject-introspection  
% git clone removed\_email\_address@domain.invalid:ruby-gnome2/ruby-gnome2.git  
% cd ruby-gnome2/webkit-gtk  
% vim sample/xxx.rb  
require “webkit-gtk”  
WebKitGtk.init

# Port a sample

% ruby -I sample sample/xxx.rb

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.4: 2013-03-24

Ruby/WebKitGtk2 addition release!

=== Changes

==== All

- Improvments
  - Start mswin64 support. (But it is not completed yet.)  
[GitHub #135] [Patch by usa]

==== Ruby/GLib2

- Imrpvoments
  - Reduce needless GBoxed object copy.

==== Ruby/GdkPixbuf2

- Fixes
  - Fix build error by a typo.

==== Ruby/GtkSourceView2

- Improvements
  - Support auto RPM install on CentOS 6.

==== Ruby/GObjectIntrospection

- Improvements
  - Add method name to arguments validation failure message.
  - Support specific version loading.

==== Ruby/GTK3

- Improvements
  - [windows] Add gschemas.compiled.  
[ruby-talk:406026] [Reported by Regis d’Aubarede]

==== Ruby/WebKitGtk2

- New!  
[GitHub #136] [Patch by eumario]

=== Thanks

- usa
- Regis d’Aubarede
- eumario

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [March 25, 2013, 4:58pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679/2 "2013-03-25T16:58:09Z")

</div>

for styles comparison, see snapshots at :  
[http://raubarede.tumblr.com/gtk3](http://raubarede.tumblr.com/gtk3)  
this come from Ruiby gem, command

> ruiby\_demo3

All work good with 1.2.4, even gtksourceview3…

Oups: on Gtk.main\_quit  
test\_gtk3.rb: [BUG] Segmentation fault  
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]

## – Control frame information

c:0001 p:0000 s:0002 E:001f9c TOP [FINISH]

– C level backtrace information  
-------------------------------------------bye,

bye,

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [March 27, 2013, 11:20pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679/3 "2013-03-27T23:20:18Z")

</div>

loaded 1.2.5  
all good on windows !  
(except css…)

bye

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [April 6, 2013, 11:31am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679/4 "2013-04-06T11:31:36Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.4” on Wed, 27 Mar  
2013 23:20:18 +0100,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> loaded 1.2.5  
> all good on windows !  
> (except css…)

Sorry for my late response.  
I’ve confirmed no-good CSS.

I noticed that the default CSS for Windows that is bundled  
in GTK+ is improving in GTK+ 3.8.0. It seems that we should  
improve the default CSS instead of third party CSS such as  
Greybird. Because many users will be happy if the default  
CSS is good. 🙂

Could you try the work? Here is a work flow for the work:

1. Download the default CSS for Windows from  
[http://pub.cozmixng.org/~kou/archives/gtk-win32-custom.zip](http://pub.cozmixng.org/~kou/archives/gtk-win32-custom.zip)

2. Extract it into  
${GDK3\_GEM\_PATH}/vendor/local/share/themes/ folder.  
Here are expected folder layout:

3. Change “gtk-theme-name” to “gtk-win32-custom” in  
${GDK3\_GEM\_PATH}/vendor/local/etc/gtk-3.0/settings.ini.  
The value is “Greybird” by default.

4. Run your application and fix the following CSSs:

5. Send your fix to GTK+ development team or us.

Could you (or someone who uses Ruby/GTK3 on Windows) help us?

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [April 9, 2013, 6:36pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679/5 "2013-04-09T18:36:32Z")

</div>

> 1. Run your application and fix the following CSSs:
> 2. Send your fix to GTK+ development team or us.

This theme is good for me.

Snapshots (gtk3/GreyBird,gtk3/win32-xustom,gtk2)  
are at [http://raubarede.tumblr.com/gtk3](http://raubarede.tumblr.com/gtk3)

Thank you,

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [April 12, 2013, 1:50pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-4/227679/6 "2013-04-12T13:50:59Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.4” on Tue, 09 Apr  
2013 18:36:32 +0200,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 1. Run your application and fix the following CSSs:
> > 2. Send your fix to GTK+ development team or us.
> 
> This theme is good for me.
> 
> Snapshots (gtk3/GreyBird,gtk3/win32-xustom,gtk2)  
> are at [http://raubarede.tumblr.com/gtk3](http://raubarede.tumblr.com/gtk3)

Thanks for confirming it.  
I’ll remove Greybird theme at the next release. 🙂

## Thanks,

kou
