comp.lang.ada
 help / color / mirror / Atom feed
From: Michael Andersson <a98mican@ida.his.se>
Subject: Newbie again!
Date: Tue, 17 Apr 2001 12:31:05 +0200
Date: 2001-04-17T10:28:47+00:00	[thread overview]
Message-ID: <3ADC1B69.44A391C8@ida.his.se> (raw)

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

ps. Sorry for all the questions but I really need to get this to work
and I haven't received my Ada-book yet.






             reply	other threads:[~2001-04-17 10:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-17 10:31 Michael Andersson [this message]
2001-04-17 10:49 ` Newbie again! Preben Randhol
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox