[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: gschem 27-sep-06 cvs testing notes
On Thursday 28 September 2006 00:22, John Griessen wrote:
> I noticed a difference in the new printing menu. Before,
> the choices of page size and extents no margins and printer
> might have been sticky, or I might have had definitions for their defaults
> in a gafrc file. Now they go to a generic default after each use. They
> don't keep the last value. They don't use the gafrc file settings for
> (paper-size 17.0 11.0) ; B
> (print-command "lp -d bsize")
>
The print command is sticky with the attached patch. I'm looking at why the
other options aren't sticky -- they should be. *frown*
Peter
--
Fisher Society publicity officer http://tinyurl.com/o39w2
CUSBC novices, match and league secretary http://tinyurl.com/mwrc9
v3sw6YChw7$ln3pr6$ck3ma8u7+Lw3+2m0l7Ci6e4+8t4Gb8en6g6Pa2Xs5Mr4p4
hackerkey.com peter-b.co.uk
? gschem.log
Index: x_print.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_print.c,v
retrieving revision 1.23
diff -u -r1.23 x_print.c
--- x_print.c 8 Sep 2006 00:57:57 -0000 1.23
+++ x_print.c 28 Sep 2006 07:17:58 -0000
@@ -685,6 +685,13 @@
{
destination = command;
result = f_print_command (w_current, command);
+
+ /* If successful, save command for future printing */
+ if (!result)
+ {
+ g_free (w_current->print_command);
+ w_current->print_command = g_strdup (command);
+ }
}
else
{
PGP signature
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev