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.
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.
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.
Tnanks, Dmitry, I thought about this but do not know how to do this.
I have a small Ada utility program converting an XPM image to Ada
packages. E.g. open BMP in GIMP and export it as XPM.
AdaMagica schrieb am Freitag, 3. September 2021 um 09:32:24 UTC+2:
Dmitry A. Kazakov schrieb am Donnerstag, 2. September 2021 um 22:10:13 UTC+2:Dmitry,
I have a small Ada utility program converting an XPM image to AdaThanks, I'll try it
packages. E.g. open BMP in GIMP and export it as XPM.
Christoph
I've produced the files Ada_9X_xpm-image.ads/adb .
Problem is: Ada_9X_xpm.adb starts thus:
with Gdk.Pixbuf.Conversions; <-- GNAT complains: file not found
package body Ada_9X_xpm is
Have I overlooked something in your documentation?
Dmitry A. Kazakov schrieb am Donnerstag, 2. September 2021 um 22:10:13 UTC+2:Dmitry,
I have a small Ada utility program converting an XPM image to AdaThanks, I'll try it
packages. E.g. open BMP in GIMP and export it as XPM.
Christoph
It is a helper package from the GtkAda contributions:
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 355 |
Nodes: | 16 (2 / 14) |
Uptime: | 30:11:14 |
Calls: | 7,658 |
Files: | 12,815 |
Messages: | 5,701,036 |