Gtk2::RecentChooser.3pm

Langue: en

Version: 2010-05-02 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::RecentChooser

HIERARCHY

   Glib::Interface
   +----Gtk2::RecentChooser
 
 

METHODS

$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

PROPERTIES

'filter' (Gtk2::RecentFilter : readable / writable / private)
The current filter for selecting which resources are displayed
'limit' (integer : readable / writable / private)
The maximum number of items to be displayed
'local-only' (boolean : readable / writable / private)
Whether the selected resource(s) should be limited to local file: URIs
'recent-manager' (Gtk2::RecentManager : writable / construct-only / private)
The RecentManager object to use
'select-multiple' (boolean : readable / writable / private)
Whether to allow multiple items to be selected
'show-icons' (boolean : readable / writable / private)
Whether there should be an icon near the item
'show-not-found' (boolean : readable / writable / private)
Whether the items pointing to unavailable resources should be displayed
'show-private' (boolean : readable / writable / private)
Whether the private items should be displayed
'show-tips' (boolean : readable / writable / private)
Whether there should be a tooltip on the item
'sort-type' (Gtk2::RecentSortType : readable / writable / private)
The sorting order of the items displayed

SIGNALS

item-activated (Gtk2::RecentChooser)
selection-changed (Gtk2::RecentChooser)

ENUMS AND FLAGS

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'

SEE ALSO

Gtk2, Glib::Interface Copyright (C) 2003-2008 by the gtk2-perl team.

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