Subject: | a bug in the example code |
Date: | Sat, 5 Jul 2008 22:41:10 -0700 |
To: | bug-Gtk2-WebKit [...] rt.cpan.org |
From: | "Alex Vasilevsky" <alex.vasilevsky [...] gmail.com> |
The example is missing a call to:
$window->show_all;
It should before Gtk2->main; method call.
Here is the fully working example:
use Gtk2 -init;
use Gtk2::WebKit;
my $window = Gtk2::Window->new;
my $sw = Gtk2::ScrolledWindow->new;
my $view = Gtk2::WebKit::WebView->new;
$sw->add($view);
$window->add($sw);
$view->open('http://perldition.org');
$window->show_all;
Gtk2->main;
-Alex V.