Stephane Peiry <[EMAIL PROTECTED]> wrote:
> ow.. ok, this one is actaully a macro.. the actual function is
> gulong g_signal_connect_object (gpointer instance,
> const gchar *detailed_signal,
> GCallback c_handler,
> gpointer gobject,
> GConnectFlags connect_flags);
> so I've changed this and now it does find it.
Ah. Ok.
You've mixed up the function parameters.
> P0 = global "Gtk::gtk_window_new"
> null I5
> invoke
> P15 = P5
I presume that's "instance" ...
> # -- function sig is "'lptpPi', then we have:
> # P5 is the button
> # P6 the callback
> # P7 data we may to pass through.
> # S5 "clicked"
> # I5 is 0
... and the button is the "gobject". I did:
set P6, P5 # the callback
set P5, P15 # instance
set S5, "clicked"
set P7, P11 # button = object
And got a clickable button labeled "Parrot".
You might start using PIR code and named variables so that it gets
simpler to call such functions.
leo