GNOME Bugzilla – Bug 51051
patch to create new Savebox widget.
Last modified: 2004-12-22 21:47:04 UTC
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 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/
Created attachment 283 [details] [review] gzipped patch
A file selection revision will be made, but not until after GTK+-2.0
Note that the URLs in the original are now out-of-date: Technical spec: http://www.newplanetsoftware.com/xds/ Example/test apps: http://rox.sourceforge.net/archive.php3 (and others on the same site) Filer supporting XDS: http://rox.sourceforge.net/rox_filer.php3
*** Bug 68997 has been marked as a duplicate of this bug. ***
*** Bug 69664 has been marked as a duplicate of this bug. ***
Hmm. I don't remember putting in this bug or even giving patches. Unless I must have done it on behalf of someone else.