From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: [newbie] Load a image file into a GTKimage
Date: Fri, 12 Jan 2007 11:24:45 +0100
Date: 2007-01-12T11:24:45+01:00 [thread overview]
Message-ID: <1k1ng2elqblzz$.2znco3lrr5jw$.dlg@40tude.net> (raw)
In-Reply-To: eo60bk$t8k$1@online.de
On Thu, 11 Jan 2007 19:40:45 +0100, Michael Bode wrote:
[...]
> If you have some small icons that you want to directly include in your
> code so you don't have to keep track of icon files you could use the
> Ada version of .xpm images. Use the 2nd form of Set above to display
> the icon:
>
> with Gdk.Pixbuf;
> package Icons is
> procedure Init;
> LED_Green : Gdk.Pixbuf.Gdk_Pixbuf;
> end Icons;
>
> with Gtkada.Types; use Gtkada.Types;
> package body Icons is
> LED_Green_XPM : Chars_Ptr_Array :=
> "31 12 9 1" +
> " c #286028" +
[...]
You could also xpm2gtkada utility to generate Gtk_Image-producing Ada code
directly from an XPM image. See
http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#3
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
prev parent reply other threads:[~2007-01-12 10:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-11 13:15 [newbie] Load a image file into a GTKimage Rangdalf
2007-01-11 15:50 ` Markus E Leypold
2007-01-11 18:40 ` Michael Bode
2007-01-12 10:24 ` Dmitry A. Kazakov [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox