After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 51051 - patch to create new Savebox widget.
patch to create new Savebox widget.
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
1.2.x
Other Linux
: Low normal
: future
Assigned To: gtk-bugs
gtk-bugs
: 68997 69664 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-02-18 08:37 UTC by Sri Ramkrishna
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gzipped patch (5.94 KB, patch)
2001-02-18 08:37 UTC, Sri Ramkrishna
none Details | Review

Description Sri Ramkrishna 2001-02-18 08:37:07 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/
Comment 1 Sri Ramkrishna 2001-02-18 08:37:50 UTC
Created attachment 283 [details] [review]
gzipped patch
Comment 2 Owen Taylor 2001-02-18 23:11:04 UTC
A file selection revision will be made, but not until after
GTK+-2.0
Comment 3 Thomas Leonard 2001-06-30 11:07:44 UTC
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


Comment 4 Owen Taylor 2002-01-18 03:50:45 UTC
*** Bug 68997 has been marked as a duplicate of this bug. ***
Comment 5 Matthias Clasen 2002-01-25 15:10:30 UTC
*** Bug 69664 has been marked as a duplicate of this bug. ***
Comment 6 Sri Ramkrishna 2004-03-30 17:56:14 UTC
Hmm.  I don't remember putting in this bug or even giving patches.  Unless I
must have done it on behalf of someone else.