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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Using Custom Icons in a Gtk3 program Date: Sat, 1 Mar 2014 11:02:50 +0100 Organization: cbb software GmbH Message-ID: <1pwyg6fsfnpoi$.8sg98ddx6p9q$.dlg@40tude.net> References: <5311a4d3$0$15310$703f8584@news.kpn.nl> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: cTj7CVEwmZyjrFPUnpIvWg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:18767 Date: 2014-03-01T11:02:50+01:00 List-Id: On Sat, 1 Mar 2014 10:12:06 +0100, ldries46 wrote: > I am creating a Gtk3 program in Ada and want using custom Icons. In Gtk3 I > cannot find much of a description how to do that. Gtk.Icon_Source and Gtk.Stock, specifically Gtk_New + Add_Static. There are other ways too. > 1. Do I have to enter two icons one for the top of the window and one for > the program to preset below in the bar. and where do I enter them ? > 2. What is the format of the different icons. The format is dependent on the rendering engine backend, whether the icon is resident in the RAM or in the device etc. The application should never worry about that. > 4. Is there somewhere an example of how to do it for Gtk2 see: http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#3 Gtk3 is slightly different. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de