Re: Recently Used Files Proposal
- From: Federico Mena Quintero <federico ximian com>
- To: Emmanuele Bassi <ebassi gmail com>
- Cc: GTK Devel List <gtk-devel-list gnome org>
- Subject: Re: Recently Used Files Proposal
- Date: Wed, 08 Jun 2005 00:44:29 -0500
On Thu, 2005-06-02 at 10:19 +0200, Emmanuele Bassi wrote:
> I've attached a prototype API for GtkRecentItem and GtkRecentManager
> (already set to live in libegg, for the time being). Let me know what
> you think of it.
Oh, BTW... to see what other systems do already, I looked at the Win32
API and Cocoa.
Win32 has a little set of functions:
SHAddToRecentDocs:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shaddtorecentdocs.asp
"Most Recently Used" functions:
CreateMRUListW()
AddMRUStringW()
EnumMRUListW()
FreeMRUList()
These are all pretty trivial; they are really what one would use to
implement the core of your proposed GtkRecentManager, and the rest is
higher-level functions. So you are on a good track, as they don't
really have anything more exotic than that :)
Cocoa doesn't seem to have much in this regard, or I couldn't find it.
I *think* its recent-files list gets maintained automatically if you use
their NSDocument classes.
Emmanuele, do you already have a working parser for XBEL using libxml2
or whatever? This would be a good start to implement the API for GTK+.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]