From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,22c0f283cbc25691,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-17 03:30:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!news-peer-europe.sprintlink.net!news.sprintlink.net!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!pluto.his.se!10.185.70.37 From: Michael Andersson Newsgroups: comp.lang.ada Subject: Newbie again! Date: Tue, 17 Apr 2001 12:31:05 +0200 Organization: Chalmers University of Technology Message-ID: <3ADC1B69.44A391C8@ida.his.se> NNTP-Posting-Host: pluto.his.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: nyheter.chalmers.se 987503327 716 193.10.178.51 (17 Apr 2001 10:28:47 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 17 Apr 2001 10:28:47 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:6943 Date: 2001-04-17T10:28:47+00:00 List-Id: 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.