[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: GTK SwapSides [was: Information on PCB]
On 10/27/09, Ineiev <ineiev@xxxxxxxxx> wrote:
> On 10/27/09, Peter Clifton <pcjc2@xxxxxxxxx> wrote:
>> On Tue, 2009-10-27 at 05:47 +0000, Ineiev wrote:
>>> On 10/27/09, Ineiev <ineiev@xxxxxxxxx> wrote:
>>> BTW, it seems to me that it does not really changes the groups
>>> visibility: I press Tab with `component' layer from the component
>>> group active and see the same `component' above all; the pads
>>> are shown from the right side, though. am I doing
>>> something wrong? I stack the patches on top of current master.
>>
>> You might want "Settings.ShowSolder" or something like that.
>
> Thanks, I'll check.
Actually,
diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index 5472f10..3058e07 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -1995,20 +1995,22 @@ SwapSides (int argc, char **argv, int x, int y)
Settings.ShowSolderSide = !Settings.ShowSolderSide;
if (Settings.ShowSolderSide)
{
- if (active_group == comp_group && comp_showing && !solder_showing)
+ if (active_group == comp_group)
{
- ChangeGroupVisibility (PCB->LayerGroups.Entries[comp_group][0], 0,
- 0);
+ if (comp_showing && !solder_showing)
+ ChangeGroupVisibility (PCB->LayerGroups.Entries[comp_group][0], 0,
+ 0);
ChangeGroupVisibility (PCB->LayerGroups.Entries[solder_group][0], 1,
1);
}
}
else
{
- if (active_group == solder_group && solder_showing && !comp_showing)
+ if (active_group == solder_group)
{
- ChangeGroupVisibility (PCB->LayerGroups.Entries[solder_group][0], 0,
- 0);
+ if (solder_showing && !comp_showing)
+ ChangeGroupVisibility (PCB->LayerGroups.Entries[solder_group][0], 0,
+ 0);
ChangeGroupVisibility (PCB->LayerGroups.Entries[comp_group][0], 1,
1);
}
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user