SaveBox patch



OK, I sent this to 'ftp://ftp.gtk.org/pub/gtk/patches/' but it didn't seem
to work, so I'm posting it here instead. Could someone give me some
feedback about when/if this is going to be included, as several people
have asked me when it's going to appear.

Thanks,


This patch creates the new Savebox widget, as announced on the gtk-devel
mailing list a few weeks ago. This can be used instead of the fileselector
widget for the special case of saving files.

I'm going for a higher level API than the fileselector widget which should
mean that users can choose which save widget they want to use.

My widget supports the XDS protocol (drag-and-drop saving). It provides
three signals:

"save_to_file", gives the application a pathname and expects it to
save there, returning a flag indicating success;

"saved_to_uri", indicates that the data is safely saved - the application
should mark the data as unmodified and update its stored uri for the file;

"save_done", upon which the app should simply hide/destroy the widget.

The idea of separating save_to_file and saved_to_uri is to cope with
the four possible save types:

- Save to local file (both signals emitted)
- Save to local app via a scrap file (only save_to_file)
- Save to remote file (only saved_to_uri)
- Save to remove app (neither emitted)

XDS references:

Technical spec: <http://www.its.caltech.edu/~jafl/xds/>
Example/test apps: <http://www.ecs.soton.ac.uk/~tal197/xds.php3>
Sample filer supporting XDS:
	<http://www.ecs.soton.ac.uk/~tal197/Releases/roxfiler-0.1.16.tgz>
Sample program using this widget: (does not require patched GTK+)
	<http://www.ecs.soton.ac.uk/~tal197/Releases/savebox-0.1.1.tgz>

Thanks,


Thomas Leonard
-- 
tal197@ecs.soton.ac.uk
3rd year computer science
The ROX desktop (free/GPL) : http://www.ecs.soton.ac.uk/~tal197/

gtk-tal197-000303-0.patch.gz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]