public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
To: guile-gtk@sources.redhat.com
Subject: gdk-gc-copy comments (was: Added a bunch of GDK routines.)
Date: Sat, 14 Jun 2003 23:58:00 -0000	[thread overview]
Message-ID: <874r2sxld3.fsf@zip.com.au> (raw)
In-Reply-To: <m33cjyxi3p.fsf@lumo.pacujo.net> (Marko Rauhamaa's message of "01 May 2003 18:17:14 -0700")

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

Marko Rauhamaa <marko@pacujo.net> writes:
>
>  - gdk-1.2.defs: Added the functions gdk_gc_copy,

I found the comments in the defs file for this a bit confusing.  At
first I thought it was saying there was something wrong with
gdk-gc-copy (which there's not).

I suppose it could be made clear that what's being talked about is a
new sort of duplicate or create-and-copy operation, but since as
stated that's either not possible or not very natural, I'd propose
just to remove the remarks.  If one really started writing about all
the stylistic idiosyncrasies of gtk and X it could quickly turn into a
small book :-).

        * gdk-1.2.defs (gdk_gc_copy): Remove comments about hypothetical
        create-and-copy.


[-- Attachment #2: gdk-1.2.defs.gc-copy-comment.diff --]
[-- Type: text/plain, Size: 663 bytes --]

--- gdk-1.2.defs.~1.32.~	2003-06-15 09:28:33.000000000 +1000
+++ gdk-1.2.defs	2003-06-15 09:48:51.000000000 +1000
@@ -538,17 +538,6 @@
   (GdkGC (copy #f))
   ((GdkWindow window)))
 
-; You can't convert gdk_gc_copy into one that returns the copy because
-; there is no way to determine the window of src_gc, and you can't
-; create dst_gc without a window. You could create a function like this:
-;
-;   (define-func gdk_gc_copy_interp
-;     GdkGC
-;     ((GdkWindow window)
-;      (GdkGC gc)))
-;
-; but it would not be any more natural or flexible to use than the
-; interface of the original C function.
 (define-func gdk_gc_copy
   none
   ((GdkGC dst_gc)

  parent reply	other threads:[~2003-06-14 23:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02  1:25 Added a bunch of GDK routines Marko Rauhamaa
2003-05-11 23:28 ` Kevin Ryde
2003-05-12 18:06   ` Marko Rauhamaa
2003-05-12 18:56     ` Marko Rauhamaa
2003-06-06 22:23 ` GdkWChar (was: Added a bunch of GDK routines.) Kevin Ryde
2003-06-14 23:58 ` Kevin Ryde [this message]
2003-06-20 23:54 ` sgtk_timestamp returns " Kevin Ryde

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=874r2sxld3.fsf@zip.com.au \
    --to=user42@zip.com.au \
    --cc=guile-gtk@sources.redhat.com \
    /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).