[gtkada] Callbacks

Preben Randhol randhol at pvv.org
Mon Mar 6 19:39:33 CET 2000


briot at gnat.com wrote on 06/03/2000 (19:07) :
>  > -- To have a callback with more than one argument, but then I have to
>  >    extend the marshallers package if I understand the GtkAda documentation
>  >    right.
> 
> This is most certainly the best way to go.
> We only provided marshallers for the case with one argument because this is
> the most common case, but other cases happen and are in fact quite easy to
> use.

I see.

> Have you looked at the file  examples/handlers/own_marshaller.adb in the
> GtkAda distribution ?
> The first function is one that takes 3 arguments, and is connected to a
> widget in general_tips.adb.

No I haven't gotten this far yet. I will do this though!

> The idea is that all the arguments are grouped together in a
> Gtk.Arguments.Gtk_Args structure, and that you can extract them one by one
> with calls to the functions in Gtk.Arguments.
> 
> Let us know if you need more information.

I will have a look at it and try and fail a bit first before I come back :-)

Thanks!

-- 
Preben Randhol -- [randhol at pvv.org] -- [http://www.pvv.org/~randhol/]
         "Det eneste trygge stedet i verden er inne i en fortelling."
                                                      -- Athol Fugard





More information about the gtkada mailing list