[gtkada] Ada newbie!

manuel.op.de.coul at eon-benelux.com manuel.op.de.coul at eon-benelux.com
Tue Apr 17 17:37:11 CEST 2001


Michael,

You forgot to instantiate the generic Idle package.
You can do it like this (must be at library level):

with Gtk.Main;
with Gdk.Rectangle;
package Idle_Rect is new Gtk.Main.Idle(Gdk.Rectangle.Gdk_Rectangle);

Then use the type conversion Idle_Rect.Callback() for the Cb
parameter when calling the function Idle_Rect.Add.

(I haven't compiled this, so not 100% sure).

Manuel






More information about the gtkada mailing list