Gtk3::WebKit2(3pm)
β¨ Gtk3::WebKit2 β the vibe β¨
okay so bestie, this is Gtk3::WebKit2, a page from the User Contributed Perl Documentation section of the manual (section 3pm, iykyk). it's literally WebKit2 bindings for Perl and i am obsessed π
πΈ NAME πΈ
Gtk3::WebKit2 β WebKit2 bindings for Perl π¦
β¨ SYNOPSIS β¨
here's the whole vibe, copy-paste ready, no cap:
use Gtk3 -init;
use Gtk3::WebKit2;
my ($url) = shift @ARGV || 'http://search.cpan.org/';
my $window = Gtk3::Window->new('toplevel');
$window->set_default_size(800, 600);
$window->signal_connect(destroy => sub { Gtk3->main_quit() });
# Create a WebKit2 widget
my $view = Gtk3::WebKit2::WebView->new();
# Load a page
$view->load_uri($url);
# Pack the widgets together
my $scrolls = Gtk3::ScrolledWindow->new();
$scrolls->add($view);
$window->add($scrolls);
$window->show_all();
Gtk3->main();
so you make a window, you make a Gtk3::WebKit2::WebView, you load_uri, you shove it all into a Gtk3::ScrolledWindow, and then Gtk3->main() carries the whole thing. main character energy fr fr π
π DESCRIPTION π
this module is giving you the Perl bindings for the Gtk3 port of WebKit2. that's it, that's the whole thing. that's the serve π
π INSTALLATION π
π₯οΈ "Headless" Debian based systems (inc Ubuntu)
if you're running an X Server (aka you have a desktop environment) then you're fine, go off π
but if you're trying to install this on a "headless" server? then bestie you're gonna need a framebuffer display to step in and take the place of the X server. like a substitute teacher but for graphics π§
the xvfb-run command can do this for you. slay.
with Ubuntu 12.04 LTS, you'll need these (or more recent) extra deb packages β not me listing them, they're required:
xvfb libgirepository1.0-dev pkg-config libgtk-3-dev libglib2.0-dev libglib2.0-0 gir1.2-webkit2-4.1
at which point everything should "just work". iconic. β¨
π BUGS π
for any kind of help or support simply send a mail to the gtk-perl mailing list (gtk-perl-list@gnome.org). they're your people, they got you π«Ά
π AUTHORS π
Emmanuel Rodriguez <potyl@cpan.org>. legend behavior, honestly π
π COPYRIGHT AND LICENSE π
Copyright (C) 2011, 2012 by Emmanuel Rodriguez.
this library is free software; you can redistribute it and/or modify it under the same terms of:
- the GNU Lesser General Public License, version 2.1; or
- the Artistic License, version 2.0.
this module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (that's the serious part, no skipping it π)
you should have received a copy of the GNU Library General Public License along with this module; if not, see <http://www.gnu.org/licenses/>.
for the terms of The Artistic License, see perlartistic.
ok that's the whole page, every single detail intact, i did not skip a thing because skipping is not the vibe π
and that's a wrap bestie π this was perl v5.36.0, dated 2024-01-05, filed under Gtk3::WebKit2(3pm). periodt. π
β¨
π¦ where this page comes from
- debian trixie: libgtk3-webkit2-perl 0.06-6 Β· LGPL-2.1-only
- ubuntu noble: libgtk3-webkit2-perl 0.06-6 Β· LGPL-2.1-only
- ubuntu resolute: libgtk3-webkit2-perl 0.06-6 Β· LGPL-2.1-only
- ubuntu stonking: libgtk3-webkit2-perl 0.06-6 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms