A set of bindings for the GNOME-2.x libraries to use from Ruby.
C Ruby CSS R Shell C++
Latest commit e2cc8a9 Feb 26, 2017 @kou kou clutter-gdk: ensure initialize GDK
GitHub: fix #1000

Reported by cedlemo. Thanks!!!
Permalink
Failed to load latest commit information.
atk-no-gi Rename atk directory to atk-no-gi Feb 21, 2017
atk atk: keep backward compatibility Feb 23, 2017
build windows: support Ruby 2.4 Jan 22, 2017
cairo-gobject Added AltLinux to supported OSes. Mar 5, 2016
clutter-gdk clutter-gdk: ensure initialize GDK Feb 26, 2017
clutter-gstreamer windows: update versions Jan 22, 2017
clutter-gtk windows: update bundled versions Nov 12, 2016
clutter windows: update bundled versions Nov 12, 2016
gdk3-no-gi Added AltLinux to supported OSes. Mar 5, 2016
gdk3 gdk3: support X11 related features Feb 23, 2017
gdk_pixbuf2-no-gi Move C implementation of gdk_pixbuf2 to gdk_pixbuf2-no-gi Jun 2, 2016
gdk_pixbuf2 windows: update versions Jan 22, 2017
gio2 gio2 test: fix path Jan 30, 2017
glib2 Bump version Jan 27, 2017
gnumeric windows: update bundled versions Nov 12, 2016
gobject-introspection gi: don't use "initialize" Feb 23, 2017
goffice gi: sink created GObject based object by default Aug 28, 2016
gsf gsf: fix label Jan 26, 2017
gstreamer windows: update versions Jan 22, 2017
gtk2 fix error messages typo Oct 11, 2016
gtk3-no-gi fix error messages typo Oct 11, 2016
gtk3 Fix mention to expose_event signal in comment Feb 17, 2017
gtksourceview2 Added AltLinux to supported OSes. Mar 5, 2016
gtksourceview3-no-gi Added AltLinux to supported OSes. Mar 5, 2016
gtksourceview3 gtksourceview3 windows: remove merged patches Jan 25, 2017
gvlc Added AltLinux to supported OSes. Mar 5, 2016
pango pango windows: disable using strtod_l() Jan 25, 2017
poppler poppler: fix wrong dependency check Jan 6, 2017
rsvg2 rsvg2 windows: update external packages Aug 7, 2016
vte Added AltLinux to supported OSes. Mar 5, 2016
vte3-no-gi Added AltLinux to supported OSes. Mar 5, 2016
vte3 windows: update bundled versions Nov 12, 2016
webkit-gtk gi: sink created GObject based object by default Aug 28, 2016
webkit-gtk2 gi: sink created GObject based object by default Aug 28, 2016
webkit2-gtk windows: update versions Jan 22, 2017
.dir-locals.el windows: use "windows" instead of "win32" Nov 22, 2014
.gitignore Fix pattern Dec 29, 2016
.travis.yml Tweak for Ruby version in Travis settings Dec 26, 2016
AUTHORS Updated news for upcoming release, tagged binding version as 0.17.0 Mar 19, 2008
COPYING.GFDL gtk3: use GFDL for script that is based on PyGObject-Tutorial Jun 9, 2015
COPYING.LIB Update LGPL 2.1 files Oct 16, 2013
Gemfile test-unit is required Sep 21, 2015
Gemfile.local.sample support Gemfile.local. Aug 6, 2014
NEWS Add 3.1.1 entry Jan 26, 2017
README.md Update supported ruby versions and copyright date Jan 11, 2017
Rakefile Use https://cache Jan 26, 2017
exec_make.rb * extconf.rb, exec_make.rb: Support MSVC++(nmake). Jan 31, 2005
extconf.rb Don't build atk-no-gi via the main extconf.rb Feb 21, 2017
release.rd Update how to release Apr 2, 2016
run-test.rb test: ignore atk-no-gi Feb 23, 2017
travis-before-script.sh Add gnumeric as package to install instead of relying on dependancies Jun 14, 2016

README.md

Build Status Gem Version

Ruby-GNOME2

Ruby-GNOME2 Logo Ruby bindings for GNOME

This is a set of bindings for the GNOME 2.x and 3.x libraries to use from Ruby 2.1, 2.2, 2.3 and 2.4.

