Gtk2::RecentChooser − wrapper for GtkRecentChooser
Glib::Interface
+−−−−Gtk2::RecentChooser
$chooser−>add_filter ($filter)
• |
$filter (Gtk2::RecentFilter) |
recentinfo =
$chooser−>get_current_item
string = $chooser−>get_current_uri
$chooser−>set_current_uri ($uri)
• |
$uri (string) |
May croak with a Glib::Error in $@ on failure.
recentfilter
= $chooser−>get_filter
$chooser−>set_filter ($filter)
• |
$filter (Gtk2::RecentFilter) |
(list) =
$chooser−>get_items
integer = $chooser−>get_limit
$chooser−>set_limit ($limit)
• |
$limit (integer) |
(filters) =
$chooser−>list_filters
boolean = $chooser−>get_local_only
$chooser−>set_local_only ($local_only)
• |
$local_only (boolean) |
$chooser−>remove_filter ($filter)
• |
$filter (Gtk2::RecentFilter) |
$chooser−>select_all
boolean = $chooser−>get_select_multiple
$chooser−>set_select_multiple
($select_multiple)
• |
$select_multiple (boolean) |
$chooser−>select_uri ($uri)
• |
$uri (string) |
May croak with a Glib::Error in $@ on failure.
boolean =
$chooser−>get_show_icons
$chooser−>set_show_icons ($show_icons)
• |
$show_icons (boolean) |
boolean =
$chooser−>get_show_not_found
$chooser−>set_show_not_found
($show_not_found)
• |
$show_not_found (boolean) |
boolean =
$chooser−>get_show_private
$chooser−>set_show_private ($show_private)
• |
$show_private (boolean) |
boolean =
$chooser−>get_show_tips
$chooser−>set_show_tips ($show_tips)
• |
$show_tips (boolean) |
$chooser−>set_sort_func ($sort_func, $sort_data=undef)
• |
$sort_func (scalar) |
|||
• |
$sort_data (scalar) |
recentsorttype
= $chooser−>get_sort_type
$chooser−>set_sort_type ($sort_type)
• |
$sort_type (Gtk2::RecentSortType) |
$chooser−>unselect_all
$chooser−>unselect_uri ($uri)
• |
$uri (string) |
(list) = $chooser−>get_uris
’filter’
(Gtk2::RecentFilter : default undef : readable / writable /
private)
The current filter for selecting which resources are displayed
’limit’ (integer : default −1 : readable / writable / private)
The maximum number of items to be displayed
’local−only’ (boolean : default true : readable / writable / private)
Whether the selected resource(s) should be limited to local file: URIs
’recent−manager’
(Gtk2::RecentManager : default undef : writable /
construct-only / private)
The RecentManager object to use
’select−multiple’
(boolean : default false : readable / writable /
private)
Whether to allow multiple items to be selected
’show−icons’ (boolean : default true : readable / writable / private)
Whether there should be an icon near the item
’show−not−found’
(boolean : default true : readable / writable /
private)
Whether the items pointing to unavailable resources should be displayed
’show−private’
(boolean : default false : readable / writable /
private)
Whether the private items should be displayed
’show−tips’ (boolean : default false : readable / writable / private)
Whether there should be a tooltip on the item
’sort−type’
(Gtk2::RecentSortType : default "none" : readable
/
writable / private)
The sorting order of the items displayed
item-activated
(Gtk2::RecentChooser)
selection-changed (Gtk2::RecentChooser)
enum Gtk2::RecentSortType
• |
’none’ / ’ GTK_RECENT_SORT_NONE ’ |
|||
• |
’mru’ / ’ GTK_RECENT_SORT_MRU ’ |
|||
• |
’lru’ / ’ GTK_RECENT_SORT_LRU ’ |
|||
• |
’custom’ / ’ GTK_RECENT_SORT_CUSTOM ’ |
enum GtkRecentChooserError
• |
’not−found’ / ’ GTK_RECENT_CHOOSER_ERROR_NOT_FOUND ’ | ||
• |
’invalid−uri’ / ’ GTK_RECENT_CHOOSER_ERROR_INVALID_URI ’ |
Gtk2, Glib::Interface
Copyright (C) 2003−2011 by the gtk2−perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.