# \[ANN\] Ruby-GNOME2 1.2.0

**URL:** <https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372>\
**Category:** Ruby-Gnome 2\
**Created:** [January 24, 2013, 2:04pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372 "2013-01-24T14:04:35Z")\
**Posts on this page:** 18\
**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:** [January 24, 2013, 2:04pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/1 "2013-01-24T14:04:35Z")

</div>

Hi,

The Ruby-GNOME2 project released Ruby-GNOME2 1.2.0:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?News\_20130124\_1](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](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](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 removed\_email\_address@domain.invalid: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/](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  
% 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](http://git.gnome.org/browse/goocanvas/tree/demo)

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

---

<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:** [January 24, 2013, 9:22pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/2 "2013-01-24T21:22:30Z")

</div>

Hello,

After some test on windows (saples dir of Ruiby dsl), I got  
some issues:

- scratch ( require ‘gtksourceview2’ ?)
- styles bad : font policy changed, not pretty …
- many many deprecated :

22:in `initialize': 'Gtk::Window::POS_CENTER' has been deprecated. Use 'Gtk::Window::Position::CENTER' or ':center'. 27:in`stack’: ‘Gtk::VBox.new’ has been deprecated. Use  
‘Gtk::Box.new(:vertical, spacing)’.  
29:in `flow’: ‘Gtk::HBox.new’ has been deprecated. Use  
‘Gtk::Box.new(:horizontal, spacing)’.

928:in `calendar': 'Gtk::Calendar::SHOW_HEADING' has been deprecated. Use 'Gtk::Calendar::DisplayOptions::SHOW_HEADING' or ':show_heading'. 928:in`calendar’: ‘Gtk:📅:SHOW\_DAY\_NAMES’ has been deprecated.

Use ‘Gtk:📅:DisplayOptions::SHOW\_DAY\_NAMES’ or  
‘:show\_day\_names’.  
929:in `calendar’: ‘Gtk:📅:SHOW\_WEEK\_NUMBERS’ has been  
deprecated. Use ‘Gtk:📅:DisplayOptions::SHOW\_WEEK\_NUMBERS’ or  
‘:show\_week\_numbers’.

19:in `error': 'Gtk::MessageDialog::ERROR' has been deprecated. Use 'Gtk::MessageType::ERROR' or ':error'. 61:in`message’: ‘Gtk::Dialog::DESTROY\_WITH\_PARENT’ has been deprecated.  
Use ‘Gtk::Dialog:🎏:DESTROY\_WITH\_PARENT’ or ‘:destroy\_with\_parent’.  
61:in `message': 'Gtk::MessageDialog::QUESTION' has been deprecated. Use 'Gtk::MessageType::QUESTION' or ':question'. 62:in`message’: ‘Gtk::MessageDialog::BUTTONS\_CLOSE’ has been  
deprecated. Use ‘Gtk::MessageDialog::ButtonsType::CLOSE’ or ‘:close’.  
60:in `new’: ‘Gtk::MessageDialog#initialize(parent, flags, type,  
buttons\_type, message)’ style has been deprecated. Use  
‘Gtk::MessageDialog#initialize(:parent =\> nil, :flags =\> 0, :type =\>  
:info, :buttons\_type =\> :ok, :message =\> “”)’ style.  
. . .

Regards,  
Régis d’Aubarède

---

<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:** [January 24, 2013, 10:47pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/3 "2013-01-24T22:47:49Z")

</div>

Le jeudi 24 janvier 2013, Kouhei S. a crit :

> We also uploaded a gem that includes binary for Windows. You  
> Introspection based bindings. If the bindings is GObject  
> support the latest version semi automatically. Both  
> developers and users will be happy.

Wouhouu. Great, this is definitely what we need.  
Thank you for the work, I am using goocanvas and gstreamer bindings in  
my  
network monitoring tool written in ruby (  
[gnms | RubyGems.org | your community gem host](https://rubygems.org/gems/gnms/versions/2.1.0.rc2)) but got some  
segfaults  
with old gstreamer,  
I hope to find some time to test all this!

Regards,  
David

---

<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:** [January 26, 2013, 1:52am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/4 "2013-01-26T01:52:10Z")

</div>

Hi,

Thanks for trying Ruby/GTK3 on Windows!  
I’m happy that it can show a window even if it has some  
issues. 🙂

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.0” on Thu, 24 Jan  
2013 21:22:30 +0100,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> After some test on windows (saples dir of Ruiby dsl), I got  
> some issues:
> 
> - scratch ( require ‘gtksourceview2’ ?)
> - styles bad : font policy changed, not pretty …
> - many many deprecated :  
> …

Thanks for the report!  
Could you write patches to solve the issue? Or could  
someone help him to write patches? Or could some write  
patches for the reported issues?

It seems that some of them are not Windows specific  
issues. Someone on Linux such as Ubuntu will be able to help  
us. 🙂

Here is instruction to create a patch:

1. Install gtk3 gem:  
% gem install gtk3

2. Fork ruby-gnome2/ruby-gnome2 on GitHub:  
[GitHub - ruby-gnome/ruby-gnome: A set of bindings for the GNOME libraries to use from Ruby. · GitHub](https://github.com/ruby-gnome2/ruby-gnome2)  
See also: [Pull requests - GitHub Docs](https://help.github.com/articles/using-pull-requests)

3. Clone the repository:  
% git clone [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):#{YOUR\_ACCOUNT}/ruby-gnome2  
% cd ruby-gnome2/gtk3

4. Run samples:  
[ruby-gnome2/gtk3]% cd sample/gtk-demo  
[ruby-gnome2/gtk3/sample/gtk-demo]% ruby main.rb

5. Fix a issue:  
% editor XXX.rb  
% git add XXX.rb  
% git commit XXX.rb  
% git push

6. Send a pull request!  
See also again:  
[Pull requests - GitHub Docs](https://help.github.com/articles/using-pull-requests)

## 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:** [January 26, 2013, 2:19am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/5 "2013-01-26T02:19:02Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.0” on Fri, 25 Jan  
2013 16:13:28 +0100,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Here some more test on windows/Ruiby :

Thanks again!

> DrawingArea : no such signal: expose-event  
> (what is new name for it?)

It seems that “draw” signal:  
[Gtk – 3.0](http://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-draw)

The following code will work:

drawing\_area.signal\_connect(“draw”) do |cairo\_context|  
# …  
end

The following sample code will help you to use cairo\_context:  
[rcairo/samples/pac.rb at main · rcairo/rcairo · GitHub](https://github.com/rcairo/rcairo/blob/master/samples/pac.rb)

> Toolbar : insert(index,widget) become insert(widget,index)  
> ComboBox: to be changed to ComboBoxText for append\_text()

Thanks for the information! Many users who migrate their  
application to Ruby/GTK3 from Ruby/GTK2.

> require ‘gtksourceview2’ : seem to be replace by ‘gtksourceview3’,  
> but error installing it :  
> checking for attribute assignment… no  
> checking for gtksourceview-3.0… no

Sorry. We don’t provide Ruby/GtkSourceView3 binary for  
Windows. I’ll try it later.

> Styles differences : check  
> [http://regisaubarede.posterous.com/gnome2-gnome3](http://regisaubarede.posterous.com/gnome2-gnome3)

Thanks!  
Screenshot is very helpful because I don’t have Windows.

It seems that toolbar style and widget style are fine but  
other styles such as font and frame style aren’t fine.

GTK+ 2 provides Windows theme by default but GTK+ 3 doesn’t  
provide it yet. :\<

GTK+ 2 theme:

> **[Sign in · GitLab](https://gitlab.gnome.org/users/sign_in)**
>
> Welcome to GNOME GitLab

GTK+ 3 migrated to CSS based style configuration from the  
above RC file style.

Here is a documentation to migrate to CSS based style from  
RC style:  
[http://developer.gnome.org/gtk3/stable/gtk-migrating-GtkStyleContext-css.html](http://developer.gnome.org/gtk3/stable/gtk-migrating-GtkStyleContext-css.html)

If you try to create a theme for GTK+ 3 on Windows, the  
following instruction will help you: (I don’t try. So the  
information may incorrect. Sorry. :\<)

1. Create a CSS file to  
#{GEM\_HOME}/gdk3-1.2.0/vendor/local/share/themes/MS-Windows/gtk-3.0/gtk.css

2. Uncomment the following comment in:  
#{GEM\_HOME}/gdk3-1.2.0/vendor/local/etc/gtk-3.0/settings.ini

3. Run a Ruby/GTK3 application

Or

1. Add “gtk-font-name” configuration to  
#{GEM\_HOME}/gdk3-1.2.0/vendor/local/etc/gtk-3.0/settings.ini  
. For example:

2. Run a Ruby/GTK3 application

## 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:** [January 25, 2013, 4:13pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/6 "2013-01-25T16:13:28Z")

</div>

Here some more test on windows/Ruiby :

DrawingArea : no such signal: expose-event  
(what is new name for it?)

Toolbar : insert(index,widget) become insert(widget,index)

ComboBox: to be changed to ComboBoxText for append\_text()

require ‘gtksourceview2’ : seem to be replace by ‘gtksourceview3’,  
but error installing it :  
checking for attribute assignment… no  
checking for gtksourceview-3.0… no

Styles differences : check  
[http://regisaubarede.posterous.com/gnome2-gnome3](http://regisaubarede.posterous.com/gnome2-gnome3)

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:** [January 27, 2013, 5:12am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/7 "2013-01-27T05:12:13Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.0” on Sat, 26 Jan  
2013 10:18:00 +0900 (JST),  
Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > require ‘gtksourceview2’ : seem to be replace by ‘gtksourceview3’,  
> > but error installing it :  
> > checking for attribute assignment… no  
> > checking for gtksourceview-3.0… no
> 
> Sorry. We don’t provide Ruby/GtkSourceView3 binary for  
> Windows. I’ll try it later.

I’ve uploaded gtksourceview3 gem for Windows.  
Please try again.

## 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:** [January 27, 2013, 7:49am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/8 "2013-01-27T07:49:52Z")

</div>

Hi:

I tried installing the gtk3 gem on my Ubuntu 10.10 machine:

Hope this helps.

eric@eric-DX4822:~$ gem install gtk3  
Fetching: glib2-1.2.0.gem (100%)  
Building native extensions. This could take a while…  
Fetching: gio2-1.2.0.gem (100%)  
Building native extensions. This could take a while…  
ERROR: Error installing gtk3:  
ERROR: Failed to build gem native extension.

```
    /home/eric/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb

```

checking for -Wall option to compiler… yes  
checking for -Waggregate-return option to compiler… yes  
checking for -Wcast-align option to compiler… yes  
checking for -Wextra option to compiler… yes  
checking for -Wformat=2 option to compiler… yes  
checking for -Winit-self option to compiler… yes  
checking for -Wlarger-than-65500 option to compiler… yes  
checking for -Wmissing-declarations option to compiler… yes  
checking for -Wmissing-format-attribute option to compiler… yes  
checking for -Wmissing-include-dirs option to compiler… yes  
checking for -Wmissing-noreturn option to compiler… yes  
checking for -Wmissing-prototypes option to compiler… yes  
checking for -Wnested-externs option to compiler… yes  
checking for -Wold-style-definition option to compiler… yes  
checking for -Wpacked option to compiler… yes  
checking for -Wp,-D\_FORTIFY\_SOURCE=2 option to compiler… yes  
checking for -Wpointer-arith option to compiler… yes  
checking for -Wswitch-default option to compiler… yes  
checking for -Wswitch-enum option to compiler… yes  
checking for -Wundef option to compiler… yes  
checking for -Wunsafe-loop-optimizations option to compiler… yes  
checking for -Wwrite-strings option to compiler… yes  
checking for rb\_define\_alloc\_func() in ruby.h… yes  
checking for rb\_block\_proc() in ruby.h… yes  
checking for new allocation framework… yes  
checking for attribute assignment… no  
checking for rb\_exec\_recursive() in ruby.h… yes  
checking for rb\_errinfo() in ruby.h… yes  
checking for Win32 OS… no  
checking for gio-2.0… yes  
checking for gio-unix-2.0… yes  
checking for gobject-2.0… yes  
creating ruby-gio2.pc  
creating Makefile

make  
compiling rbgiosrvtarget.c  
compiling rbgiosocket.c  
compiling rbgioappinfo.c  
compiling rbgioioschedulerjob.c  
compiling rbgioemblem.c  
compiling rbgiozlibcompressor.c  
compiling rbgiodrive.c  
compiling rbgiocharsetconverter.c  
compiling rbgiosocketlistener.c  
compiling rbgiofileiostream.c  
compiling rbgiosocketservice.c  
compiling rbgioloadableicon.c  
compiling rbgiounixmounts.c  
compiling rbgiomount.c  
compiling rbgioemblemedicon.c  
compiling util.c  
compiling rbgiomountoperation.c  
compiling rbgiosocketclient.c  
compiling rbgioinetaddress.c  
compiling rbgiofileoutputstream.c  
compiling rbgioseekable.c  
compiling rbgiofilenamecompleter.c  
compiling rbgiofileicon.c  
compiling rbgiodesktopappinfo.c  
compiling rbgionetworkaddress.c  
compiling rbgioioscheduler.c  
compiling rbgiounixsocketaddress.c  
compiling rbgiocontenttype.c  
compiling rbgioasyncresult.c  
compiling rbgioiomodule.c  
compiling rbgiofileinputstream.c  
compiling rbgiofiledescriptorbased.c  
compiling rbgiofileattributeinfo.c  
compiling rbgiounixmountmonitor.c  
compiling rbgioiostream.c  
compiling rbgioinitable.c  
compiling rbgioiomodules.c  
compiling rbgiofileattributematcher.c  
compiling rbgioconverteroutputstream.c  
compiling rbgioconverter.c  
compiling rbgioconverterinputstream.c  
compiling rbgiodatainputstream.c  
compiling rbgiobufferedinputstream.c  
compiling rbgiounixfdlist.c  
compiling rbgiosocketaddressenumerator.c  
compiling rbgiounixfdmessage.c  
compiling rbgiounixoutputstream.c  
compiling rbgioinetsocketaddress.c  
compiling rbgiotcpconnection.c  
compiling rbgiofile.c  
compiling rbgioio.c  
compiling rbgiovolume.c  
compiling rbgiounixmountpoints.c  
compiling rbgio.c  
compiling rbgiounixconnection.c  
compiling rbgiofileinfo.c  
compiling rbgiothemedicon.c  
compiling rbgiotlscertificate.c  
rbgiotlscertificate.c: In function ‘rg\_initialize’:  
rbgiotlscertificate.c:29: error: ‘GTlsCertificate’ undeclared (first use  
in this function)  
rbgiotlscertificate.c:29: error: (Each undeclared identifier is reported  
only once  
rbgiotlscertificate.c:29: error: for each function it appears in.)  
rbgiotlscertificate.c:29: error: ‘certificate’ undeclared (first use in  
this function)  
rbgiotlscertificate.c:30: warning: ISO C90 forbids mixed declarations  
and code  
rbgiotlscertificate.c:32: warning: implicit declaration of function  
‘g\_tls\_certificate\_new\_from\_pem’  
rbgiotlscertificate.c:32: warning: nested extern declaration of  
‘g\_tls\_certificate\_new\_from\_pem’  
rbgiotlscertificate.c: In function ‘rg\_s\_load’:  
rbgiotlscertificate.c:48: error: ‘GTlsCertificate’ undeclared (first use  
in this function)  
rbgiotlscertificate.c:48: error: ‘certificate’ undeclared (first use in  
this function)  
rbgiotlscertificate.c:52: warning: implicit declaration of function  
‘g\_tls\_certificate\_new\_from\_file’  
rbgiotlscertificate.c:52: warning: nested extern declaration of  
‘g\_tls\_certificate\_new\_from\_file’  
rbgiotlscertificate.c:55: warning: implicit declaration of function  
‘g\_tls\_certificate\_new\_from\_files’  
rbgiotlscertificate.c:55: warning: nested extern declaration of  
‘g\_tls\_certificate\_new\_from\_files’  
rbgiotlscertificate.c: In function ‘rg\_verify’:  
rbgiotlscertificate.c:69: error: ‘GTlsCertificateFlags’ undeclared  
(first use in this function)  
rbgiotlscertificate.c:69: error: expected ‘;’ before ‘flags’  
rbgiotlscertificate.c:71: error: ‘flags’ undeclared (first use in this  
function)  
rbgiotlscertificate.c:71: warning: implicit declaration of function  
‘g\_tls\_certificate\_verify’  
rbgiotlscertificate.c:71: warning: nested extern declaration of  
‘g\_tls\_certificate\_verify’  
rbgiotlscertificate.c:74: error: ‘G\_TYPE\_TLS\_CERTIFICATE\_FLAGS’  
undeclared (first use in this function)  
rbgiotlscertificate.c: In function ‘Init\_gtlscertificate’:  
rbgiotlscertificate.c:80: error: ‘G\_TYPE\_TLS\_CERTIFICATE’ undeclared  
(first use in this function)  
rbgiotlscertificate.c:83: error: ‘G\_TYPE\_TLS\_CERTIFICATE\_FLAGS’  
undeclared (first use in this function)  
make: \*\*\* [rbgiotlscertificate.o] Error 1

Gem files will remain installed in  
/home/eric/.rvm/gems/ruby-1.9.3-p125/gems/gio2-1.2.0 for inspection.  
Results logged to  
/home/eric/.rvm/gems/ruby-1.9.3-p125/gems/gio2-1.2.0/ext/gio2/gem\_make.out  
eric@eric-DX4822:~$

---

<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:** [January 28, 2013, 12:06pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/9 "2013-01-28T12:06:51Z")

</div>

i forced gstreamer gem install to 1.2.0, seems i do not have the seg  
fault anymore.

regards,  
david

On Mon, Jan 28, 2013 at 11:27 AM, David M.

---

<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:** [January 28, 2013, 11:28am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/10 "2013-01-28T11:28:53Z")

</div>

Hi,

just updated the gems to 1.2.0, now my soft is seg faulting, below the  
output from gdb, hope it helps:

I, [2013-01-28T11:24:22.228005 #10960] INFO – GNMS: Using Ruby version  
1.9.3  
I, [2013-01-28T11:24:22.228005 #10960] INFO – GNMS: System  
configuration is ok  
/var/lib/gems/1.9.1/gems/gdk\_pixbuf2-1.2.0/lib/gdk\_pixbuf2.rb:29:  
warning: already initialized constant LOG\_DOMAIN

Program received signal SIGSEGV, Segmentation fault.  
rb\_type (obj=465666304) at ./include/ruby/ruby.h:1349  
1349 ./include/ruby/ruby.h: No such file or directory.  
(gdb) bt  
#0 rb\_type (obj=465666304) at ./include/ruby/ruby.h:1349  
#1 rb\_any\_hash (a=465666304) at hash.c:83  
#2 0x4013ed71 in st\_lookup (table=0x83b5550, key=key@entry=465666304,  
value=value@entry=0xbfffdd0c) at st.c:341  
#3 0x400aaaed in rb\_hash\_aref (hash=137270540,  
key=key@entry=465666304) at hash.c:512  
#4 0x4077f5ba in rbgobj\_lookup\_class (klass=465666304) at  
rbgobj\_type.c:68  
#5 0x40774310 in rbgobj\_instance\_from\_ruby\_object  
(obj=obj@entry=1102099680) at rbgobject.c:85  
#6 0x41b0c1e6 in int\_range\_rvalue2gvalue (value=1102099680,  
result=0x40021000) at rbgst-value.c:241  
#7 0x40775822 in rbgobj\_convert\_get\_superclass (type=type@entry=204,  
result=result@entry=0xbfffddec) at rbgobj\_convert.c:78  
#8 0x4077f4d8 in get\_superclass (gtype=204) at rbgobj\_type.c:97  
#9 0x4077f44d in rbgobj\_lookup\_class\_by\_gtype\_without\_lock (parent=4,  
gtype=204, create\_class=) at rbgobj\_type.c:177  
#10 rbgobj\_lookup\_class\_by\_gtype\_without\_lock (gtype=204, parent=4,  
create\_class=1) at rbgobj\_type.c:135  
#11 0x400957cb in rb\_ensure (b\_proc=b\_proc@entry=0x4077f570  
\<rbgobj\_lookup\_class\_by\_gtype\_body\>, data1=data1@entry=3221217108,  
e\_proc=e\_proc@entry=0x4077ef50  
\<rbgobj\_lookup\_class\_by\_gtype\_ensure\>, data2=data2@entry=3221217108)  
at eval.c:744  
#12 0x4077f724 in rbgobj\_lookup\_class\_by\_gtype\_full  
(gtype=gtype@entry=204, parent=parent@entry=4,  
create\_class=create\_class@entry=1) at rbgobj\_type.c:286  
#13 0x4077f75b in rbgobj\_lookup\_class\_by\_gtype (gtype=gtype@entry=204,  
parent=parent@entry=4) at rbgobj\_type.c:271  
#14 0x4077f7c8 in rbgobj\_define\_class (gtype=204,  
name=name@entry=0x41b1c63b “IntRange”, module=module@entry=143143300,  
mark=mark@entry=0x0, free=free@entry=0x0,  
parent=parent@entry=4) at rbgobj\_type.c:312  
#15 0x41b0c7d5 in Init\_gst\_value (mGst=143143300) at rbgst-value.c:442  
#16 0x41b1a3de in Init\_gst\_classes () at rbgst.c:67  
#17 rg\_s\_init (argc=1, argv=0x40686128, self=143143300) at rbgst.c:157  
#18 0x40188351 in call\_cfunc (func=0x41b1a0e0 \<rg\_s\_init\>,  
recv=, len=-1, argc=1, argv=0x40686128) at  
vm\_insnhelper.c:317  
#19 0x40197377 in vm\_call\_cfunc (me=0x89f8020, blockptr=0x0,  
recv=, num=1, reg\_cfp=0x40705d48, th=0x804bb88) at  
vm\_insnhelper.c:404  
#20 vm\_call\_method (th=th@entry=0x804bb88, cfp=cfp@entry=0x40705d48,  
num=num@entry=1, blockptr=0x0, flag=flag@entry=0, id=id@entry=12128,  
me=me@entry=0x89f8020,  
recv=143143300) at vm\_insnhelper.c:534  
#21 0x4018e11e in vm\_exec\_core (th=0x804bb88, th@entry=0xbfffe2d8,  
initial=initial@entry=0) at insns.def:1015  
#22 0x40192818 in vm\_exec (th=0xbfffe2d8) at vm.c:1220  
#23 0x40199ecf in rb\_iseq\_eval (iseqval=143046640) at vm.c:1447  
#24 0x40097172 in rb\_load\_internal (fname=142914260,  
wrap=wrap@entry=147100432) at load.c:310  
#25 0x40098433 in rb\_require\_safe (fname=142915060,  
fname@entry=142841680, safe=0) at load.c:619  
#26 0x400987f4 in rb\_f\_require (obj=134742780, fname=142841680) at  
load.c:465  
#27 0x4018832b in call\_cfunc (func=0x400987d0 \<rb\_f\_require\>,  
recv=, len=1, argc=1, argv=0x406860ec) at  
vm\_insnhelper.c:323  
#28 0x40197377 in vm\_call\_cfunc (me=0x8195188, blockptr=0x0,  
recv=, num=1, reg\_cfp=0x40705dcc, th=0x804bb88) at  
vm\_insnhelper.c:404  
#29 vm\_call\_method (th=th@entry=0x804bb88, cfp=cfp@entry=0x40705dcc,  
num=num@entry=1, blockptr=0x0, flag=flag@entry=8, id=id@entry=14488,  
me=me@entry=0x8195188,  
recv=134742780) at vm\_insnhelper.c:534  
#30 0x4018e11e in vm\_exec\_core (th=0x804bb88, th@entry=0xbfffe868,  
initial=initial@entry=0) at insns.def:1015  
#31 0x40192818 in vm\_exec (th=0xbfffe868) at vm.c:1220  
—Type to continue, or q to quit—  
#32 0x40199ecf in rb\_iseq\_eval (iseqval=143854000) at vm.c:1447  
#33 0x40097172 in rb\_load\_internal (fname=136846820,  
wrap=wrap@entry=138818792) at load.c:310  
#34 0x40098433 in rb\_require\_safe (fname=136848420,  
fname@entry=136848440, safe=0) at load.c:619  
#35 0x400987f4 in rb\_f\_require (obj=134742780, fname=136848440) at  
load.c:465  
#36 0x4018832b in call\_cfunc (func=0x400987d0 \<rb\_f\_require\>,  
recv=, len=1, argc=1, argv=0x406860a4) at  
vm\_insnhelper.c:323  
#37 0x40197377 in vm\_call\_cfunc (me=0x8195188, blockptr=0x0,  
recv=, num=1, reg\_cfp=0x40705ea8, th=0x804bb88) at  
vm\_insnhelper.c:404  
#38 vm\_call\_method (th=th@entry=0x804bb88, cfp=cfp@entry=0x40705ea8,  
num=num@entry=1, blockptr=0x0, flag=flag@entry=8, id=id@entry=14488,  
me=me@entry=0x8195188,  
recv=134742780) at vm\_insnhelper.c:534  
#39 0x4018e11e in vm\_exec\_core (th=0x804bb88, th@entry=0xbfffedf8,  
initial=initial@entry=0) at insns.def:1015  
#40 0x40192818 in vm\_exec (th=0xbfffedf8) at vm.c:1220  
#41 0x40199ecf in rb\_iseq\_eval (iseqval=136117940) at vm.c:1447  
#42 0x40097172 in rb\_load\_internal (fname=135830400,  
wrap=wrap@entry=136028480) at load.c:310  
#43 0x40098433 in rb\_require\_safe (fname=135830840,  
fname@entry=135830920, safe=0) at load.c:619  
#44 0x400987f4 in rb\_f\_require (obj=134742780, fname=135830920) at  
load.c:465  
#45 0x4018832b in call\_cfunc (func=0x400987d0 \<rb\_f\_require\>,  
recv=, len=1, argc=1, argv=0x40686044) at  
vm\_insnhelper.c:323  
#46 0x40197377 in vm\_call\_cfunc (me=0x8195188, blockptr=0x0,  
recv=, num=1, reg\_cfp=0x40705f58, th=0x804bb88) at  
vm\_insnhelper.c:404  
#47 vm\_call\_method (th=th@entry=0x804bb88, cfp=cfp@entry=0x40705f58,  
num=num@entry=1, blockptr=0x0, flag=flag@entry=8, id=id@entry=14488,  
me=me@entry=0x8195188,  
recv=134742780) at vm\_insnhelper.c:534  
#48 0x4018e11e in vm\_exec\_core (th=0x804bb88, th@entry=0xbffff388,  
initial=initial@entry=0) at insns.def:1015  
#49 0x40192818 in vm\_exec (th=0xbffff388, th@entry=0x804bb88) at  
vm.c:1220  
#50 0x40199fcc in rb\_iseq\_eval\_main (iseqval=iseqval@entry=135831260)  
at vm.c:1461  
#51 0x4009444c in ruby\_exec\_internal (n=0x8189edc) at eval.c:204  
#52 0x40094f84 in ruby\_exec\_node (n=n@entry=0x8189edc) at eval.c:251  
#53 0x40096996 in ruby\_run\_node (n=0x8189edc) at eval.c:244  
#54 0x08048678 in main (argc=2, argv=0xbffff684) at main.c:38

regards,  
david

On Sun, Jan 27, 2013 at 7:49 AM, Eric C.

---

<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:** [January 28, 2013, 12:16pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/11 "2013-01-28T12:16:47Z")

</div>

Kouhei S. wrote in post #1093924:

> I’ve uploaded gtksourceview3 gem for Windows.  
> Please try again.

gtksourceview is Ok, ruby 1.9.3.windows 7.

Thank you.

… `block in canvas': undefined method `create\_cairo\_context’

There are many deprecated/incompatibility between gtk2/gtk3.  
Is there a documentation somewhere ?

> Screenshot is very helpful because I don’t have Windows.

Perhaps i can send you a windows login in a personal internet host,  
send me a email…

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:** [January 28, 2013, 12:59pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/12 "2013-01-28T12:59:27Z")

</div>

Regis d’Aubarede wrote in post #1094036:

> Is there a documentation somewhere ?

Oups…  
Docs founded in gdk gem :  
ruby19/lib/ruby/gems/1.9.1/gems/gdk3-1.2.0-x86-mingw32/  
vendor/local/share/gtk-doc/html/gtk3/index.html

---

<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:** [January 28, 2013, 12:31pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/13 "2013-01-28T12:31:58Z")

</div>

Installing gstreamer didn’t fix my segfault issues… is there anything  
else I can try?

On Mon, Jan 28, 2013 at 8:16 AM, Regis d’Aubarede \<

---

<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:** [January 28, 2013, 3:20pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/14 "2013-01-28T15:20:51Z")

</div>

Hi,

In [CAEyH2mAEEGKhP=removed\_email\_address@domain.invalid](mailto:CAEyH2mAEEGKhP=removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.0” on Mon, 28 Jan  
2013 12:05:54 +0100,  
David M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i forced gstreamer gem install to 1.2.0, seems i do not have the seg  
> fault anymore.

It’s good news.  
Thanks for trying.

–  
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:** [January 28, 2013, 3:13pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/15 "2013-01-28T15:13:15Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.0” on Sun, 27 Jan  
2013 07:49:52 +0100,  
“Eric C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I tried installing the gtk3 gem on my Ubuntu 10.10 machine:

Ubuntu 10.10 is out of date distribution. So we don’t  
support it. Sorry. (And Ubuntu 10.10 doesn’t have GTK+ 3  
package.)

(Your GLib is too old to build Ruby/GIO.)

## 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:** [January 28, 2013, 3:22pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/16 "2013-01-28T15:22:37Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.0” on Mon, 28 Jan  
2013 12:59:27 +0100,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Is there a documentation somewhere ?
> 
> Oups…  
> Docs founded in gdk gem :  
> ruby19/lib/ruby/gems/1.9.1/gems/gdk3-1.2.0-x86-mingw32/  
> vendor/local/share/gtk-doc/html/gtk3/index.html

You can also see documentation on Web:

[Gtk – 3.0](http://developer.gnome.org/gtk3/stable/)  
[Gdk – 3.0](http://developer.gnome.org/gdk3/stable/)

## 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:** [January 30, 2013, 2:14pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/17 "2013-01-30T14:14:26Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 1.2.0” on Mon, 28 Jan  
2013 20:02:29 +0100,  
Regis d’Aubarede [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> A css whith correct (for me…) look&feel on windows :  
> [a theme for gnome3 on windows · GitHub](https://gist.github.com/4658090)
> 
> Based on GreyBird theme : [GitHub - shimmerproject/Greybird: Desktop Suite for Xfce · GitHub](http://github.com/shimmerproject/Greybird)
> 
> Result is viewable at : [http://regisaubarede.posterous.com/gnome2-gnome3](http://regisaubarede.posterous.com/gnome2-gnome3)
> 
> Attachments:  
> [http://www.ruby-forum.com/attachment/8082/gtk.css](http://www.ruby-forum.com/attachment/8082/gtk.css)

Thanks for your work!

Could you tell us what is changed from GreyBird theme? If  
there are only small changes (and those changes aren’t  
important for you), I want to add the latest GreyBird theme  
to gtk3 gem. Because it will be maintained well.

## 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:** [January 28, 2013, 8:02pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-2-0/229372/18 "2013-01-28T20:02:29Z")

</div>

Hello,

A css whith correct (for me…) look&feel on windows :

> <https://gist.github.com/glurp/4658090>

Based on GreyBird theme : [GitHub - shimmerproject/Greybird: Desktop Suite for Xfce](http://github.com/shimmerproject/Greybird)

Result is viewable at : [http://regisaubarede.posterous.com/gnome2-gnome3](http://regisaubarede.posterous.com/gnome2-gnome3)
