1Gtk2::RecentChooser(3)User Contributed Perl DocumentationGtk2::RecentChooser(3)
2
3
4
6 Gtk2::RecentChooser - wrapper for GtkRecentChooser
7
9 Glib::Interface
10 +----Gtk2::RecentChooser
11
13 $chooser->add_filter ($filter)
14 • $filter (Gtk2::RecentFilter)
15
16 recentinfo = $chooser->get_current_item
17 string = $chooser->get_current_uri
18 $chooser->set_current_uri ($uri)
19 • $uri (string)
20
21 May croak with a Glib::Error in $@ on failure.
22
23 recentfilter = $chooser->get_filter
24 $chooser->set_filter ($filter)
25 • $filter (Gtk2::RecentFilter)
26
27 (list) = $chooser->get_items
28 integer = $chooser->get_limit
29 $chooser->set_limit ($limit)
30 • $limit (integer)
31
32 (filters) = $chooser->list_filters
33 boolean = $chooser->get_local_only
34 $chooser->set_local_only ($local_only)
35 • $local_only (boolean)
36
37 $chooser->remove_filter ($filter)
38 • $filter (Gtk2::RecentFilter)
39
40 $chooser->select_all
41 boolean = $chooser->get_select_multiple
42 $chooser->set_select_multiple ($select_multiple)
43 • $select_multiple (boolean)
44
45 $chooser->select_uri ($uri)
46 • $uri (string)
47
48 May croak with a Glib::Error in $@ on failure.
49
50 boolean = $chooser->get_show_icons
51 $chooser->set_show_icons ($show_icons)
52 • $show_icons (boolean)
53
54 boolean = $chooser->get_show_not_found
55 $chooser->set_show_not_found ($show_not_found)
56 • $show_not_found (boolean)
57
58 boolean = $chooser->get_show_private
59 $chooser->set_show_private ($show_private)
60 • $show_private (boolean)
61
62 boolean = $chooser->get_show_tips
63 $chooser->set_show_tips ($show_tips)
64 • $show_tips (boolean)
65
66 $chooser->set_sort_func ($sort_func, $sort_data=undef)
67 • $sort_func (scalar)
68
69 • $sort_data (scalar)
70
71 recentsorttype = $chooser->get_sort_type
72 $chooser->set_sort_type ($sort_type)
73 • $sort_type (Gtk2::RecentSortType)
74
75 $chooser->unselect_all
76 $chooser->unselect_uri ($uri)
77 • $uri (string)
78
79 (list) = $chooser->get_uris
81 'filter' (Gtk2::RecentFilter : default undef : readable / writable /
82 private / static-nick / static-blurb)
83 The current filter for selecting which resources are displayed
84
85 'limit' (integer : default -1 : readable / writable / private / static-
86 nick / static-blurb)
87 The maximum number of items to be displayed
88
89 'local-only' (boolean : default true : readable / writable / private /
90 static-nick / static-blurb)
91 Whether the selected resource(s) should be limited to local file:
92 URIs
93
94 'recent-manager' (Gtk2::RecentManager : default undef : writable /
95 construct-only / private / static-nick / static-blurb)
96 The RecentManager object to use
97
98 'select-multiple' (boolean : default false : readable / writable /
99 private / static-nick / static-blurb)
100 Whether to allow multiple items to be selected
101
102 'show-icons' (boolean : default true : readable / writable / private /
103 static-nick / static-blurb)
104 Whether there should be an icon near the item
105
106 'show-not-found' (boolean : default true : readable / writable /
107 private / static-nick / static-blurb)
108 Whether the items pointing to unavailable resources should be
109 displayed
110
111 'show-private' (boolean : default false : readable / writable / private
112 / static-nick / static-blurb)
113 Whether the private items should be displayed
114
115 'show-tips' (boolean : default false : readable / writable / private /
116 static-nick / static-blurb)
117 Whether there should be a tooltip on the item
118
119 'sort-type' (Gtk2::RecentSortType : default "none" : readable /
120 writable / private / static-nick / static-blurb)
121 The sorting order of the items displayed
122
124 item-activated (Gtk2::RecentChooser)
125 selection-changed (Gtk2::RecentChooser)
126
128 enum Gtk2::RecentSortType
129 • 'none' / 'GTK_RECENT_SORT_NONE'
130
131 • 'mru' / 'GTK_RECENT_SORT_MRU'
132
133 • 'lru' / 'GTK_RECENT_SORT_LRU'
134
135 • 'custom' / 'GTK_RECENT_SORT_CUSTOM'
136
137 enum GtkRecentChooserError
138 • 'not-found' / 'GTK_RECENT_CHOOSER_ERROR_NOT_FOUND'
139
140 • 'invalid-uri' / 'GTK_RECENT_CHOOSER_ERROR_INVALID_URI'
141
143 Gtk2, Glib::Interface
144
146 Copyright (C) 2003-2011 by the gtk2-perl team.
147
148 This software is licensed under the LGPL. See Gtk2 for a full notice.
149
150
151
152perl v5.36.0 2022-07-22 Gtk2::RecentChooser(3)