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!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp6-1.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: Fri, 25 Mar 2022 20:37:53 +0100 Message-ID: Organization: Guest of ProXad - France NNTP-Posting-Date: 25 Mar 2022 20:37:53 CET NNTP-Posting-Host: 91.175.52.121 X-Trace: 1648237073 news-4.free.fr 3702 91.175.52.121:14792 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:63642 List-Id: In article , "Dmitry A. Kazakov" wrote: > On 2022-03-25 02:53, Thomas wrote: > > > but first, since you seem to be sure that Gtk_Box is the right container > > to use, i tested it ... > > it doesn't work ! > > I am using Gtk_Image in Gtk_Box, it works perfectly well, and worked in > GTK 2 (I am using GTK 3). (Gtk_Pixmap were fully removed from GTK 3) > > > i don't understand why. > > > > it is put in a Gtk_Fixed, can that have an influence? > > Gtk_Fixed should never be used, but I doubt it can be the reason. i can't do it easily because it would need to review all design an user interface of RAPID. > > > the case where it works are : > > - Gtk_Pixmap instead of Gtk_Image > > - Gtk_Image without container > > - Gtk_Button set with a Gtk_Image > > > > any idea of what i should try, now? > > Do you call Show on the new child widget after replacing it? ok, that's it. thank you very much :-)) afaiu, the specific thing about Gtk_Pixmap is that i need not to call Show on it, calling Show on its parent is enough. but, I thought calling Show on a container was recursive on its childs, wrong? last: now, it works fine with a Gtk_Event_Box as container. is it ok, or do you think i should avoid it anyway? if i should avoid it, is there an other Gtk_Bin that i could use, or do you think Gtk_Box is the only one i should use for this purpose? -- RAPID maintainer http://savannah.nongnu.org/projects/rapid/