comp.lang.ada
 help / color / mirror / Atom feed
From: Thomas <fantome.forums.tDeContes@free.fr.invalid>
Subject: Re: Gtk.Image.Gtk_Image
Date: Fri, 25 Mar 2022 20:37:53 +0100	[thread overview]
Message-ID: <fantome.forums.tDeContes-AEFBD7.20375225032022@news.free.fr> (raw)
In-Reply-To: t1jr00$1ja4$1@gioia.aioe.org

In article <t1jr00$1ja4$1@gioia.aioe.org>,
 "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> 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/

  reply	other threads:[~2022-03-25 19:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-24 12:55 Gtk.Image.Gtk_Image Thomas
2022-03-24 13:35 ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-24 15:14   ` Gtk.Image.Gtk_Image Thomas
2022-03-24 15:47     ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-24 18:40       ` Gtk.Image.Gtk_Image Thomas
2022-03-24 20:33         ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-25  1:53           ` Gtk.Image.Gtk_Image Thomas
2022-03-25  7:29             ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-25 19:37               ` Thomas [this message]
2022-03-25 20:34                 ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-26  1:38                   ` Gtk.Image.Gtk_Image Thomas
2022-03-26  8:59                     ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-26 17:32                       ` Gtk.Image.Gtk_Image Thomas
2022-03-27  9:33                         ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-27 16:41                           ` Gtk.Image.Gtk_Image Thomas
2022-03-27 17:34                             ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-30  2:58                               ` Gtk.Image.Gtk_Image Thomas
2022-03-30 12:46                                 ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox