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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d356566c971f9921,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.50.133 with SMTP id c5mr45305233pbo.2.1317379290710; Fri, 30 Sep 2011 03:41:30 -0700 (PDT) Path: lh7ni8217pbb.0!nntp.google.com!news1.google.com!postnews.google.com!j10g2000vbb.googlegroups.com!not-for-mail From: Sunny Newsgroups: comp.lang.ada Subject: How to use a function in a procedure call? Date: Fri, 30 Sep 2011 03:41:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <604bf6ae-4050-4d03-be4a-aab907d42162@j10g2000vbb.googlegroups.com> NNTP-Posting-Host: 116.52.1.99 Mime-Version: 1.0 X-Trace: posting.google.com 1317379290 31498 127.0.0.1 (30 Sep 2011 10:41:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 30 Sep 2011 10:41:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j10g2000vbb.googlegroups.com; posting-host=116.52.1.99; posting-account=UzKjIgoAAACYVdD4kFqfNpmC5URfqMDF User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUARLECNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50,gzip(gfe) Xref: news1.google.com comp.lang.ada:18228 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-09-30T03:41:30-07:00 List-Id: Hi all! I want so set a icon to my frame. Use GtkAda. But when I use the Set_Icon_From_File(win,"icon.jpg"); An Error said that "can not use function 'Set_Icon_From_File' in a procedure call" How to solve the problem? Thanks! My source code is: WITH Gtk.Window;USE Gtk.Window; WITH Gtk.Main;USE Gtk.Main; WITH Gtk.Enums;USE Gtk.Enums; PROCEDURE icon IS win:gtk_window; BEGIN Init; Gtk_new(win); Set_Size_Request(win,300,200); Set_Icon_From_File(win,"icon.jpg"); Set_Title(win,"Icon"); Set_Position(win,WIN_POS_CENTER); Show(win); Main; END icon;