From: Thomas <fantome.forums.tDeContes@free.fr.invalid>
Subject: Re: Gtk.Image.Gtk_Image
Date: Thu, 24 Mar 2022 16:14:16 +0100 [thread overview]
Message-ID: <fantome.forums.tDeContes-D0BF68.16141524032022@news.free.fr> (raw)
In-Reply-To: t1hs30$s7j$1@gioia.aioe.org
In article <t1hs30$s7j$1@gioia.aioe.org>,
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote:
> On 2022-03-24 13:55, Thomas wrote:
>
> > To display images, I had a Gtk.Pixmap.Gtk_Pixmap in a
> > Gtk.Event_Box.Gtk_Event_Box.
> >
> > Since Gtk.Pixmap is obsolescent, I try to replace it by
> > Gtk.Image.Gtk_Image.
> >
> >
> > When I replace Gtk.Pixmap.Gtk_Pixmap by Gtk.Image.Gtk_Image, it doesn't
> > work.
> >
> > Why? What's specific to Gtk_Pixmap or Gtk_Image so it has not the same
> > behavior in Gtk_Event_Box?
> >
> >
> > When I replace Gtk.Event_Box.Gtk_Event_Box by Gtk.Image.Gtk_Image, it
> > works fine, except the replacement by an other image.
> > (I try it using Gtk.Image.Get and Gtk.Image.Set, but it doesn't work.)
> >
> > Is there an other container, that I should use instead of
> > Gtk.Event_Box.Gtk_Event_Box that would work and that I should use
> > to replace the image inside?
>
> I don't know what are you trying to achieve.
sorry, sometimes I don't know what to write to be clear.
i'm trying to implement these interfaces :
http://svn.savannah.gnu.org/viewvc/rapid/branches/gtkada-2.24/src/tki/mcc
_tki/mcc-tki-image.ads?view=markup&pathrev=257
( https://urlpetite.fr/hfd )
http://svn.savannah.gnu.org/viewvc/rapid/branches/gtkada-2.24/src/tki/mcc
_tki/mcc-tki-widget-picture.ads?view=markup&pathrev=257
( https://urlpetite.fr/olk )
http://svn.savannah.gnu.org/viewvc/rapid/branches/gtkada-2.24/src/tki/mcc
_tki/mcc-tki-widget-button-picture.ads?view=markup&pathrev=257
( https://urlpetite.fr/p48 )
it was done with a very old version of gtkada.
i'm with gtkada-2.24. it works, but it uses some components that were
already Obsolescent in gtkada-2.24, like Gtk.Pixmap.
of ourse the goal is to update it to the latest version of gtkada.
to make it easier, an intermediate step is to update it properly to
gtkada-2.24, without Obsolescent components.
> If you want to change a
> child of a container, remove the old child and add a new one.
i edited the corresponding bodies :
http://svn.savannah.gnu.org/viewvc/rapid/branches/gtkada-2.24/src/peers/G
tk/mcc-tki-image.adb?view=markup&pathrev=257
( https://urlpetite.fr/2uf )
http://svn.savannah.gnu.org/viewvc/rapid/branches/gtkada-2.24/src/peers/G
tk/mcc-tki-widget-picture.adb?view=markup&pathrev=257
( https://urlpetite.fr/nso )
http://svn.savannah.gnu.org/viewvc/rapid/branches/gtkada-2.24/src/peers/G
tk/mcc-tki-widget-button-picture.adb?view=markup&pathrev=257
( https://urlpetite.fr/gl3 )
for mcc.tki.Image.External_Image i use Gtk.Image.Gtk_Image.
for mcc.tki.Widget.Button.Picture.Picture_Button i keep
Gtk.Button.Gtk_Button,
and both Create and Set_Image work fine, thanks to Gtk.Button.Set_Image.
for mcc.tki.Widget.Picture.Picture, if i keep
Gtk.Event_Box.Gtk_Event_Box and I replace Gtk.Pixmap.Gtk_Pixmap by
Gtk.Image.Gtk_Image, it seems to be no pb to change the child of the
Gtk_Event_Box, but nothing is displayed (including for Create) !
(on the other case, if I replace Gtk.Event_Box.Gtk_Event_Box by
Gtk.Image.Gtk_Image, Create works but Set_Image don't.)
is it clear enough ?
do you need to read my code ?
do you need some test code ?
--
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/
next prev parent reply other threads:[~2022-03-24 15:14 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 ` Thomas [this message]
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 ` 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