# Ruby-GNOME2 1.2.3

**URL:** <https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481>\
**Category:** Ruby\
**Created:** [March 17, 2013, 2:28pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481 "2013-03-17T14:28:11Z")\
**Posts on this page:** 8\
**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 17, 2013, 2:28pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/1 "2013-03-17T14:28:11Z")

</div>

Hi,

The Ruby-GNOME2 project released Ruby-GNOME2 1.2.3.

Ruby-GNOME2 is a multi platform GUI library for Ruby based  
on GTK+ GUI toolkit.

Ruby-GNOME2 1.2.3 supports Ruby 2.0.0! Gems for Windows  
includes binaries for Ruby 1.9.3 and Ruby 2.0.0.

Web:  
[http://ruby-gnome2.sourceforge.jp/](http://ruby-gnome2.sourceforge.jp/)

Install:  
gem install gtk2  
gem install gtk3

= About Ruby-GNOME2

Ruby-GNOME2 is a set of Ruby language bindings for the GTK+  
2.x and GNOME 2.x development environment.

We need help:  
[http://sourceforge.net/mailarchive/message.php?msg\_id=30609974](http://sourceforge.net/mailarchive/message.php?msg_id=30609974)

= About GTK+

from [http://www.gtk.org/](http://www.gtk.org/)

GTK+ is a highly usable, feature rich toolkit for creating  
graphical user interfaces which boasts cross platform  
compatibility and an easy to use API. GTK+ it is written  
in C, but has bindings to many other popular programming  
languages such as C++, Python and C# among others. GTK+ is  
licensed under the GNU LGPL 2.1 allowing development of  
both free and proprietary software with GTK+ without any  
license fees or royalties.

= About GNOME

from [http://www.gnome.org/about/](http://www.gnome.org/about/)

The GNOME project provides two things: The GNOME desktop  
environment, an intuitive and attractive desktop for  
users, and the GNOME development platform, an extensive  
framework for building applications that integrate into  
the rest of the desktop.

Thanks,

---

<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 18, 2013, 5:17pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/2 "2013-03-18T17:17:31Z")

</div>

Testing on Windows 7, Ruiby 2.0.0

- ruby installer Ruby 2.0.0-p0,
- devkit DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe)

Compiling json, eventmachine, ok…

> Ruby-GNOME2 1.2.3 supports Ruby 2.0.0! Gems for Windows  
> includes binaries for Ruby 1.9.3 and Ruby 2.0.0.  
> Install:  
> gem install gtk2

Ok for windows, but error installing gtksourceview2 :  
d:/usr/Ruby/Ruby200/bin/ruby.exe extconf.rb  
…  
checking for new allocation framework… yes  
checking for attribute assignment… no  
checking for cairo… yes  
checking for rb\_cairo.h… no  
checking for Win32 OS… yes  
checking for gtksourceview-2.0… no  
checking for brew… no  
checking for port… no  
\*\*\* extconf.rb failed \*\*\*

> gem install gtk3

Nok 🙂

error compilling cairo-1.12.4-x86-mingw32 : cairo.h  
:No such file or directory

(gem\_make.out in attachment)

my gems:

> ls -1 d:/usr/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems  
> Ruiby-0.58.0  
> atk-1.2.3-x86-mingw32  
> cairo-1.12.4-x86-mingw32  
> eventmachine-1.0.3  
> ffi-1.4.0-x86-mingw32  
> gdk3-1.2.3-x86-mingw32  
> gdk\_pixbuf2-1.2.3-x86-mingw32  
> gio2-1.2.3-x86-mingw32  
> glib2-1.2.3-x86-mingw32  
> gtk2-1.2.3  
> gtk2-1.2.3-x86-mingw32  
> gtk3-1.2.3  
> gtksourceview2-1.2.3  
> json-1.7.7  
> pango-1.2.3-x86-mingw32

Regards,

---

<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 20, 2013, 2:54pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/3 "2013-03-20T14:54:30Z")

</div>

> > gem update --system

That’s work !

> gem install gtksourceview2  
> ok!  
> gem install gtk3  
> ok!  
> ruby -e " p Gem::VERSION "  
> “2.0.3”

Thank you, ( or perhaps ‘Thank 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 20, 2013, 6:18pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/4 "2013-03-20T18:18:35Z")

</div>

Sorry, some more issues on windows …

- gtksourceview2-1.2.3-x86-mingw32  
lib/2.0/gtksourceview2.so  
seem to be corrupted: LoadError when require it

- goocanvas  
cant find a mingw32 version

- FileChooserDialog  
popup (ruby.exe:3316 : GLib-GIO-ERROR\*\*: No GSettings schemas  
are installed on the system)  
and exit

- Colors in Greybird style : in  
gdk3-1.2.3-x86-mingw32\vendor\local\share\themes\Greybird\gtk-3.0\gtk.css  
thank you to replace theme\_Xg\_color by :

@define-color theme\_bg\_color #fafafa;  
@define-color theme\_fg\_color #3c3c00;

(this color definitions was my modification, a few month ago, in the  
Greybird style : on windows, theme\_\* are not defined !)

---

<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 19, 2013, 2:24pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/5 "2013-03-19T14:24:07Z")

