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.5 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE 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-7-bit X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.16.109 Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!nospam.fr.eu.org!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.straub-nv.de!feeder.news-service.com!pfeed08.wxs.nl!newsfeed.kpn.net!pfeed14.wxs.nl!pfeed15.wxs.nl!not-for-mail From: "ldries46" Newsgroups: comp.lang.ada 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> In-Reply-To: Subject: Re: Title in Main Window with GtkAda Date: Sat, 13 Nov 2010 11:11:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 Message-ID: <4cde6467$0$6928$703f8584@news.kpn.nl> NNTP-Posting-Host: 77.168.179.107 X-Trace: 1289643111 news.kpn.nl 6928 77.168.179.107:54371 X-Complaints-To: abuse@planet.nl Xref: g2news2.google.com comp.lang.ada:16434 Date: 2010-11-13T11:11:49+01:00 List-Id: Finally did it. Only by creating a new procedure in the package that initiated the main window and calling that from the package where the change was to be initiated. I do think the less nice way, but it worked. "Phil Thornley" schreef in bericht news:daadc30a-e1b7-4b11-8fdf-73f33c2163c0@k5g2000vbn.googlegroups.com... > On Nov 13, 4:38 am, "ldries46" wrote: >> The problem seems to be the following: >> >> Glade-2 creates a windows variable of the type name_Access which is >> itself >> 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 >> to >> 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