delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/08/12/19:28:07

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Mon, 13 Aug 2012 01:27:00 +0200
From: Kai-Martin Knaak <kmk AT familieknaak DOT de>
To: <geda-user AT delorie DOT com>
Subject: [geda-user] silk layer names
Message-ID: <20120813012700.2106039c@akka>
X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
X-Provags-ID: V02:K0:mc/vgzAt1+XD/vD6BLSfSHcplEBsQCLBjp0UGbWipaJ
V3Qff+6FV04dQNGtlWunMGg5ni6xLSEu+iPNbFS/J7Ev3dB0W6
O2Swax4r4vROh2Ibu0OGEmQp9ZN8j1e5L0ADbu5hwogsK0mLUh
KAygjsR1d7OB/GyEMvygEcNNXf7lV/UacV5/FqjifZbC8WBPYB
x/o6huwCe00/7vhMUMq6hG7ITBeRhObyDe5VeYlLEYJB2Uw2tD
fmOq01+bIGmOZDfAtjCQYYOLJkcJSuNPkrLaroF9OOBmZj4cJs
JebHC6xwI8C4rx2HgjqrdSOENugC26k+1pqRACIQ1Ds0m5XCA=
=
Reply-To: geda-user AT delorie DOT com

--Sig_/obfVSebMwkX2oUHdXcMV0ov
Content-Type: multipart/mixed; boundary="MP_/iRO/S0IYJ+J_GvVW2k0GzSR"

--MP_/iRO/S0IYJ+J_GvVW2k0GzSR
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

The default layer stack as set by PCB for a new layout contains two silk
layers. Both of them bear the same name "silk". The name does not
actually show up in the GUI. Unless I am mistaken, the layer name of the
silk layers is not used anywhere in pcb except on save. Still, it is
irritating at manual edits of a pcb. In addition, the duplicate layer
name complicates scripted manipulation of the file.

The attached patch sets the default name to "top silk" and "bottom silk"
respectively. It is a rather simple patch. So I hope, it will be applied
soon.

 ---<)kaimartin(>---
--=20
Kai-Martin Knaak

--MP_/iRO/S0IYJ+J_GvVW2k0GzSR
Content-Type: text/x-patch
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename=0001-set-default-names-of-silk-layers.patch

=46rom f6cd4c8b79153886ceb4dd614538cfe5b9aa2863 Mon Sep 17 00:00:00 2001
From: Kai-Martin Knaak <kmk AT lilalaser DOT de>
Date: Mon, 13 Aug 2012 01:06:21 +0200
Subject: [PATCH] set default names of silk layers Currently, the names of t=
he
 two silk layers are set to the exact same value. This patch
 set their name to "top silk" and "bottom silk".

---
 src/create.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/create.c b/src/create.c
index 9ed7caa..dd25ee5 100644
--- a/src/create.c
+++ b/src/create.c
@@ -223,8 +223,8 @@ CreateNewPCBPost (PCBType *pcb, int use_defaults)
       if (ParseGroupString (Settings.Groups, &pcb->LayerGroups, DEF_LAYER))
 	return 1;
=20
-      pcb->Data->Layer[component_silk_layer].Name =3D strdup ("silk");
-      pcb->Data->Layer[solder_silk_layer].Name =3D strdup ("silk");
+      pcb->Data->Layer[component_silk_layer].Name =3D strdup ("top silk");
+      pcb->Data->Layer[solder_silk_layer].Name =3D strdup ("bottom silk");
     }
   return 0;
 }
--=20
1.7.10.4


--MP_/iRO/S0IYJ+J_GvVW2k0GzSR--

--Sig_/obfVSebMwkX2oUHdXcMV0ov
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlAoO8QACgkQt9RkiGwLn1OOjgCgmDkhSw1YC8ndIyhJmb6B3Gn1
Ci0An18+5PwOC48yFnOjjFuX5lBldhbZ
=OlUs
-----END PGP SIGNATURE-----

--Sig_/obfVSebMwkX2oUHdXcMV0ov--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019