Hey,
I’ve just compiled ruby-gnome2 (from cvs) against xulrunner’s
gtkmozembed library, and I’ve discovered that calling
Gtk::MozEmbed.set_profile_path(“/usr/lib/firefox/plugins”) – before the
constructor – causes some problem that prevents any page being loaded
by the widget. Even if the path given to set_comp_path is an empty
directory, it still doesn’t work. No errors are thrown.
I tried this on another machine with ruby-gnome2 compiled against
mozilla-gtkmozembed and that throws a segmentation fault.
P.S. Below is a short snippet that will replicate this problem. Does
anybody know what the problem is?
Regards,
Andy.
#!/usr/bin/env ruby
require ‘gtkmozembed’
Uncomment this line and no page will be loaded…
#Gtk::MozEmbed.set_comp_path(“/usr/lib/firefox/plugins”)
Gtk::MozEmbed.set_profile_path(ENV[‘HOME’] + ‘/.mozilla’, ‘RubyGecko’)
win = Gtk::Window.new
moz = Gtk::MozEmbed.new
win << moz
win.resize(780, 570)
puts “Trying…”
moz.load_url(“http://www.google.com/”)
win.signal_connect(“destroy”) { Gtk.main_quit }
win.show_all
Gtk.main
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642