[PATCH] Make "save as" default option.

View: New views
1 Messages — Rating Filter:   Alert me  

[PATCH] Make "save as" default option.

by fishor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is better to make "save as" default option to
prevent any accinedts.

Signed-off-by: Alexey Fisher <bug-track@...>
---
 grecord/src/gsr-window.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/grecord/src/gsr-window.c b/grecord/src/gsr-window.c
index e2f8742..808177d 100644
--- a/grecord/src/gsr-window.c
+++ b/grecord/src/gsr-window.c
@@ -865,12 +865,12 @@ gsr_discard_confirmation_dialog (GSRWindow *window, gboolean closing)
     _("Save recording?"));
 
  gtk_dialog_add_buttons (GTK_DIALOG (confirmation_dialog),
+ GTK_STOCK_SAVE_AS, GTK_RESPONSE_YES,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
  closing ?
   _("Close _without Saving") :
   _("Continue _without Saving"),
- GTK_RESPONSE_YES,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_SAVE_AS, GTK_RESPONSE_NO, NULL);
+ GTK_RESPONSE_NO, NULL);
 
  gtk_window_set_title (GTK_WINDOW (confirmation_dialog), "");
 
@@ -880,7 +880,7 @@ gsr_discard_confirmation_dialog (GSRWindow *window, gboolean closing)
  response_id = gtk_dialog_run (GTK_DIALOG (confirmation_dialog));
 
  switch (response_id) {
- case GTK_RESPONSE_NO:
+ case GTK_RESPONSE_YES:
  /* hiding the confirmation dialog allows the user to
  see only one dialog at a time if the user click cancel
  in the file dialog, they won't expect to return to the
@@ -890,7 +890,7 @@ gsr_discard_confirmation_dialog (GSRWindow *window, gboolean closing)
  ret = window->priv->has_file;
  break;
 
- case GTK_RESPONSE_YES:
+ case GTK_RESPONSE_NO:
  ret = TRUE;
  break;
 
--
1.6.3.3

_______________________________________________
gnome-multimedia mailing list
gnome-multimedia@...
http://mail.gnome.org/mailman/listinfo/gnome-multimedia