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

gEDA-cvs: pcb.git: branch: master updated (73de75e137a6c847259ecf4cabf4f70a86074584)



The branch, master has been updated
       via  73de75e137a6c847259ecf4cabf4f70a86074584 (commit)
      from  436c3c9f59d8eafc668a611bd8daef55710c99eb (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
=========

 src/hid/gtk/gtkhid-main.c |   17 -----------------
 src/hid/gtk/gui-dialog.c  |    2 ++
 2 files changed, 2 insertions(+), 17 deletions(-)


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

commit 73de75e137a6c847259ecf4cabf4f70a86074584
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    hid/gtk: use GTK dialog for confirming file-overwrite
    
    Since GTK 2.8 GTK provides an dialog for confirming file-overwriting.
    This dialog will be introduced by this patch. Needless code which was
    used for this will be removed.
    
    Closes-bug: lp-699508
    Reviewed-by: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

:100644 100644 688527a... b89974d... M	src/hid/gtk/gtkhid-main.c
:100644 100644 b622439... c079464... M	src/hid/gtk/gui-dialog.c

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

commit 73de75e137a6c847259ecf4cabf4f70a86074584
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    hid/gtk: use GTK dialog for confirming file-overwrite
    
    Since GTK 2.8 GTK provides an dialog for confirming file-overwriting.
    This dialog will be introduced by this patch. Needless code which was
    used for this will be removed.
    
    Closes-bug: lp-699508
    Reviewed-by: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index 688527a..b89974d 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -1382,23 +1382,6 @@ Save (int argc, char **argv, int x, int y)
   
   if (name)
     {
-      FILE *exist;
-      exist = fopen (name, "r");
-      if (exist)
-	{
-	  fclose (exist);
-	  if (ghid_dialog_confirm (_("File exists!  Ok to overwrite?"), NULL, NULL))
-	    {
-	      if (Settings.verbose)
-		fprintf (stderr, _("Overwriting %s\n"), name);
-	    }
-	  else
-	    {
-	      g_free (name);
-	      return 1;
-	    }
-	}
-      
       if (Settings.verbose)
 	fprintf (stderr, "%s:  Calling SaveTo(%s, %s)\n", 
 		 __FUNCTION__, function, name);
diff --git a/src/hid/gtk/gui-dialog.c b/src/hid/gtk/gui-dialog.c
index b622439..c079464 100644
--- a/src/hid/gtk/gui-dialog.c
+++ b/src/hid/gtk/gui-dialog.c
@@ -375,6 +375,8 @@ ghid_dialog_file_select_save (gchar * title, gchar ** path, gchar * file,
 					GTK_STOCK_OK, GTK_RESPONSE_OK,
 					NULL);
 
+  gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog),
+                                                  TRUE);
   gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
 
   if (path && *path && **path)



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