guile-gtk-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: g-io-add-watch, GIOFunc?


From: Andreas Rottmann
Subject: Re: g-io-add-watch, GIOFunc?
Date: Thu, 21 Oct 2004 12:02:21 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Jan Nieuwenhuizen <address@hidden> writes:

> Hi,
>
> What is a GIOFunc?  I can't seem to satisfy g-io-add-watch's function
> parameter
>
>     (define-function g_io_add_watch
>       (c-name "g_io_add_watch")
>       (return-type "guint")
>       (parameters
>         '("GIOChannel*" "channel")
>         '("GIOCondition" "condition")
>         '("GIOFunc" "func")
>         '("gpointer" "user_data")
>       )
>     )
>
> whatever lambda I use, gets me something like
>
[...]

Currently, we're not able to wrap callbacks automatically, so to get a
working g-io-add-watch from the Scheme level, you'll have to write a
manual wrapper, see e.g. _wrap_gtk_action_group_add_radio_buttons() in
gtk-support.c. I'm thinking about what it would take to have such a
functionality in G-Wrap, however.

Regards, Rotty
-- 
Andreas Rottmann         | address@hidden      | address@hidden | address@hidden
http://yi.org/rotty      | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Latein ist das humanoide Äquivalent zu Fortran.
   -- Alexander Bartolich in at.linux




reply via email to

[Prev in Thread] Current Thread [Next in Thread]