Gtk2::RecentAction(3)
π Gtk2::RecentAction π
okay bestie, welcome to Gtk2::RecentAction β she's a little wrapper for GtkRecentAction and honestly? she's serving. this page lives in the User Contributed Perl Documentation corner of the Gtk2::RecentAction(3) manual, and we're gonna get you fully caught up. no gatekeeping here π«Ά
β¨ SYNOPSIS β¨
my $action = Gtk2::RecentAction->new (name => name,
label => label,
tooltip => tooltip,
stock-id => stock_id,
recent-manager => manager);
okay so real talk β this constructor slightly deviates from the convenience constructor in the C API. not a glow-up, not a downgrade, just a lil difference. instead of passing in a list of values for name, label, tooltip, stock-id and value, you just use key => value pairs, exactly like you'd do with Glib::Object::new. that's it, that's the whole vibe. π
πΈ HIERARCHY πΈ
Glib::Object
+----Gtk2::Action
+----Gtk2::RecentAction
look at the family tree bestie, she comes from a long line of icons π
π¦ INTERFACES π¦
Gtk2::Buildable
Gtk2::RecentChooser
she implements both, she's multi-talented, she contains multitudes β¨
π METHODS π
boolean = $action->get_show_numbers
$action->set_show_numbers ($show_numbers)
$show_numbers(boolean)
so you can get the show-numbers flag and you can set the show-numbers flag. tiny method, big main character energy. also heads up, there's a lil bullet item that comes with it:
$show_numbers(boolean)
yep, that's the argument type, it's a boolean, fr fr. π
π PROPERTIES π
'show-numbers'(boolean : default false : readable / writable) β whether the items should be displayed with a number
readable and writable, defaulting to false, so out of the box she's not numbering anything. turn it on and suddenly everything's got a lil number next to it. it's giving organized. it's giving list. we love her ππ
π SEE ALSO π
Gtk2Glib::ObjectGtk2::Action
go read those too, they're all part of the same friend group iykyk π
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay legal bestie moment: that's LGPL, not a vibe, an actual license. respect it. π«Ά
and that's the whole page, you ate it, you consumed the entire manual, slay π
β¨ this was perl v5.42.0, dated 2025-07-25, from the Gtk2::RecentAction(3) era of the docs. bye bestie, go build something iconic πΈπ¦π
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms