comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda.Image
Date: Wed, 1 Sep 2021 11:02:06 +0200	[thread overview]
Message-ID: <sgnfie$889$1@gioia.aioe.org> (raw)
In-Reply-To: 2fee8bdc-8803-4ca4-8633-57a41b26b761n@googlegroups.com

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

  reply	other threads:[~2021-09-01  9:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01  8:42 GtkAda.Image AdaMagica
2021-09-01  9:02 ` Dmitry A. Kazakov [this message]
2021-09-02 18:16   ` GtkAda.Image AdaMagica
2021-09-02 20:10     ` GtkAda.Image Dmitry A. Kazakov
2021-09-03  7:32       ` GtkAda.Image AdaMagica
2021-09-09 15:31         ` GtkAda.Image AdaMagica
2021-09-09 16:03           ` GtkAda.Image Dmitry A. Kazakov
2021-09-11 13:35             ` GtkAda.Image AdaMagica
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox