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 306755 - gnome-sound-recorder does not ask to save the files
gnome-sound-recorder does not ask to save the files
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: Gnome-Sound-Recorder
unspecified
Other Linux
: Normal normal
: 2.11.4
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-07 10:14 UTC by Archana Shah
Modified: 2005-06-10 13:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (6.26 KB, patch)
2005-06-07 15:31 UTC, Archana Shah
none Details | Review
Patch with the suggested changes (6.73 KB, patch)
2005-06-09 06:25 UTC, Archana Shah
none Details | Review

Description Archana Shah 2005-06-07 10:14:58 UTC
Steps to reproduce:
--------------------
1. Launch gnome-sound-recorder
2. Record some audio
3. Close the window.

Bug: gnome-sound-recorder does not ask to save the files.
Comment 1 Archana Shah 2005-06-07 10:26:32 UTC
If there are any unsaved files, throw up a dialog before exiting, asking whether
user wants to save the file or quit without saving.

Will be attaching a patch soon.
Comment 2 Archana Shah 2005-06-07 15:31:25 UTC
Created attachment 47387 [details] [review]
Proposed patch
Comment 3 Archana Shah 2005-06-07 15:38:40 UTC
Have added a gboolean value in the GSRWindowPrivate structure to store the state
(saved/unsaved) of the current window. Before exiting, check whether this value
is false. If it is false, then throw up a dialog asking whether user wants to
save it or exit without saving. And then handle user response accordingly.
Comment 4 Ronald Bultje 2005-06-08 08:29:53 UTC
Hi Archana, two things:

* button order seems odd; you have no, cancel, yes. I thought the normal order
was cancel, no, yes. Can you change that?
* if the user presses yes, you save the file, but the widget does not get
destroyed. Is that intentional?
Comment 5 Archana Shah 2005-06-09 06:22:42 UTC
Hi Ronald,

 > * button order seems odd; you have no, cancel, yes. I thought the normal order
 > was cancel, no, yes. Can you change that?

ui for the dialog is taken from gedit.

Following is from the hig guidelines.
--------------------------------------------------------------------------------
A confirmation alert...

    * uses the stock warning icon.
    * presents a button labelled with a verb or verb phrase describing the
action to be confirmed, or labelled OK if such a phrase would be longer than
three words. This button is placed in the bottom right corner of the alert.
    * presents a Cancel button that will prevent execution of the user's
command. This button is placed to the immediate left of the OK or equivalent button.
    * may present an alternate action button or a convenience button. Place this
button to the left of the Cancel button.
--------------------------------------------------------------------------------

 > * if the user presses yes, you save the file, but the widget does not get
 > destroyed. Is that intentional?

Window should be destroyed after a save, attaching the patch with the changes.
Please review.

Comment 6 Archana Shah 2005-06-09 06:25:01 UTC
Created attachment 47494 [details] [review]
Patch with the suggested changes
Comment 7 Ronald Bultje 2005-06-09 08:00:31 UTC
Looks good, thanks Archana.
Comment 8 Archana Shah 2005-06-10 09:31:23 UTC
Committed the patch, Thanks.