Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I bet the human brain is a kludge. -- Marvin Minsky


devel / comp.lang.ada / too much spaces with Gtk.Button.Set_Image

SubjectAuthor
* too much spaces with Gtk.Button.Set_ImageThomas
`- Re: too much spaces with Gtk.Button.Set_ImageThomas

1
too much spaces with Gtk.Button.Set_Image

<62c20c8f$0$24813$426a74cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8493&group=comp.lang.ada#8493

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp5-1.free.fr!not-for-mail
From: fantome.forums.tDeContes@free.fr.invalid (Thomas)
Newsgroups: comp.lang.ada
Mail-Copies-To: nobody
Subject: too much spaces with Gtk.Button.Set_Image
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Date: Sun, 03 Jul 2022 23:39:26 +0200
Lines: 34
Message-ID: <62c20c8f$0$24813$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 03 Jul 2022 23:39:27 CEST
NNTP-Posting-Host: 91.175.52.121
X-Trace: 1656884367 news-3.free.fr 24813 91.175.52.121:12286
X-Complaints-To: abuse@proxad.net
 by: Thomas - Sun, 3 Jul 2022 21:39 UTC

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
http://savannah.nongnu.org/projects/rapid/

Re: too much spaces with Gtk.Button.Set_Image

<62c3ad77$0$22250$426a34cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8495&group=comp.lang.ada#8495

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp4-1.free.fr!not-for-mail
From: fantome.forums.tDeContes@free.fr.invalid (Thomas)
Newsgroups: comp.lang.ada
Mail-Copies-To: nobody
Subject: Re: too much spaces with Gtk.Button.Set_Image
References: <62c20c8f$0$24813$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Date: Tue, 05 Jul 2022 05:18:15 +0200
Lines: 57
Message-ID: <62c3ad77$0$22250$426a34cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 05 Jul 2022 05:18:15 CEST
NNTP-Posting-Host: 91.175.52.121
X-Trace: 1656991095 news-4.free.fr 22250 91.175.52.121:8670
X-Complaints-To: abuse@proxad.net
 by: Thomas - Tue, 5 Jul 2022 03:18 UTC

In article <62c20c8f$0$24813$426a74cc@news.free.fr>,
Thomas <fantome.forums.tDeContes@free.fr.invalid> wrote:

> 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.
>
>

> 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...

i gone back to Gtk.Container.Add.

it doesn't more overflow at the 4th side, and that's a good thing,
but i don't understand what's wrong with Gtk.Button.Set_Image.

i was wrong telling "too much spaces with Gtk.Button.Set_Image",
because it's not Set_Image which causes the spaces,
but it's the use of a Gtk_Image instead of a Gtk_Pixmap.

i don't understand more what's the difference between Gtk_Image and
Gtk_Pixmap.

Gtk.Misc.Get_Padding returns 0 0.
i have no other idea now.

it's better with Add than with Set_Image,
but it's not very nice because RAPID has not exactly the same behavior
with Gtk and with TclTk.
(2*4 pixels in a small button (27 pixels) is a big part.)

i cannot revert to Gtk_Pixmap because it is Obsolescent.

so i still need help, please :-)

--
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/


devel / comp.lang.ada / too much spaces with Gtk.Button.Set_Image

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor