[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-212-gf5205cd)
The branch, master has been updated
via f5205cdb145a423012f446b16d0211005b55695e (commit)
from 7e6e166d3f594ee822ef615e8766a3f712b5f80c (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
=========
gschem/src/x_fileselect.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
=================
Commit Messages
=================
commit f5205cdb145a423012f446b16d0211005b55695e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Wed Oct 8 19:54:55 2008 +0100
Cleanup whitespace errors introduced in last commit
(Introduces toplevel convenience variable to cut down on line lengths)
:100644 100644 dc90e6c... b0212a7... M gschem/src/x_fileselect.c
=========
Changes
=========
commit f5205cdb145a423012f446b16d0211005b55695e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Wed Oct 8 19:54:55 2008 +0100
Cleanup whitespace errors introduced in last commit
(Introduces toplevel convenience variable to cut down on line lengths)
diff --git a/gschem/src/x_fileselect.c b/gschem/src/x_fileselect.c
index dc90e6c..b0212a7 100644
--- a/gschem/src/x_fileselect.c
+++ b/gschem/src/x_fileselect.c
@@ -225,6 +225,7 @@ x_fileselect_open(GSCHEM_TOPLEVEL *w_current)
void
x_fileselect_save (GSCHEM_TOPLEVEL *w_current)
{
+ TOPLEVEL *toplevel = w_current->toplevel;
GtkWidget *dialog;
dialog = gtk_file_chooser_dialog_new (_("Save as..."),
@@ -254,14 +255,14 @@ x_fileselect_save (GSCHEM_TOPLEVEL *w_current)
/* add file filters to dialog */
x_fileselect_setup_filechooser_filters (GTK_FILE_CHOOSER (dialog));
/* set the current filename or directory name if new document */
- if ((w_current->toplevel->page_current->page_filename != NULL)
- && g_file_test (w_current->toplevel->page_current->page_filename, G_FILE_TEST_EXISTS)) {
+ if ((toplevel->page_current->page_filename != NULL) &&
+ g_file_test (toplevel->page_current->page_filename,
+ G_FILE_TEST_EXISTS)) {
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog),
- w_current->toplevel->page_current->page_filename);
- }
- else {
- gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER (dialog),
- "untitled.sch");
+ toplevel->page_current->page_filename);
+ } else {
+ gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog),
+ "untitled.sch");
}
gtk_dialog_set_default_response(GTK_DIALOG(dialog),
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs