[gtkada] Pixbuf
Bobby D. Bryant
bdbryant at mail.utexas.edu
Thu Sep 14 02:18:01 CEST 2000
caleb baker wrote:
> um no it's not, the user manual has pixbuf and a discription of it but there
> isn't a library file called gdk-pixbuf, or gtk-pixbuf so i don't know how it
> initialise it if it is in gtkada-1.2.8
> there is an example in gtkada-1.2.8 which uses pixbuf and it calls it
> with gdk.pixbuf; use gdk.pixbuf;
> and i tried to compile it but it didn't compile, so it seems as if it is
> there from the documentation, but it doesn't actually seem as if it's there
Even with a fairly recent version of a Linux distribution I had to download the
gdk-pixbuf and gdk-pixbuf-devel kits from elsewhere before I could use
Gdk.Pixbuf, so you will almost certainly have to find them and download them if
you want to do this. (Assuming versions even exist for your platform -- a
Google search for "gdk-pixbuf windows" just failed to turn up any double hits
for me.)
Back to the original question. If you want to load an image and can live with
a pixmap (.xpm), you can use Gdk.Pixmap and Gtk.Pixmap without the pixbuf
library and development kits. (At least I could on Linux under GtkAda 1.2.7.
I haven't tried it on other systems, and I got the pixbuf kits before I
upgraded to 1.2.8, so I haven't tried it with your exact combination.) A quick
test would be to see whether the testgtk demo that came with 1.2.8 will compile
on your system, and if it does, whether the pixmap part of of the testgtk demo
works for you. If it does you're all set... assuming you can live with an XPM
rather than the more general image support afforded by gdk-pixbuf.
Bobby Bryant
Austin, Texas
More information about the gtkada
mailing list