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:
Example/test apps:
Sample filer supporting XDS:
Sample program using this widget: (does not require patched GTK+)
Thanks,
Thomas Leonard
--
tal197@ecs.soton.ac.uk
3rd year computer science
The ROX desktop (free/GPL) : http://www.ecs.soton.ac.uk/~tal197/