[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::MozEmbed

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2005年 3月 27日 (日) 04:58:23 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?Gtk%3A%3AMozEmbed
-------------------------
@@ -1,17 +1,19 @@
 = class Gtk::MozEmbed
 This class wraps the GtkMozEmbed widget in a Ruby class.  The
 GtkMozEmbed is an HTML rendering widget based on Mozilla Gecko
-provided by either Mozilla or Firefox.  You need to have
-libgtkmozembed.so in your library path to use and
-mozilla-gtkmozembed.pc and gtkmozembed.h in order to compile.
+provided by either Mozilla or Firefox.
 
- Gtk::MozEmbed.new
- ...
- Gtk::MozEmbed.location="http://ruby-gnome2.sf.net"
- ...
+ require 'gtkmozembed'
+ Gtk.init
+ w = Gtk::Window.new.title = "Lean & mean browser"
+ w.resize(780, 570)
+ w << Gtk::MozEmbed.new
+ w.child.chrome_mask = Gtk::MozEmbed::ALLCHROME
+ w.child.location = "http://www.ruby-lang.org"
+ w.show_all
+ Gtk.main
 
-Please see the sample application ruby-gecko for more info and
-examples.
+Please see the sample application ruby-gecko and ((<RubyGecko>)) for more.
 
 == Object Hierarchy
 * Object





ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る