</div>

Hi,

Thanks for trying it.

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: Ruby-GNOME2 1.2.3” on Tue, 19 Mar 2013 01:17:33 +0900,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Testing on Windows 7, Ruiby 2.0.0
> 
> - ruby installer Ruby 2.0.0-p0,
> - devkit DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe)

Ruby-GNOME2 packages don’t require DevKit because  
Ruby-GNOME2 packages for Windows bundle binaries.

> > Ruby-GNOME2 1.2.3 supports Ruby 2.0.0! Gems for Windows  
> > includes binaries for Ruby 1.9.3 and Ruby 2.0.0.  
> > Install:  
> > gem install gtk2
> 
> Ok for windows, but error installing gtksourceview2 :  
> d:/usr/Ruby/Ruby200/bin/ruby.exe extconf.rb

Umm… Could you confirm that your gem installs  
gtksourceview2-1.2.3-x86-mingw32(\*1) instead of  
gtksourceview2-1.2.3(\*2)?

(\*1) [gtksourceview2 | RubyGems.org | your community gem host](https://rubygems.org/gems/gtksourceview2/versions/1.2.3-x86-mingw32)  
(\*2) [gtksourceview2 | RubyGems.org | your community gem host](https://rubygems.org/gems/gtksourceview2/versions/1.2.3)

-x86-mingw32 version bundles binaries. So building isn’t  
run.

If your gem want to install -x86-mingw32 version but want to  
start building, please update your gem like the following:

> gem update --system

It may fix it.

> > gem install gtk3
> 
> Nok 🙂
> 
> error compilling cairo-1.12.4-x86-mingw32 : cairo.h  
> :No such file or directory

It seems that this is also the same problem. x86-mingw32  
version should not start building. Please update your gem  
and try again.

Thanks,

---

<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 21, 2013, 1:20pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/6 "2013-03-21T13:20:36Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: Ruby-GNOME2 1.2.3” on Thu, 21 Mar 2013 02:18:38 +0900,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Sorry, some more issues on windows …

No problem. Thanks for trying it. 🙂

> - gtksourceview2-1.2.3-x86-mingw32  
> lib/2.0/gtksourceview2.so  
> seem to be corrupted: LoadError when require it

Umm… Does it work on Ruby 1.9.3? Could you try it?

> - goocanvas  
> cant find a mingw32 version

Sorry. There is no plan to release it. I want to release it  
as GObject Introspection based bindings. But GObject  
Introspection can’t be cross compiled on Linux. :\<

> - FileChooserDialog  
> popup (ruby.exe:3316 : GLib-GIO-ERROR\*\*: No GSettings schemas  
> are installed on the system)

I will fix it in the next release.

> - Colors in Greybird style : in  
> gdk3-1.2.3-x86-mingw32\vendor\local\share\themes\Greybird\gtk-3.0\gtk.css  
> thank you to replace theme\_Xg\_color by :
> 
> @define-color theme\_bg\_color #fafafa;  
> @define-color theme\_fg\_color #3c3c00;
> 
> (this color definitions was my modification, a few month ago, in the  
> Greybird style : on windows, theme\_\* are not defined !)

Really? It seems that there are theme\_\* definitions:

[https://github.com/shimmerproject/Greybird/blob/master/gtk-3.0/gtk.css](https://github.com/shimmerproject/Greybird/blob/master/gtk-3.0/gtk.css)

@define-color theme\_bg\_color @bg\_color;  
@define-color theme\_fg\_color @fg\_color;

and bg\_color and fg\_color are defined at the top:

@define-color bg\_color #cecece;  
@define-color fg\_color #3c3c3c;

Am I misunderstood?

Thanks,

---

<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 23, 2013, 8:36am UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/7 "2013-03-23T08:36:32Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: Ruby-GNOME2 1.2.3” on Fri, 22 Mar 2013 01:09:24 +0900,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> what is gtsourceview3 ? do i need it for use sourceView with gtk3 ?

Yes. You need to use gtksourceview3 for gtk3. You cannot  
use gtksourceview2 with gtk2.

> > > - goocanvas  
> > > Sorry. There is no plan to release it…
> 
> Too bad, i wanted switch to gtk3 for get goocanvas …

If we compile GObject Introspection for Windows on Linux, we  
can provide it. But it requires Python…

> I do not know why, but the references of @bg\_color and @fg\_color  
> do not work in definition of theme\_bg\_color and theme\_fg\_color,  
> so my propositoion for obtain a correct look on windows :
> 
> @define-color theme\_bg\_color #fafafa;  
> @define-color theme\_fg\_color #000000;

Could you show me a sample program, expected screenshot  
(maybe you use modified gtk3.css) and actual screenshot (you  
use the original gtk3.css)? I will try it on Windows.

Thanks,

---

<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 21, 2013, 5:09pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-2-3/227481/8 "2013-03-21T17:09:21Z")

</div>

> > seem to be corrupted: LoadError when require it  
> > Umm… Does it work on Ruby 1.9.3? Could you try it?

gtk2/gtsourceview2 it is ok, with :

gtk2 1.2.3 =\> atk:\>= 1.2.3 / pango:\>= 1.2.3 /  
gtksourceview2 1.2.3 =\> gtk2:\>= 1.2.3

With gtk3/gtsourceview2 i got:  
%%%%%%%%%%%% cannot load such file – ./2.0/gtksourceview2.so

from modified  
gtksourceview2-1.2.3-x86-mingw32\lib\gtksourceview2.rb as  
begin  
major, minor, micro, = RUBY\_VERSION.split(/./)  
require “./#{major}.#{minor}/gtksourceview2.so”  
rescue LoadError =\> e  
puts “%%%%%%%%%%%% #{e}”  
require “gtksourceview2.so”  
end

what is gtsourceview3 ? do i need it for use sourceView with gtk3 ?

> > - goocanvas  
> > Sorry. There is no plan to release it…

Too bad, i wanted switch to gtk3 for get goocanvas …

> > - Colors in Greybird style : in  
> > @define-color theme\_bg\_color @bg\_color;  
> > @define-color theme\_fg\_color @fg\_color;  
> > @define-color bg\_color #cecece;  
> > @define-color fg\_color #3c3c3c;
> 
> Am I misunderstood?

I had use an other version.

I do not know why, but the references of @bg\_color and @fg\_color  
do not work in definition of theme\_bg\_color and theme\_fg\_color,  
so my propositoion for obtain a correct look on windows :

@define-color theme\_bg\_color #fafafa;  
@define-color theme\_fg\_color #000000;

Regards,
