Gtk3::WebKit2(3pm)

πŸ“¦
version 0.06 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 (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