[ruby-gnome2-doc-cvs] [Hiki] create - RubyGecko

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2005年 3月 23日 (水) 03:22:22 JST


-------------------------
REMOTE_ADDR = 84.220.102.131
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki        URL = http://ruby-gnome2.sourceforge.jp/cgi-bin/hiki/hiki.cgi?RubyGecko
-------------------------
TITLE       = RubyGecko
KEYWORD     = 
= Gtk::MozEmbed sample 

In this section we will illustrate two sample application using the Gtk::MozEmbed widget. The first is a simple single-window browser and the latter is a toy-editor for HTML.

To run this sample you need to install Ruby/GTK2 >= 0.12.0 and Ruby/GtkMozEmbed that you can get here: ((<URL:http://sourceforge.net/project/showfiles.php?group_id=53614&package_id=147357>))

You need to have libgtkmozembed.so in your library path either via /etc/ld.so.conf or setting the LD_LIBRARY_PATH environment variable. If you have mozilla-dev packages installed you can simply do:
 
 $ export LD_LIBRARY_PATH=`pkg-config --variable=libdir mozilla-gtkmozembed`:$LD_LIBRARY_PATH

If you don't, the following are some good bet:

 $ export LD_LIBRARY_PATH=/usr/lib/mozilla/:$LD_LIBRARY_PATH
 $ export LD_LIBRARY_PATH=/usr/lib/mozilla-firefox/:$LD_LIBRARY_PATH

If all else fail please do:

 $ find /usr/lib -name libgtkmozembed.so; find /usr/local/ -name libgtkmozembed.so; find /opt -name libgtkmozembed.so

and than set LD_LIBRARY_PATH accordingly.

== ruby-gecko browser.

* {{attach_anchor("ruby-gecko.rb")}}

You can run the ruby-gecko browser by calling

 $ ruby ruby-gecko.rb

Or if you have not set the library path you can do it on the same line:

 $ LD_LIBRARY_PATH=/path/to/gtkmozembed/ ruby ruby-gecko.rb


== MozEditor HTML toy-editor.

* {{attach_anchor("moz-editor.rb")}}
* {{attach_anchor("moz-editor.css")}}

You can run the ruby-gecko browser by calling

 $ ruby moz-editor.rb

Or if you have not set the library path with:

 $ LD_LIBRARY_PATH=/path/to/gtkmozembed/ ruby moz-editor.rb


== License
GPL


== Author
((<MirkoMaischberger>))


=== Changelog
:2005-03-22
 Initial release






ruby-gnome2-cvs メーリングリストの案内
Back to archive index