Gtk2::R...tChooser(3)
β¨ NAME β¨
okay so Gtk2::RecentChooser is literally a wrapper for GtkRecentChooser π
that's it, that's the whole job description, no cap.
and btw bestie, you're reading the Gtk2::RecentChooser(3) page from the User Contributed Perl Documentation β yes she's a Perl manual page and yes she ate π
π¦ HIERARCHY π¦
the family tree is giving short and iconic:
Glib::Interface
+----Gtk2::RecentChooser
so Gtk2::RecentChooser descends from Glib::Interface and that is the entire ancestry. lowkey elegant πΈ
π METHODS π
$chooser->add_filter ($filter)β pops a filter in, obsessed.$filterβ aGtk2::RecentFilter, that's the type bestie.
recentinfo = $chooser->get_current_itemβ hands you back arecentinfoand that's the vibe β¨string = $chooser->get_current_uriβ returns astring, the current uri one, we love a simple getter.$chooser->set_current_uri ($uri)β sets the current uri, main character behaviour.$uriβ astring.- > β οΈ heads up: this one may croak with a
Glib::Errorin$@on failure. so wrap it in an eval, bestie, don't let it catch you lacking π
recentfilter = $chooser->get_filterβ gives you arecentfilter. periodt.$chooser->set_filter ($filter)β sets the filter, slay.$filterβ aGtk2::RecentFilter.
(list) = $chooser->get_itemsβ returns a(list)of items. iconic.integer = $chooser->get_limitβ returns aninteger, the limit obviously.$chooser->set_limit ($limit)β sets the limit, no more, no less π$limitβ aninteger.
(filters) = $chooser->list_filtersβ hands back(filters), plural, she's thorough.boolean = $chooser->get_local_onlyβ returns aboolean, true/false energy.$chooser->set_local_only ($local_only)β flips the local-only boolean.$local_onlyβ aboolean.
$chooser->remove_filter ($filter)β yeets a filter out of the lineup, respectfully.$filterβ aGtk2::RecentFilter.
$chooser->select_allβ selects all of them. go big or go home π«Άboolean = $chooser->get_select_multipleβ returns aboolean. is multiple selection allowed? that's the question.$chooser->set_select_multiple ($select_multiple)β sets that same boolean, your call bestie.$select_multipleβ aboolean.
$chooser->select_uri ($uri)β selects a uri by hand, very deliberate of you.$uriβ astring.- > β οΈ also may croak with a
Glib::Errorin$@on failure. same drill: guard it π«Ά
boolean = $chooser->get_show_iconsβ returns aboolean, icons or no icons.$chooser->set_show_icons ($show_icons)β toggles it.$show_iconsβ aboolean.
boolean = $chooser->get_show_not_foundβ returns abooleanabout the not-found ones.$chooser->set_show_not_found ($show_not_found)β toggles that one too.$show_not_foundβ aboolean.
boolean = $chooser->get_show_privateβ returns aboolean, private stuff visible or nah.$chooser->set_show_private ($show_private)β sets it.$show_privateβ aboolean.
boolean = $chooser->get_show_tipsβ returns aboolean, tips on or off.$chooser->set_show_tips ($show_tips)β sets it, tooltip girlies rise.$show_tipsβ aboolean.
$chooser->set_sort_func ($sort_func, $sort_data=undef)β your very own custom sort function, custom girlie behaviour π$sort_funcβ ascalar.$sort_dataβ ascalar. note the=undefdefault, it's optional.
recentsorttype = $chooser->get_sort_typeβ returns arecentsorttype. yes that's the actual return name, we don't make the rules.$chooser->set_sort_type ($sort_type)β sets how the sorting goes down.$sort_typeβ aGtk2::RecentSortType.
$chooser->unselect_allβ the opposite of select-all. deselects everything, clean slate β¨$chooser->unselect_uri ($uri)β unselects one specific uri, surgical.$uriβ astring.
(list) = $chooser->get_urisβ hands back a(list)of uris. plural again, she contains multitudes.
π PROPERTIES π
'filter'(Gtk2::RecentFilter: defaultundef: readable / writable / private / static-nick / static-blurb) β The current filter for selecting which resources are displayed. it's giving curator energy.'limit'(integer: default-1: readable / writable / private / static-nick / static-blurb) β The maximum number of items to be displayed. yes-1is the default, that's the number, don't come for me.'local-only'(boolean: defaulttrue: readable / writable / private / static-nick / static-blurb) β Whether the selected resource(s) should be limited to localfile:URIs.'recent-manager'(Gtk2::RecentManager: defaultundef: writable / construct-only / private / static-nick / static-blurb) β TheRecentManagerobject to use. β οΈ note she'swritable/construct-onlyβ not readable, bestie, so this one's a construct-time situation only.'select-multiple'(boolean: defaultfalse: readable / writable / private / static-nick / static-blurb) β Whether to allow multiple items to be selected.'show-icons'(boolean: defaulttrue: readable / writable / private / static-nick / static-blurb) β Whether there should be an icon near the item.'show-not-found'(boolean: defaulttrue: readable / writable / private / static-nick / static-blurb) β Whether the items pointing to unavailable resources should be displayed.'show-private'(boolean: defaultfalse: readable / writable / private / static-nick / static-blurb) β Whether the private items should be displayed.'show-tips'(boolean: defaultfalse: readable / writable / private / static-nick / static-blurb) β Whether there should be a tooltip on the item.'sort-type'(Gtk2::RecentSortType: default"none": readable / writable / private / static-nick / static-blurb) β The sorting order of the items displayed.
π¨ SIGNALS π¨
item-activated(Gtk2::RecentChooser) β she fires, you listen πselection-changed(Gtk2::RecentChooser) β also fires, also you listen.
π ENUMS AND FLAGS π
enum Gtk2::RecentSortType
'none'/GTK_RECENT_SORT_NONE'mru'/GTK_RECENT_SORT_MRU'lru'/GTK_RECENT_SORT_LRU'custom'/GTK_RECENT_SORT_CUSTOM
enum GtkRecentChooserError
'not-found'/GTK_RECENT_CHOOSER_ERROR_NOT_FOUND'invalid-uri'/GTK_RECENT_CHOOSER_ERROR_INVALID_URI
π SEE ALSO π
Gtk2Glib::Interface
go read those, bestie, iykyk π¦
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
and that's the whole page, bestie π«Ά this was perl v5.42.0, dated 2025-07-25, and it's the Gtk2::RecentChooser(3) manual page signing off. stay iconic, wrap your croaks, and go select something πβ¨π
π¦ 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