Gtk2::Recent.3pm

Langue: en

Version: 2005-01-27 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::Recent - Perl wrapper to the recent files spec Gtk implementation

SYNOPSIS

   use Gnome2::VFS '-init';
   use Gtk2::Recent;
 
   my $model = Gtk2::Recent::Model->new('none');
   $model->add('file:///tmp/some_picture.png');
 
   my $item = Gtk2::Recent::Item->new;
   $item->set_uri('file:///music/REM_-_Leaving_New_York.ogg');
   $item->set_mime_type('application/ogg');
   $item->set_group('Rhythmbox');
 
   $model->add_full($item);
 
   my $new_model = Gtk2::Recent::Model->new('mru');
   $model->set_filter_mime_types('image/*');
   foreach my $i ($model->get_list) {
         print "URI: "       . $i->get_uri       . "\n";
         print "MIME Type: " . $i->get_mime_type . "\n";
         print "\n";
   }
 
 

ABSTRACT

Perl bindings to the recent files spec Gtk implementation, for use with gtk2-perl.

DESCRIPTION

This model allows you to access, modify and show the recent files list, using the recent files specification provided by freedesktop.org and implemented using the Gtk libraries.

The recent files list are accessed using the Gtk2::Recent::Model object; single entries in the recent files list are represented using the Gtk2::Recent::Item object.

To discuss gtk2-perl, ask questions and flame/praise the authors, join gtk-perl-list@gnome.org at lists.gnome.org.

Find out more about Gnome at http://www.gnome.org.

CAVEAT

This binding uses the EggRecent objects provided by libegg. As such, it is not api stable, nor it is installed as a shared object

SEE ALSO

perl(1), Gtk2(3pm), Gnome2(3pm) and the recent files spec on http://freedesktop.org

AUTHOR

Emmanuele Bassi <ebassi (at) gmail.com>

gtk2-perl created by the gtk2-perl team: http://gtk2-perl.sf.net

Copyright 2005 by Emmanuele Bassi

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.