Rechercher une page de manuel
Gtk2::Recent::Model.3pm
Langue: en
Version: 2008-01-15 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Gtk2::Recent::ModelHIERARCHY
Glib::Object +----Gtk2::Recent::Model
METHODS
model = Gtk2::Recent::Model->new ($sort)
-
- •
- $sort (sort)
Creates a new model, linked to the recent files list. $sort states the algorithm used to order the list: most recently used, least recently used or no order.
boolean = $model->add ($uri)
boolean = $model->add ($uri)
-
- •
- $uri (string)
Add a $uri to the list of recently used files. Return TRUE on success.
boolean = $model->add_full ($item)
boolean = $model->add_full ($item)
-
- •
- $item (item)
Add $item to the list of recently used files. Return TRUE on success.
$model->changed
$model->changed
- Emit the ``changed'' signal of the model.
$model->clear
$model->clear
- Clear the list of recently used files.
boolean = $model->delete ($uri)
boolean = $model->delete ($uri)
-
- •
- $uri (string)
Remove $uri from the list of recently used files. Return TRUE on success.
$model->set_filter_group ($group)
$model->set_filter_group ($group)
- Filter the list using $group. This will not affect the list of recently used files, it will only alter the result of the get_list method.
$model->set_filter_mime_types ($mime_type)
$model->set_filter_mime_types ($mime_type)
- Filter the list using $mime_type. This will not affect the list of recently used files, it will only alter the result of the get_list method.
$model->set_filter_uri_schemes ($uri_scheme)
$model->set_filter_uri_schemes ($uri_scheme)
- Filter the list using $uri_scheme. This will not affect the list of recently used files, it will only alter the result of the get_list method.
integer = $model->get_limit
integer = $model->get_limit
- Get the limit to the size of the list.
$model->set_limit ($limit)
$model->set_limit ($limit)
-
- •
- $limit (integer)
Set the limit to the size of the list. This will not affect the real list, only the list returned by the get_list method.
list = $model->get_list
list = $model->get_list
- Return the list of recently used files, in form of Gtk2::Recent::Item objects.
$model->remove_expired
$model->remove_expired
- Removes the expired items from the list.
$model->set_sort ($sort)
$model->set_sort ($sort)
-
- •
- $sort (sort)
Set the sorting algorithm for the list order.
PROPERTIES
- 'group-filters' (gpointer : readable / writable)
- List of groups to be allowed.
- 'limit' (integer : readable / writable)
- Max number of items allowed.
- 'mime-filters' (gpointer : readable / writable)
- List of mime types to be allowed.
- 'scheme-filters' (gpointer : readable / writable)
- List of URI schemes to be allowed.
- 'sort-type' (integer : readable / writable)
- Type of sorting to be done.
SIGNALS
- changed (Gtk2::Recent::Model, gpointer)
ENUMS AND FLAGS
enum sort
SEE ALSO
Gtk2::Recent, Glib::ObjectCOPYRIGHT
Copyright (C) 2005 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2::Recent for a full notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre