Re: signal marshallers
- From: Jeroen Benckhuijsen <jfbenck home nl>
- To: ymg azstarnet com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: signal marshallers
- Date: 17 Jun 2001 00:38:34 +0200
On 16 Jun 2001 13:29:59 -0700, Warrior wrote:
Hi, everybody
Could somebody please point me to reasonably detailed documentation on signal
marshallers? From what's available in API reference on www.gtk.org I
understand that they provide a method to use a function that takes more than
one argument as a callback (am I right here?), but it's still unclear to me
how exactly one should use them. Some examples would be greatly appreciated.
Thanks.
--
Bye, Warrior.
ICQ #24496762
-------------
Tagline for Saturday, June 16, 2001, 13:05
--- Never put off till tomorrow what you can ignore entirely.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Marshallers are internal gtk functions to support signals with variabel
arguments. Internally the marshaller a propiate marshaller is called
when a signal is emmited. The marshaller converts is in-paramters (the
parameters with which the signal was called and the stored user_data
from gtk_signal_connect_...) and converts them into the appropiate
function calls to the connected functions.
You don't need (and want) to access them directly in you're program.
This is all handled by gtk internally. The only time you need them is
when writing a custom widget (or object for that matter), when using
signals with a paramters list for which a standard marshaller doesn't
already exist. However it's far easier to use a widget generator in such
a case like Gwf (http://gwf.sourceforge.net) or Gob (look at gnome.org
form the address). Gwf automatticly generates non existsting signal
marshallers (i know i wrote it ;-)). Don't know about gob, haven't used
it yet, but a think it will....
--
Jeroen Benckhuijsen
Software Engineer
Phoenix Software
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]