Hi,
In [email protected]
“Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 0.90.0” on Thu, 23 Sep
2010 14:49:15 +0200,
Nikolai W. [email protected] wrote:
 Download ruby-gtk2-0.90.0.tar.gz (Ruby-GNOME 2)
Is Ruby/GIO ready? If your answer is ‘yes’, I’ll add it in
the next release.
There are certainly some omissions/TODOs, but the library is usable.
I’ll add it to the table of how finished different parts are at some
point. How about documentation? How do you generally generate it?
Use mkrd/mkrd.rb in
Ruby-GNOME 2 download | SourceForge.net
with the above patch:
===
Index: mkrd/mkrd.rb
— mkrd/mkrd.rb (revision 3885)
+++ mkrd/mkrd.rb (working copy)
@@ -1,4 +1,3 @@
-#!/usr/bin/env ruby
mkrd.rb: Create RD style skelton
@@ -17,19 +16,14 @@
Set targets.
-$TARGET_LIBS = [“gtk2”, “gconf2”, “gnome2”, “gnomeprint2”,
“gnomeprintui2”]
-$TARGET_MODULES = [“Gtk”, “Gdk”, “GConf”, “Gnome”]
+$TARGET_LIBS = [“gio2”]
+$TARGET_MODULES = [“GIO”]
$TARGET_LIBS.each do |lib|
require lib
end
-#
-# Call initialize the libraries.
-#
-Gtk.init
#################################################################
Don’t touch below.
#################################################################
I tried Ruby/GIO2 but it seems that more works:
% ruby -I…/glib/{lib,ext/glib2} -I{lib,ext/gio2} -e ‘require “gio2”’
(eval):3: wrong argument type Module (expected Class) (TypeError)
from ./lib/gio2.rb:11
from -e:1:in `require’
from -e:1
I need the attached patch to fix the problem.
But I meets other problem…
Please add some sample programs and/or test cases.
Thanks,
kou