pcb

default silk layer names are the same for top and bottom

Bug #1035979 reported by KaiMartin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Medium
Bert Timmerman

Bug Description

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 in the GUI. Still, it is irritating when editing the pcb file manually. In addition, the duplicate name complicates scripted manipulation of the file.

The attached patch sets the default name to "top silk" and "bottom silk" respectively.
---<)kaimartin(>---

Revision history for this message
KaiMartin (kmk-familieknaak) wrote :
Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

HI Kai-Martin,

The patch seems to work as expected.

Kind regards,

Bert Timmerman.

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Kai-Martin and all,

I have pushed a topic branch "LP1035979" onto git://git.geda-project.org/pcb with the above mentioned patch.

Please "git fetch", "git checkout -b LP1035979" and test this patch for unwanted side effects.

Kind regards,

Bert Timmerman.

Changed in pcb:
status: New → In Progress
assignee: nobody → Bert Timmerman (bert-timmerman)
Revision history for this message
KaiMartin (kmk-familieknaak) wrote :

With the above patch, the GUI does not properly change the name of the silk layer, if the view switches from top view to bottom view (ctrl+shift+tab). Instead, it reverts to the string "silk" which is hard coded in src/hid/gtk/gui-top-window.c . The attached patch fixes this issue.

---<)kaimartin(>---

Revision history for this message
KaiMartin (kmk-familieknaak) wrote :

Just a clarification: Both pathes are required to make the silk layers apear as "top silk" and "bottom silk".

---<)kaimartin(>---

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Kai-Martin and all,

I have updated the topic branch "LP1035979" onto git://git.geda-project.org/pcb with the above mentioned patches.

Seems to work as advertised.

Kind regards,

Bert Timmerman.

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Subject: Re: [geda-user] Accessing bottom silk
From: Kai-Martin Knaak <email address hidden>
Date: Thu, 31 Jan 2013 02:51:38 +0100
To: <email address hidden>

Bert Timmerman <email address hidden> schrieb am 29. January 2013:

> > Your patches live in a topic branch in the upstream pcb repo.
> > See here: http://git.geda-project.org/pcb/log/?h=LP1035979
> > I will test these more thorough when I have some free cycles.

I found a glitch:
With my patches applied, stand-alone objects on silk cannot be deleted.
Seems like the delete action depends on the hard coded string "silk". I
will investigate and add to the patch.

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

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Kai-Martin,

I can not reproduce the "glitch" whilst deleting stand-alone objects on silk (started a new layout and draw some stuff on all layers) while testing your patches.

Could you please confirm these "glitches" still occur on the current HEAD of pcb.git.

I want to commit these patches to the "master" branch as I find this functionality useful for pcb.

TIA and with kind regards,

Bert Timmerman.

Traumflug (mah-jump-ing)
Changed in pcb:
importance: Undecided → Medium
status: In Progress → Fix Committed
Revision history for this message
Traumflug (mah-jump-ing) wrote :

OK, apparently one can't change status and add a comment with one send. :-) Let me repeat:

Regarding the first patch, an identical one was authored and comitted to master by Peter Clifton on Jan 11, 2015.

Regarding the other patch, rebasing to master required a few adjustments due to variable name changes. It works fine and is IMHO an improvement. So I picked it onto master.

If the glitch ever re-appears, please open a new bug. Thanks for the contribution, KaiMartin.

Changed in pcb:
milestone: none → next-bug-release
Revision history for this message
KaiMartin (kmk-familieknaak) wrote :

Just checked myself:
The glitch I saw does not happen with current git head.

Thank you Traumflug for applying my patch.

Traumflug (mah-jump-ing)
Changed in geda-project:
importance: Undecided → Medium
status: New → Fix Released
Changed in pcb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.