Installation

Install the current releases.

The gems of the Ruby-GNOME2 projects can be easily installed with the gem command. For example in order to install the gtk3 gem and its dependencies:

gem install gtk3

Install from GitHub master branch

You can also install these gems from GitHub master branch.

% git clone https://github.com/ruby-gnome2/ruby-gnome2.git
% cd ruby-gnome2
% gem install rake rake-compiler mechanize pkg-config cairo
% rake gem:build
% rake gem:install

Release packages

ruby-gtk2

  • Ruby/GLib2: GLib 2.12.x or later
  • Ruby/ATK: ATK 1.12.x or later
  • Ruby/Pango: Pango 1.14.x or later
  • Ruby/GdkPixbuf2: GTK+ 2.0.x or later
  • Ruby/GTK2: GTK+ 2.10.x or later
  • Ruby/GObjectIntrospection: GObject Introspection 1.32.1 or later

ruby-gtk3

  • Ruby/GLib2: GLib 2.12.x or later
  • Ruby/GIO2: GIO 2.16.x or later
  • Ruby/ATK: ATK 1.12.x or later
  • Ruby/Pango: Pango 1.14.x or later
  • Ruby/GdkPixbuf2: GTK+ 2.0.x or later
  • Ruby/GObjectIntrospection: GObject Introspection 1.32.1 or later
  • Ruby/CairoGObject: cairo-gobject 1.12.10 or later
  • Ruby/GDK3: GTK+ 3.4.2 or later
  • Ruby/GTK3: GTK+ 3.4.2 or later

ruby-gnome2-all

  • ruby-gtk2 + ruby-gtk3
  • Ruby/RSVG: librsvg 2.8.0 or later
  • Ruby/Poppler: poppler-glib 0.8.0 or later
  • Ruby/VTE VTE 0.12.1 or later
  • Ruby/VTE3 VTE 0.37.0 or later
  • Ruby/GStreamer: GStreamer 1.0.0 or later
  • Ruby/GtkSourceView2: GtkSourceView 2.0.0 or later
  • Ruby/Clutter: Clutter 1.12.0 or later
  • Ruby/ClutterGTK: Clutter-GTK 1.2.0 or later
  • Ruby/ClutterGStreamer:Clutter-GStreamer 2.0.0 or later
  • Ruby/GtkSourceView3: GtkSourceView 3.4.2 or later
  • Ruby/VTE3: VTE 0.32.2 or later
  • Ruby/WebKitGTK: WebKitGTK+ 1.8.1 or later (for GTK+ 3)
  • Ruby/WebKitGTK2: WebKitGTK+ 1.8.1 or later (for GTK+ 2)
  • Ruby/WebKit2GTK: WebKitGTK+ 2.0.0 or later (for GTK+ 3)

Experimental / Incomplete:

  • Ruby/GSF: GSF 1.14.0 or later
  • Ruby/GOffice: GOffice 0.10 or later
  • Ruby/Gnumeric: Gnumeric 1.12 or later

Advanced Installation

% ruby extconf.rb
% make
% sudo make install

To compile and install a particular sub-binding, you can add arguments:

% ruby extconf.rb [subdir]...
e.g.) ruby extconf.rb glib2 pango atk gdk_pixbuf2 gtk2

Or you can compile each sub-binding:

% cd <each sub-directory>
% ruby extconf.rb
% make
% sudo make install

extconf.rb options

  • --ruby

    • ruby directory
  • --topsrcdir

    • top source directory
  • --topdir

    • top directory
  • --strict

    • if some libraries fail to compile/install, "make" command returns 1(exit 1)

Bugs

Please report bugs either in our bug tracker

or on the ruby-gnome2-devel-en / ruby-gnome2-devel-ja mailing list

Copying

Copyright (c) 2002-2017 Ruby-GNOME2 Project Team

This program is free software. You can distribute/modify this program under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.

Exceptions

Some GTK+ 3 examples are licensed under GNU Free Documentation License 1.3 or any later version later; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

Because they are based on scripts in PyGObject-Tutorial. PyGObject-Tutorial is licensed under GFDL 1.3.

See gtk3/examples/ directory for details.

Project Website

http://ruby-gnome2.sourceforge.jp/