From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp1-2.free.fr!not-for-mail From: Thomas Newsgroups: comp.lang.ada Mail-Copies-To: nobody Subject: Re: Gtk.Image.Gtk_Image References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Date: Thu, 24 Mar 2022 19:40:39 +0100 Message-ID: Organization: Guest of ProXad - France NNTP-Posting-Date: 24 Mar 2022 19:40:40 CET NNTP-Posting-Host: 91.175.52.121 X-Trace: 1648147240 news-2.free.fr 13456 91.175.52.121:15380 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:63628 List-Id: In article , "Dmitry A. Kazakov" wrote: > On 2022-03-24 16:14, Thomas wrote: > > [...] > > > is it clear enough ? > > Not really. But anyway it does not work this way. i don't guess what was missing. > In order to change > image's pixbuff you must redraw it afterwards and possibly resize it > etc. It is possible, but you must understand the inner workings of GTK. > Much simpler is to replace the image widget as a whole. ok. i think that i need not understand the inner workings of GTK to make RAPID, and i don't want it as long as not needed (i still don't understand all usages). afaiu(nderstand), to make mcc.tki.Widget.Picture.Set_Image working, i absolutely need an intermediate container? well, why Gtk_Event_Box is not a good container for a Gtk_Image, while it is a good one for a Gtk_Pixmap? > > If you need a button with image just put an image into it. Gtk_Button is > already a container. yes, it works fine :-) > Put Gtk_Box into it. Put Gtk_Image into Gtk_Box. > That's would be all. do you mean that (for a simple image, not a button) i should use a Gtk_Box as intermediate container, instead of a Gtk_Event_Box? -- RAPID maintainer http://savannah.nongnu.org/projects/rapid/