[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Ground color



Hi DJ,

I gave it a try:

<snippet>
        ELEMENT_LOOP(PCB->Data);
        {
                if (!TEST_FLAG (LOCKFLAG, element))
                {
                        /* element is not locked */
                        if (all)
                                SET_FLAG(LOCKFLAG, element);
                        if (selected)
                        {
                                if (TEST_FLAG (SELECTEDFLAG, element))
                                {
                                        /* better to unselect element
first */
                                        CLEAR_FLAG(SELECTEDFLAG,
element);
                                        SET_FLAG(LOCKFLAG, element);
                                }
                        }
                }
        }
        END_LOOP;
</snippet>

AFAICT, to no avail.

Kind regards,

bert Timmerman.

On Fri, 2008-06-20 at 17:20 -0400, DJ Delorie wrote:
> "lock selected" still makes sense, you just have to shut off the
> selected flag when you lock it.
> 
> Another option is "unlock all, but select them as you unlock them".
> I.e. it's the inverse of the above.
> 
> 
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user