---
name: "Gtk2::RecentFilter"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::RecentFilter"
---

# Gtk2::RecentFilter(3pm)

wrapper for GtkRecentFilter

## NAME

Gtk2::RecentFilter - wrapper for GtkRecentFilter

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::RecentFilter
```

## METHODS

### recentfilter = Gtk2::RecentFilter-\>new

### $filter-\>add\_age ($days)

- •

  `$days` (integer)

### $filter-\>add\_application ($application)

- •

  `$application` (string)

### $filter-\>add\_custom ($needed, $func, $data=undef)

- •

  `$needed` (Gtk2::RecentFilterFlags)

- •

  `$func` (scalar)

- •

  `$data` (scalar)

### $filter-\>add\_group ($group)

- •

  `$group` (string)

### $filter-\>add\_mime\_type ($mime\_type)

- •

  `$mime_type` (string)

### $filter-\>add\_pattern ($pattern)

- •

  `$pattern` (string)

### $filter-\>add\_pixbuf\_formats

### boolean = $filter-\>filter ($filter\_info)

- •

  `$filter_info` (scalar)

### string = $filter-\>get\_name

### $filter-\>set\_name ($name)

- •

  `$name` (string)

### recentfilterflags = $filter-\>get\_needed

## ENUMS AND FLAGS

### flags Gtk2::RecentFilterFlags

- •

  '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

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
