Just thought I’d give a report on trying ruby-gnome2 on a new macbook.
Prerequisites:
X Code 3.0+ (I used 3.0 as I’m having a problem installing the latest
3.1.2)
XQuartz
MacPorts
Using MacPorts, install: gawk (or nawk), python25, python_select (then
use it to select python25), ruby, rb-rubygem, vte, librsvg,
gtksourceview, gtksourceview2, libgtkhtml, gtkglext, libgnomeui
Could not install:
poppler (unable to download openjpeg)
gtkmozembed (not in macports)
panel-applet (not in macports)
gstreamer (installed but needs gstreamer-plugins-base which is not in
macports)
goocanvas-0.9 (failed to compile)
Downloaded and installed ruby-gnome2-all-0.18.1
I quickly tried one of my mid sized rgnome2 (strictly gtk2) apps and had
two observations:
there appears to be a font metrics problem where about twice the
vertical space is allocated than is necessary. The app uses default
fonts.
after minimizing the app then restoring it, the display widgets are
not drawn. Basically a blank window with white rectangles where Entry
widgets should be.
roy-wrights-macbook:gtk-demo royw$ jhbuild shell
Prefix: /Users/royw/gtk/inst
Entered jhbuild shell, type ‘exit’ to return.
bash-3.2$ ./demo2.rb
** ERROR **: Please call rbgutil_start_callback_dispatch_thread() to
dispatch a callback from non-ruby thread before callbacks are requested
from non-ruby thread.
aborting…
Trace/BPT trap
Now if you reverse the entry.text and entry.signal_connect lines in the
above example, the window appears but will have the same crash if you
try to change the value in the entry widget or if you close the
application.
That sounds odd, that code runs fine here but I don’t have the very
latest version of ruby-gnome2. Did you end up with the same version of
the bindings as you were using in your Macports environment?
// Micke
2 dec 2008 kl. 02.18 skrev Roy W.:
#!/usr/bin/env ruby
frame = Gtk::Frame.new(‘Content Frame’)
bash-3.2$ ./demo2.rb
above example, the window appears but will have the same crash if you
That sounds odd, that code runs fine here but I don’t have the very
latest version of ruby-gnome2. Did you end up with the same version of
the bindings as you were using in your Macports environment?
Yes with one exception, used python25-apple instead of the macports
python25.