public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: Marko Rauhamaa <marko@pacujo.net>
To: guile-gtk@sources.redhat.com
Cc: mvo@zagadka.de
Subject: Re: texinfo documentation
Date: Sun, 01 Jun 2003 04:31:00 -0000	[thread overview]
Message-ID: <m3n0h25svu.fsf@lumo.pacujo.net> (raw)
In-Reply-To: <873cixnwsz.fsf@zip.com.au>

Kevin Ryde <user42@zip.com.au>:

> Marko Rauhamaa <marko@pacujo.net> writes:
> >
> > I have now changed all the rectangle-inputting procedures to input
> > GdkRectangle's instead of (x,y,w,h).
> 
> That function really wants to be a plain multiple-values thingie, not
> have its x,y,w,h transmuted into a rectangle (if I read the code
> rightly).
> 
> Propose a new routine in the latter style if you have a burning need
> for it, but the function called gdk-window-get-geometry really should
> follow the general conventions.

I found the origin (no pun intended) of my audaciousness:

   gdk-window-get-origin

was written prior to my time, and it returns (x . y) (i.e., GdkPoint)
instead of (x y) as suggested by

   gint gdk_window_get_origin (GdkWindow *window, gint *x, gint *y);

That precedent led to a whole slew of other analogous GdkPoint routines,
and it was only natural to extend the principle to GdkRectangle as well.

While I could back out on my changes, this one would require a higher
authority. Now, gdk-window-get-origin is not included in my SuSE 7.3
release (guile-gtk ver. 0.19). Was it ever released out to the public?
It is a vintage function according to the ChangeLog (2001-02-04).

So it seems to me we are stuck with the deviation. The good side is that
the deviation is more natural for scheme programmers. The bad side is
that we can't simply refer the application developers to the C
documentation. Each guile-gtk function signature needs to be mentioned.


Marko

-- 
Marko Rauhamaa      mailto:marko@pacujo.net     http://pacujo.net/marko/

  reply	other threads:[~2003-06-01  4:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-12  1:21 Kevin Ryde
2003-05-12  1:52 ` Marko Rauhamaa
2003-05-23 22:01   ` Kevin Ryde
2003-05-23 23:36     ` Marko Rauhamaa
2003-05-23 23:57       ` Kevin Ryde
2003-05-24  0:05         ` Marko Rauhamaa
2003-05-24  2:19           ` Kevin Ryde
     [not found]             ` <m3llwwdhjf.fsf@lumo.pacujo.net>
2003-05-25 22:48               ` Kevin Ryde
2003-05-25 23:28                 ` Marko Rauhamaa
2003-05-26  0:06                   ` Kevin Ryde
2003-05-26  2:42                     ` Marko Rauhamaa
2003-05-29 23:37                       ` Kevin Ryde
2003-05-30  1:06                         ` Marko Rauhamaa
2003-06-13 22:05                           ` gdk-string-to-compound (was: texinfo documentation) Kevin Ryde
2003-07-07 22:30                             ` gdk-string-to-compound Kevin Ryde
2003-05-29 23:43                       ` texinfo documentation Kevin Ryde
2003-06-01  4:31                         ` Marko Rauhamaa [this message]
2003-06-02 23:51                           ` gdk-window-get-origin (was: texinfo documentation) Kevin Ryde
2003-07-07 22:29                         ` gdk-window-get-geometry " Kevin Ryde
2003-05-26  0:07                   ` gdk-rectangle-new " Kevin Ryde
2003-05-26  1:20                     ` Marko Rauhamaa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3n0h25svu.fsf@lumo.pacujo.net \
    --to=marko@pacujo.net \
    --cc=guile-gtk@sources.redhat.com \
    --cc=mvo@zagadka.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).