help / color / mirror / Atom feed
From: Thomas <>
Subject: too much spaces with Gtk.Button.Set_Image
Date: Sun, 03 Jul 2022 23:39:26 +0200	[thread overview]
Message-ID: <62c20c8f$0$24813$> (raw)

hi :-)

i want to make an Image Button without text and without large borders.

when i use Gtk.Button.Set_Image, it makes spaces at 3 sides, and the 
Image overflows at the 4th.
it depends on Gtk.Button.Get_Image_Position : it overflows at the side 
where it would have been the text.

Gtk.Box.Get_Spacing (Get_Child (Get_Child (My_Button))) returns 2,
but Gtk.Box.Set_Spacing (Get_Child (Get_Child (My_Button))))), 0) does 
not resolve the pb.

Gtk.Container.Get_Border_Width on any level of child of My_Button 
returns 0.

i don't find how to remove these spaces.

do you think i should use Gtk.Container.Add instead of 
Gtk.Button.Set_Image ?

previous authors have done that, but I feel like it's kind of a hack, 
and I don't like it very much...

RAPID maintainer

             reply	other threads:[~2022-07-03 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-03 21:39 Thomas [this message]
2022-07-05  3:18 ` Thomas
replies disabled

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