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: a07f3367d7,64d5f5037bcca019 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k5g2000vbn.googlegroups.com!not-for-mail From: Phil Thornley Newsgroups: comp.lang.ada Subject: Re: Title in Main Window with GtkAda Date: Sat, 13 Nov 2010 00:09:23 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <4cdd4d36$0$8929$703f8584@textnews.kpn.nl> <9MedneAM2sBj_kDRnZ2dnUVZ8gmdnZ2d@brightview.co.uk> <083482db-f5f3-461d-96ef-d794c032ed96@q36g2000vbi.googlegroups.com> <4cde1632$0$9944$703f8584@news.kpn.nl> NNTP-Posting-Host: 88.97.49.112 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1289635764 14360 127.0.0.1 (13 Nov 2010 08:09:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 13 Nov 2010 08:09:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k5g2000vbn.googlegroups.com; posting-host=88.97.49.112; posting-account=Fz1-yAoAAACc1SDCr-Py2qBj8xQ-qC2q User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:16432 Date: 2010-11-13T00:09:23-08:00 List-Id: On Nov 13, 4:38=A0am, "ldries46" wrote: > The problem seems to be the following: > > Glade-2 creates a windows variable of the type name_Access which is itsel= f > a create by > type name_Access is access all name_Record'Class; > In the initiate routine Glade uses Set_Title with this type but when use > Set_Title somewhere else it seems that Set_Title cannot use this type. > It seems to me that I need a type name_Record. I just cannot find a way t= o > get a variable of that type from the type name_Access. > > For the record my OS is Windows 7 64 bit The variable passed to Set_Title must be a Gtk.Window.Gtk_Window, which is declared as type Gtk_Window is access all Gtk_Window_Record'Class; I've never used Glade, so I can't help with that. You will only be able to call Set_Title for this window where the window variable is visible. Cheers, Phil