From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!Hx95GBhnJb0Xc8StPhH8AA.user.46.165.242.91.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GtkAda.Image Date: Wed, 1 Sep 2021 11:02:06 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <2fee8bdc-8803-4ca4-8633-57a41b26b761n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="8457"; posting-host="Hx95GBhnJb0Xc8StPhH8AA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:62592 List-Id: On 2021-09-01 10:42, AdaMagica wrote: > Calling Gtk.Image.Gtk_New (Lady, "Ada_9X.bmp"); with a nonexisting file does not report any problem. It just creates a tiny placeholder. > Is there a way to get a warning in this case? The GtkAda_RM is silent on this. "...If the file isn't found or can't be loaded, the resulting Gtk.Image.Gtk_Image will display a "broken image" icon. This function never returns null, it always returns a valid Gtk.Image.Gtk_Image widget..." Embed Ada_9X.bmp into your GtkAda program. It will always be there, no need to care about shipping the image file with your program. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de