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: gtk_main_iteration and friends return val
Date: Fri, 07 Feb 2003 22:10:00 -0000	[thread overview]
Message-ID: <87vfzvivxm.fsf@zip.com.au> (raw)

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

I'd like to propose

        * gtk-1.2.defs (gtk_main_iteration, gtk_main_iteration_do, gtk_true,
        gtk_false, gtk_events_pending): Make returns #t/#f.

Currently these return integers to scheme, but I think they're all
just TRUE or FALSE at the C level and might be better as #t/#f.

In gtk 1.2 the C return types are gint, but in 2.2 this seems to have
been corrected to gboolean.

Hopefully no-one has used gtk-events-pending thinking it was a count
of pending events or something, which it's not.


[-- Attachment #2: gtk-1.2.defs.bools.diff --]
[-- Type: text/plain, Size: 458 bytes --]

--- gtk-1.2.defs.~1.7.~	2003-01-23 07:16:45.000000000 +1000
+++ gtk-1.2.defs	2003-02-06 10:00:28.000000000 +1000
@@ -362,23 +362,23 @@
   ())
 
 (define-func gtk_main_iteration
-  int
+  bool
   ())
 
 (define-func gtk_main_iteration_do
-  int
+  bool
   ((bool val)))
 
 (define-func gtk_true
-  int
+  bool
   ())
 
 (define-func gtk_false
-  int
+  bool
   ())
 
 (define-func gtk_events_pending
-  int
+  bool
   ())
 
 (define-func gtk_timeout_add_full

             reply	other threads:[~2003-02-07 22:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 22:10 Kevin Ryde [this message]
2003-03-16  9:07 ` Daniel Skarda

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=87vfzvivxm.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).