Gtk3::WebKit(3)

πŸ“¦
version 0.06 Β· 2 versions
, in fedora 43

πŸ’– Gtk3::WebKit πŸ’–

okay so bestie, this is Gtk3::WebKit β€” it's the Perl bindings for WebKit, the Gtk3 port. And it lives in the User Contributed Perl Documentation section of your man pages, section 3, iykyk. πŸ¦‹


✨ NAME ✨

Gtk3::WebKit β€” WebKit bindings for Perl. that's it, that's the whole name section. short king. πŸ‘‘


🌸 SYNOPSIS 🌸

here's the whole vibe, copy-paste it and go:

use Gtk3 -init;
use Gtk3::WebKit;

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 WebKit widget
my $view = Gtk3::WebKit::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();

like… we make a window, we make a WebView, we point it at a URL, we shove it in a ScrolledWindow, we pack it all, and then we hand the whole thing over to Gtk3->main() and let it cook. πŸ”₯


πŸ’… DESCRIPTION πŸ’…

this module gives you the Perl bindings for the Gtk3 port of WebKit. that's the whole description. no notes. periodt. ✨


πŸŽ€ INSTALLATION πŸŽ€

🫢 "Headless" Debian based systems (inc Ubuntu)

so if you're running an X Server (like, a desktop environment), you're literally fine, go off. πŸ’–

but if you're trying to install this on a "headless" server? you're gonna need a framebuffer display to take the place of the X server. no X, no vibes, no install.

the xvfb-run command can do this for you. it's the main character of this section fr fr. 🧚

with Ubuntu 12.04 LTS, you'll need these (or more recent) extra deb packages:

xvfb libgirepository1.0-dev pkg-config libgtk-3-dev libglib2.0-dev libglib2.0-0 gir1.2-webkit-3.0

at which point everything should "just work". and honestly? iconic. 😭


πŸ’€ BUGS πŸ’€

for any kind of help or support, simply send a mail to the gtk-perl mailing list (gtk-perl-list@gnome.org). don't be shy bestie, they're nice. πŸ™ˆ


πŸ‘‘ AUTHORS πŸ‘‘

Emmanuel Rodriguez <potyl@cpan.org>. thank you for your service, legend. 🫢


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. 🫠 (so like, use it, love it, but nobody's promising anything.)

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.


okay that's the whole page bestie, you're fully caught up. this was Gtk3::WebKit(3), documented for perl v5.42.0 and dated 2025-07-25. stan a manpage that just works. mwah. πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from