From: Thomas <fantome.forums.tDeContes@free.fr.invalid>
Subject: Re: Gtk.Image.Gtk_Image
Date: Sat, 26 Mar 2022 18:32:50 +0100 [thread overview]
Message-ID: <fantome.forums.tDeContes-8D94B1.18324926032022@news.free.fr> (raw)
In-Reply-To: t1mkkt$1vs3$1@gioia.aioe.org
In article <t1mkkt$1vs3$1@gioia.aioe.org>,
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote:
> 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.
(not sure to understand)
> Maybe the image
> is actually rendered but at a wrong place and size where it is not
> visible.
(i think that's not possible)
> There are many ways to mess it up.
i don't succeed in finding an order where calling Gtk.Image.Show is not
needed.
(of course all with Gtk.Container.Add before Gtk.Widget.Show on the
container, although i found it the other way)
i don't understand what's wrong. no matter.
i'm stupid, there was a call to Gtk.Pixmap.Show that i didn't see when i
removed it. (sorry!)
since it can be made before call to Gtk.Container.Add, that raises a new
question:
should i prefer to call Gtk.Image.Show as soon as possible, when
creating mcc.tki.Image.External_Image?
or should i call Gtk.Image.Show only at the time it is really displayed,
when creating mcc.tki.Widget.Picture.Picture?
>
> >> 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?
right :-)
http://www.nongnu.org/rapid/docs/rapid_novice_mode_tutorial.html
> So it tries to manage the layout
> by itself instead of using the prescribed techniques. Then Gtk_Fixed is
> a way to go.
it asks the user to choose the position and size of each widget, instead
of ask him to make stacks with automatic layout management, like Gtk
does with Gtk_Box.
--
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/
next prev parent reply other threads:[~2022-03-26 17:32 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 ` Gtk.Image.Gtk_Image Dmitry A. Kazakov
2022-03-26 17:32 ` Thomas [this message]
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