1Gtk2::RecentChooser(3)User Contributed Perl DocumentationGtk2::RecentChooser(3)
2
3
4

NAME

6       Gtk2::RecentChooser - wrapper for GtkRecentChooser
7

HIERARCHY

9         Glib::Interface
10         +----Gtk2::RecentChooser
11

METHODS

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

PROPERTIES

81       'filter' (Gtk2::RecentFilter : default undef : readable / writable /
82       private)
83           The current filter for selecting which resources are displayed
84
85       'limit' (integer : default -1 : readable / writable / private)
86           The maximum number of items to be displayed
87
88       'local-only' (boolean : default true : readable / writable / private)
89           Whether the selected resource(s) should be limited to local file:
90           URIs
91
92       'recent-manager' (Gtk2::RecentManager : default undef : writable /
93       construct-only / private)
94           The RecentManager object to use
95
96       'select-multiple' (boolean : default false : readable / writable /
97       private)
98           Whether to allow multiple items to be selected
99
100       'show-icons' (boolean : default true : readable / writable / private)
101           Whether there should be an icon near the item
102
103       'show-not-found' (boolean : default true : readable / writable /
104       private)
105           Whether the items pointing to unavailable resources should be
106           displayed
107
108       'show-private' (boolean : default false : readable / writable /
109       private)
110           Whether the private items should be displayed
111
112       'show-tips' (boolean : default false : readable / writable / private)
113           Whether there should be a tooltip on the item
114
115       'sort-type' (Gtk2::RecentSortType : default "none" : readable /
116       writable / private)
117           The sorting order of the items displayed
118

SIGNALS

120       item-activated (Gtk2::RecentChooser)
121       selection-changed (Gtk2::RecentChooser)
122

ENUMS AND FLAGS

124   enum Gtk2::RecentSortType
125       ·   'none' / 'GTK_RECENT_SORT_NONE'
126
127       ·   'mru' / 'GTK_RECENT_SORT_MRU'
128
129       ·   'lru' / 'GTK_RECENT_SORT_LRU'
130
131       ·   'custom' / 'GTK_RECENT_SORT_CUSTOM'
132
133   enum GtkRecentChooserError
134       ·   'not-found' / 'GTK_RECENT_CHOOSER_ERROR_NOT_FOUND'
135
136       ·   'invalid-uri' / 'GTK_RECENT_CHOOSER_ERROR_INVALID_URI'
137

SEE ALSO

139       Gtk2, Glib::Interface
140
142       Copyright (C) 2003-2011 by the gtk2-perl team.
143
144       This software is licensed under the LGPL.  See Gtk2 for a full notice.
145
146
147
148perl v5.30.1                      2020-01-30            Gtk2::RecentChooser(3)
Impressum