Gtk2::RecentFilter(3)
π Gtk2::RecentFilter β NAME π
okay bestie, so this is Gtk2::RecentFilter β it's the wrapper for GtkRecentFilter π like, it's the lil bouncer at the door of your recent-files list deciding who gets in and who gets left on read π
(this page lives in the User Contributed Perl Documentation section, so you know it's the real deal β¨)
πΈ HIERARCHY πΈ
the family tree, and yes she has main character energy:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::RecentFilter
so she's a Glib::Object, she's a Glib::InitiallyUnowned, she's a Gtk2::Object, and then she's her π¦ iconic lineage ngl
β¨ METHODS β¨
π«Ά constructors and adding stuff
recentfilter = Gtk2::RecentFilter->newβ boom, brand new filter, fresh out the box π$filter->add_age ($days)β adds an age rule to the filter, so only recent things within a certain age get through β³$days(integer) β how many days back we're talking
$filter->add_application ($application)β only let stuff from a specific app pass π$application(string) β the application name
$filter->add_custom ($needed, $func, $data=undef)β you get to write your own lil rule, custom vibes only π$needed(Gtk2::RecentFilterFlags) β which flags your custom check needs$func(scalar) β your callback$data(scalar) β optional extra data you wanna pass along, defaults toundef
$filter->add_group ($group)β filters by group π$group(string)
$filter->add_mime_type ($mime_type)β only let a certain MIME type through, liketext/plainor whatever π¦$mime_type(string)
$filter->add_pattern ($pattern)β adds a glob pattern rule, like*.pngbestie πΈ$pattern(string)
$filter->add_pixbuf_formatsβ adds a rule so anythingGdkPixbufcan actually load gets through, no args needed, she just knows π₯
π using it and naming it
boolean = $filter->filter ($filter_info)β runs the filter against some info and tells you yes or no, true or false, in or out π$filter_info(scalar)
string = $filter->get_nameβ grabs the filter's name π·οΈ$filter->set_name ($name)β sets the filter's name β¨$name(string)
recentfilterflags = $filter->get_neededβ tells you which flags this filter actually needs π«
π ENUMS AND FLAGS π
flags Gtk2::RecentFilterFlags
all the flag options, every single one, no skipping:
'uri'/GTK_RECENT_FILTER_URIβ π'display-name'/GTK_RECENT_FILTER_DISPLAY_NAMEβ π'mime-type'/GTK_RECENT_FILTER_MIME_TYPEβ π¦'application'/GTK_RECENT_FILTER_APPLICATIONβ π'group'/GTK_RECENT_FILTER_GROUPβ πΈ'age'/GTK_RECENT_FILTER_AGEβ β³
π SEE ALSO π
go read these too, they're all in the friend group:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::Object
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team. π«Ά
This software is licensed under the LGPL. See Gtk2 for a full notice. π
ok that's the whole page bestie, you ate that fr fr π β¨
this was perl v5.42.0, dated 2025-07-25, from Gtk2::RecentFilter(3) β mwah, go slay some recent files ππ¦π
π¦ 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