Gtk2::RecentAction(3)

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

πŸ’– 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 🌈

  • Gtk2
  • Glib::Object
  • Gtk2::Action

go read those too, they're all part of the same friend group iykyk πŸ’œ


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