[gtkada] Ada newbie!
Michael Andersson
a98mican at ida.his.se
Tue Apr 17 15:04:22 CEST 2001
Hi!
I've looked at the c-code from the zktor.c examples that comes with
gtkglarea and I want to convert the following c-statements to Ada:
gtk_idle_add((GtkFunction)animate, glarea);
and
gtk_widget_draw(GTK_WIDGET(glarea), NULL);
When trying to do this I get the following error message from gnatmake:
expected type "Gdk_Rectangle" defined at gdk-rectangle.ads:34
found an access type
"Idle_Add" not declared in "Gtk"
I can't find Idle_Add in the documetation but there seems to be a
Gtk.Main.Idle.Add. The problem is that I want to pass a Gtkglarea to the
idle function.
Can somebody please help me!
/Michael Andersson
More information about the gtkada
mailing list