comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Gtk.Image.Gtk_Image
Date: Sat, 26 Mar 2022 09:59:08 +0100	[thread overview]
Message-ID: <t1mkkt$1vs3$1@gioia.aioe.org> (raw)
In-Reply-To: fantome.forums.tDeContes-CACBF6.02380226032022@news.free.fr

On 2022-03-26 02:38, Thomas wrote:
> In article <t1l90i$1otm$1@gioia.aioe.org>,
>   "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote:

>> It is recursive, but it affects only actual children. New children are
>> hidden by default. I think this is going to change in GTK 4.
> 
> i understand that about mcc.tki.Widget.Picture.Set_Image.
> 
> but in mcc.tki.Widget.Picture.Create,
> when i call Gtk.Container.Add, and then Gtk.Widget.Show on the
> container, it doesn't work.
> i need to call Gtk.Widget.Show on the image too.
> 
> (no matter if i don't understand, at least that works :-) but if you
> have enough patience, i like understand things :-) )

Maybe the widgets involved must be "realized" for recursive Show to 
work? The allocation size might be needed correctly set. Maybe the image 
is actually rendered but at a wrong place and size where it is not 
visible. There are many ways to mess it up.

>> Gtk_Fixed is bad because it breaks widget resizing protocol. If you
>> never resize (e.g. when changing the widget style, fonts, for example)
>> then Gtk_Fixed is just fine.
> 
> i don't understand details, but i think since RAPID was designed with
> Gtk_Fixed I can keep it without inconvenience in the short term.
> (i plan to make an other design in the medium term.)

RAPID is a GUI generator thing, right? So it tries to manage the layout 
by itself instead of using the prescribed techniques. Then Gtk_Fixed is 
a way to go.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2022-03-26  8:59 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               ` Gtk.Image.Gtk_Image Thomas
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                     ` Dmitry A. Kazakov [this message]
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