[gtkada] Gtk.Pixmap to Gtk.Image?

Manuel Op de Coul manuel.op.de.coul at eon-benelux.com
Thu Sep 11 17:24:53 CEST 2003


>I have images stored as xpm data in a Gtkada.Types.Chars_Ptr_Array which I
>don't wish to manipulate. Should I still use Gtk.Pixmap for those?
>If not, what is the replacement for this function, as I can't find it in
>Gtk.Image?

I can answer that myself now, it's done via a Gdk_Pixbuf:

The_Image := Gtk.Image.Gtk_New(Gdk.Pixbuf.Gdk_New_From_Xpm_Data
(Xpm_Array));

However I don't understand why in the spec of Gtk.Image is said that
an obsolete Gtk_Pixmap should be used. Probably an oversight. Arnaud?

Manuel





More information about the gtkada mailing list