[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.5.2-20090328-57-g7253fb5)



The branch, master has been updated
       via  7253fb551e683b3c7c15c0f8595178f88129e7c5 (commit)
      from  c006ec0603fd570ec6c10386f3a3d19f9cbd525d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gattrib/src/x_dialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 7253fb551e683b3c7c15c0f8595178f88129e7c5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gattrib: Focus the "save" button in the close confirmation dialog
    
    For safety, "Close without saving" should not be the default action.
    Looking at other GTK (and GNOME) applications, the default action used
    seems to be "Save" (this is what the user will probably want to choose).

:100644 100644 fe4cb7f... 9766634... M	gattrib/src/x_dialog.c

=========
 Changes
=========

commit 7253fb551e683b3c7c15c0f8595178f88129e7c5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gattrib: Focus the "save" button in the close confirmation dialog
    
    For safety, "Close without saving" should not be the default action.
    Looking at other GTK (and GNOME) applications, the default action used
    seems to be "Save" (this is what the user will probably want to choose).

diff --git a/gattrib/src/x_dialog.c b/gattrib/src/x_dialog.c
index fe4cb7f..9766634 100644
--- a/gattrib/src/x_dialog.c
+++ b/gattrib/src/x_dialog.c
@@ -234,6 +234,8 @@ void x_dialog_unsaved_data()
                                           GTK_RESPONSE_CANCEL,
                                           -1);
 
+  gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
+
   switch (gtk_dialog_run (GTK_DIALOG (dialog)))
     {
       case GTK_RESPONSE_NO:




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs