From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ce7480df3c595843 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: [newbie] Load a image file into a GTKimage Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <45a63894$0$291$426a74cc@news.free.fr> Date: Fri, 12 Jan 2007 11:24:45 +0100 Message-ID: <1k1ng2elqblzz$.2znco3lrr5jw$.dlg@40tude.net> NNTP-Posting-Date: 12 Jan 2007 11:24:45 CET NNTP-Posting-Host: 920af6db.newsspool3.arcor-online.net X-Trace: DXC=17C7PfXWdJJ@Y=h<_c3PkHMcF=Q^Z^V3H4Fo<]lROoRAgUcjd<3m<;BMUZ;RCm1@EJ[6LHn;2LCVN7enW;^6ZC`DF0oLHC^TobO X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8112 Date: 2007-01-12T11:24:45+01:00 List-Id: 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