From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.1 required=3.0 tests=AC_FROM_MANY_DOTS,BAYES_00, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp5-1.free.fr!not-for-mail From: 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 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 Xref: reader01.eternal-september.org comp.lang.ada:64073 List-Id: 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/