Re: [RFC] Simple file monitoring API for GLib
- From: Federico Mena Quintero <federico ximian com>
- To: Emmanuele Bassi <ebassi gmail com>
- Cc: GTK Devel List <gtk-devel-list gnome org>
- Subject: Re: [RFC] Simple file monitoring API for GLib
- Date: Mon, 08 May 2006 20:06:01 -0500
On Mon, 2006-05-08 at 22:49 +0100, Emmanuele Bassi wrote:
> A while ago, on IRC, Christian Persch made the request[1] that the
> monitoring of the storage file used by the GtkRecentManager could be
> overridden by libgnome, so that every application using the GnomeProgram
> API would automagically have notifications of file changes using
> gnome-vfs, instead of the default implementation which stat()s the file
> once in a while[2].
While having a "monitor a file" abstraction in Glib would be nice, I
don't think it should be added only to monitor the recent-files storage.
Displaying a list of recent-files is always initiated by the user, and
all such displays are short-lived: a File menu, and a file chooser.
So, you don't need to keep anything up to date continuously. You can
just re-read the recent-files storage when the user brings up such a
list.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]