1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
/* -*- C -*- */ 
require gtk210; 
class GTK2.RecentFilter; 
inherit GTK2.Object; 
 
//! A filter for selecting a subset of recently used files. 
 
void create(?mapping(string:mixed) props) 
//! Create a new GTK2.RecentFilter. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  if (args) { 
    INIT_WITH_PROPS(GTK_TYPE_RECENT_FILTER); 
    pgtk2_pop_n_elems(args); 
  } else { 
    GtkRecentFilter *gd; 
    gd=gtk_recent_filter_new(); 
    THIS->obj=G_OBJECT(gd); 
  } 
  pgtk2__init_this_object(); 
} 
 
string get_name(); 
//! Gets the human-readable name for the filter. 
 
void set_name(string name); 
//! Sets the human-readable name of the filter; this is the string that 
//! will be displayed in the recently used resources selector user 
//! interface if there is a selectable list of filters. 
 
void add_mime_type(string mime_type); 
//! Adds a rule that allows resources based on their registered MIME type. 
 
void add_pattern(string pattern); 
//! Adds a rule that allows resources based on a pattern matching their 
//! display name. 
 
void add_pixbuf_formats(); 
//! Adds a rule allowing image files in the formats supported by GdkPixbuf. 
 
void add_application(string application); 
//! Adds a rule that allows resources based on the name of the application 
//! that has registered them. 
 
void add_group(string group); 
//! Adds a rule that allows resources based on the name of the group to 
//! which they belong. 
 
void add_age(int days); 
//! Adds a rule that allows resources based on their age - that is, the 
//! number of days elapsed since they were last modified. 
 
/* 
int get_needed(); 
//! Gets the fields that need to be filled in for the structure passed to 
//! filter(). 
*/ 
endrequire;