-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gschem doesn't need to know where an object's grips are.  Only the
object itself needs to know that.  Now that it can publish the location
of its grips (through grip_foreach_func()), we get something very nice:

$ git-diff |diffstat
include/prototype.h |    3 -
src/o_arc.c         |  108
- ----------------------------------------------
src/o_basic.c       |    5 ++
src/o_box.c         |   86 ------------------------------------
src/o_bus.c         |   13 -----
src/o_circle.c      |   68 -----------------------------
src/o_copy.c        |    3 +
src/o_delete.c      |    7 ---
src/o_grips.c       |   81 ++++++++++++++++++++++++++--------
src/o_line.c        |   67 ----------------------------
src/o_net.c         |   15 ------
src/o_picture.c     |  121
++++++----------------------------------------------
src/o_pin.c         |   13 -----
13 files changed, 87 insertions(+), 503 deletions(-)

This pretty diffstat was from the commit below, from
berndj/opaque-objects-20080712 on
git://repo.or.cz/srv/git/geda-gaf/berndj.git

commit 371737d7a55c0e4eba79c3ab64e2b5aeda8af5bb
Author: Bernd Jendrissek <[EMAIL PROTECTED]>
Date:   Sun Jul 13 06:50:37 2008 +0200

    Traverse object grips generically when drawing/erasing grips.
    
    Instead of each object's drawing function draw/erase the grips,
    this patch teaches gschem to iterrogate any object through its
    grip iterator for grip locations, at which locations it then draws
    grips.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIeYoz7sfNFNW4BEwRAr3aAJ9+XrhEr8sO/ilXac8nc3CU/HmDWQCg1tw9
JW+EjHZO+/jDBG+EN8lKTLk=
=t+hC
-----END PGP SIGNATURE-----


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to