From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Gtk.Image.Gtk_Image
Date: Thu, 24 Mar 2022 21:33:42 +0100 [thread overview]
Message-ID: <t1ikj3$18ak$1@gioia.aioe.org> (raw)
In-Reply-To: fantome.forums.tDeContes-F968A4.19403924032022@news.free.fr
On 2022-03-24 19:40, Thomas wrote:
> In article <t1i3qd$oud$1@gioia.aioe.org>,
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote:
>> 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?
Gtk_Box is handy as you can place many children into it, e.g. labels,
use alignment etc.
Gtk_Event_Box is special, it filters events and should be used rarely,
e.g. with a Gtk_Image or Gtk_Label when you want to turn them into a
fully functional widgets. You just do not need that because normal
containers already do the work. If you use Gtk_Event_Box you would have
to handle necessary signals to make everything work as it would with
Gtk_Box out of the box (no pun intended).
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2022-03-24 20:33 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 ` Dmitry A. Kazakov [this message]
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 ` 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