delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
Date: | Fri, 26 Feb 2016 15:10:02 -0500 |
Message-Id: | <201602262010.u1QKA2Hf024379@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | geda-user AT delorie DOT com |
In-reply-to: | |
<CAC4O8c9ZxsCOanQCm5tjZJaTFF1YVeRywynEkgJfXcXv=covsA AT mail DOT gmail DOT com> | |
(geda-user AT delorie DOT com) | |
Subject: | Re: [geda-user] Re: re-instituting GetXY() |
References: | <CAC4O8c89o1=fvhY=hYBSDb9W1wbruhBFR93r2TPzsuT1ChJkCw AT mail DOT gmail DOT com> |
<CAC4O8c_eP=Dx8YELmaZ9nvK_3yo97JHRfEYhpi7NXj2dnEBLrg AT mail DOT gmail DOT com> | |
<201602260114 DOT u1Q1EFRk019336 AT envy DOT delorie DOT com> <CAC4O8c9ZxsCOanQCm5tjZJaTFF1YVeRywynEkgJfXcXv=covsA AT mail DOT gmail DOT com> | |
Reply-To: | geda-user AT delorie DOT com |
In ./hid/common/actions.c we see: if (a->need_coord_msg) gui->get_coords (_(a->need_coord_msg), &x, &y); This is set from these: {"GetXY", "", GetXY, getxy_help, getxy_syntax}, {"GetXY", "", GetXY, getxy_help, getxy_syntax}, Note the "" which both triggers the get_coords but provides no message. Perhaps it would be better to pass NULL to those and change the two GetXY() implementations to be like this (caveat error checks et al): static int GetXY (int argc, char **argv, Coord x, Coord y) { gui->get_coords(argv[0], &x, &y); return 0; }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |