1Gtk3::WebKit(3) User Contributed Perl Documentation Gtk3::WebKit(3)
2
3
4
6 Gtk3::WebKit - WebKit bindings for Perl
7
9 use Gtk3 -init;
10 use Gtk3::WebKit;
11
12 my ($url) = shift @ARGV || 'http://search.cpan.org/';
13
14 my $window = Gtk3::Window->new('toplevel');
15 $window->set_default_size(800, 600);
16 $window->signal_connect(destroy => sub { Gtk3->main_quit() });
17
18 # Create a WebKit widget
19 my $view = Gtk3::WebKit::WebView->new();
20
21 # Load a page
22 $view->load_uri($url);
23
24 # Pack the widgets together
25 my $scrolls = Gtk3::ScrolledWindow->new();
26 $scrolls->add($view);
27 $window->add($scrolls);
28 $window->show_all();
29
30 Gtk3->main();
31
33 This module provides the Perl bindings for the Gtk3 port of WebKit.
34
36 "Headless" Debian based systems (inc Ubuntu)
37 If you are running an X Server (desktop environment) then you should be
38 fine. If you are trying to install this on a "headless" server, then
39 you will need a framebuffer display to take the place of the X server.
40
41 The xvfb-run command can do this for you.
42
43 With Ubuntu 12.04 LTS, you'll need these (or more recent) extra deb
44 packages:
45
46 xvfb libgirepository1.0-dev pkg-config libgtk-3-dev libglib2.0-dev libglib2.0-0 gir1.2-webkit-3.0
47
48 At which point everything should "just work".
49
51 For any kind of help or support simply send a mail to the gtk-perl
52 mailing list (gtk-perl-list@gnome.org).
53
55 Emmanuel Rodriguez <potyl@cpan.org>.
56
58 Copyright (C) 2011, 2012 by Emmanuel Rodriguez.
59
60 This library is free software; you can redistribute it and/or modify it
61 under the same terms of:
62
63 the GNU Lesser General Public License, version 2.1; or
64 the Artistic License, version 2.0.
65
66 This module is distributed in the hope that it will be useful, but
67 WITHOUT ANY WARRANTY; without even the implied warranty of
68 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
69
70 You should have received a copy of the GNU Library General Public
71 License along with this module; if not, see
72 <http://www.gnu.org/licenses/>.
73
74 For the terms of The Artistic License, see perlartistic.
75
76
77
78perl v5.36.0 2023-01-20 Gtk3::WebKit(3)