{"id":7464,"date":"2022-12-20T19:38:12","date_gmt":"2022-12-20T22:38:12","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/gtk3webkit2-man3\/"},"modified":"2022-12-20T19:38:12","modified_gmt":"2022-12-20T22:38:12","slug":"gtk3webkit2-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/gtk3webkit2-man3\/","title":{"rendered":"Gtk3::WebKit2 (man3)"},"content":{"rendered":"<h1 align=\"center\">Gtk3::WebKit2<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#INSTALLATION\">INSTALLATION<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#COPYRIGHT AND LICENSE\">COPYRIGHT AND LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Gtk3::WebKit \u2212 WebKit bindings for Perl<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use Gtk3 \u2212init; <br \/> use Gtk3::WebKit2; <br \/> my ($url) = shift @ARGV || &#8216;http:\/\/search.cpan.org\/&#8217;; <br \/> my $window = Gtk3::Window\u2212>new(&#8216;toplevel&#8217;); <br \/> $window\u2212>set_default_size(800, 600); <br \/> $window\u2212>signal_connect(destroy => sub { Gtk3\u2212>main_quit() }); <br \/> # Create a WebKit widget <br \/> my $view = Gtk3::WebKit2::WebView\u2212>new(); <br \/> # Load a page <br \/> $view\u2212>load_uri($url); <br \/> # Pack the widgets together <br \/> my $scrolls = Gtk3::ScrolledWindow\u2212>new(); <br \/> $scrolls\u2212>add($view); <br \/> $window\u2212>add($scrolls); <br \/> $window\u2212>show_all(); <br \/> Gtk3\u2212>main();<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This module provides the Perl bindings for the Gtk3 port of WebKit.<\/p>\n<h2>INSTALLATION <a name=\"INSTALLATION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>&#8220;Headless&#8221; Debian based systems (inc Ubuntu)<\/b> <br \/> If you are running an X Server (desktop environment) then you should be fine. If you are trying to install this on a &#8220;headless&#8221; server, then you will need a framebuffer display to take the place of the X server.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The xvfb-run command can do this for you.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">With Ubuntu 12.04 <small>LTS,<\/small> you\u2019ll need these (or more recent) extra deb packages:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">xvfb libgirepository1.0\u2212dev pkg\u2212config libgtk\u22123\u2212dev libglib2.0\u2212dev libglib2.0\u22120 gir1.2\u2212webkit\u22123.0<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">At which point everything should &#8220;just work&#8221;.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">For any kind of help or support simply send a mail to the gtk-perl mailing list (gtk\u2212perl\u2212list@gnome.org).<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Emmanuel Rodriguez <potyl@cpan.org>.<\/p>\n<h2>COPYRIGHT AND LICENSE <a name=\"COPYRIGHT AND LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright (C) 2011, 2012 by Emmanuel Rodriguez.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This library is free software; you can redistribute it and\/or modify it under the same terms of: <br \/> the <small>GNU<\/small> Lesser General Public License, version 2.1; or <br \/> the Artistic License, version 2.0.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module is distributed in the hope that it will be useful, but <small>WITHOUT ANY WARRANTY<\/small> ; without even the implied warranty of <small>MERCHANTABILITY<\/small> or <small>FITNESS FOR A PARTICULAR PURPOSE.<\/small><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You should have received a copy of the <small>GNU<\/small> Library General Public License along with this module; if not, see <http:\/\/www.gnu.org\/licenses\/>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For the terms of The Artistic License, see perlartistic.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Gtk3::WebKit \u2212 WebKit bindings for Perl <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3776,3007],"class_list":["post-7464","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-gtk3webkit2","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7464"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7464\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}