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: GdkColor field setters (was: Completed RGB functionality)
Date: Sat, 14 Jun 2003 23:46:00 -0000	[thread overview]
Message-ID: <878ys4xlwr.fsf_-_@zip.com.au> (raw)
In-Reply-To: <87bry3iznh.fsf@zip.com.au> (Kevin Ryde's message of "Fri, 16 May 2003 09:00:18 +1000")

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

I wrote:
>
> I'd suggest gdk-color-new should just create a GdkColor object with
> zero fields.  Field setter functions can be introduced to manipulate
> them.

As threatened,

        * gdk-1.2.defs (GdkColor): Add setters for all fields.


[-- Attachment #2: gdk-1.2.defs.color-setters.diff --]
[-- Type: text/plain, Size: 659 bytes --]

Index: gdk-1.2.defs
===================================================================
RCS file: /cvsroot/guile-gtk/guile-gtk-1.2/gdk-1.2.defs,v
retrieving revision 1.31
diff -u -u -r1.31 gdk-1.2.defs
--- gdk-1.2.defs	1 Jun 2003 05:52:43 -0000	1.31
+++ gdk-1.2.defs	14 Jun 2003 23:42:57 -0000
@@ -413,10 +413,10 @@
 (define-boxed GdkColor
   (copy gdk_color_copy)
   (free gdk_color_free)
-  (fields (ulong pixel)
-	  (uint red)
-	  (uint green)
-	  (uint blue))
+  (fields (ulong pixel (setter #t))
+	  (uint red    (setter #t))
+	  (uint green  (setter #t))
+	  (uint blue   (setter #t)))
   (conversion "sgtk_color_conversion"))
 
 (define-boxed GdkImage

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-07  4:22 Completed RGB functionality Marko Rauhamaa
2003-05-15 23:00 ` Kevin Ryde
2003-05-16  5:42   ` Marko Rauhamaa
2003-06-14 23:46   ` Kevin Ryde [this message]
2003-06-15  0:11   ` gdk-color-change params (was: Completed RGB functionality) Kevin Ryde
2003-06-15  2:38     ` Marko Rauhamaa
2003-08-09  0:47   ` gdk-color-new " 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=878ys4xlwr.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).