From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#43405: Tool bar item doesn't align to the right edge Date: Wed, 16 Sep 2020 22:29:54 +0300 Organization: LINKOV.NET Message-ID: <87363ies65.fsf@mail.linkov.net> References: <87mu1xrjqw.fsf@gkayaalp.com> <48ed4897-356c-4669-a330-1fdb5d65402b@default> <83lfhhijbl.fsf@gnu.org> <871rj9uz12.fsf@gkayaalp.com> <875z8k4wv8.fsf@posteo.net> <83pn6shjni.fsf@gnu.org> <20200911074445.GB5194@tuxteam.de> <87zh5uqdqm.fsf@mail.linkov.net> <834ko1da33.fsf@gnu.org> <87sgbloe5z.fsf@mail.linkov.net> <83een5bkja.fsf@gnu.org> <87v9ghlc5c.fsf@mail.linkov.net> <83d02pbhny.fsf@gnu.org> <87een4qi9i.fsf_-_@mail.linkov.net> <837dsw9mpu.fsf@gnu.org> <87r1r3ncwq.fsf@mail.linkov.net> <83a6xq995x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23012"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 43405@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 16 22:00:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIdbA-0005tH-Vh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Sep 2020 22:00:12 +0200 Original-Received: from localhost ([::1]:43084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIdb9-0001xX-Pp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Sep 2020 16:00:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIdb1-0001ws-Ru for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 16:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIdb1-0004Nv-HM for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 16:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIdb1-0008Sh-Dl for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 16:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Sep 2020 20:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43405 X-GNU-PR-Package: emacs Original-Received: via spool by 43405-submit@debbugs.gnu.org id=B43405.160028640132483 (code B ref 43405); Wed, 16 Sep 2020 20:00:03 +0000 Original-Received: (at 43405) by debbugs.gnu.org; 16 Sep 2020 20:00:01 +0000 Original-Received: from localhost ([127.0.0.1]:36209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIday-0008Ro-LS for submit@debbugs.gnu.org; Wed, 16 Sep 2020 16:00:00 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:33713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIdar-0008R3-9b for 43405@debbugs.gnu.org; Wed, 16 Sep 2020 15:59:58 -0400 X-Originating-IP: 91.129.108.13 Original-Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id A766AC0003; Wed, 16 Sep 2020 19:59:45 +0000 (UTC) In-Reply-To: <83a6xq995x.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 15 Sep 2020 21:39:22 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188179 Archived-At: > I think you forget how the tool bar is displayed. In the versions of > Emacs that produce our native tool bar, the tool bar is displayed by > displaying a Lisp string made of spaces, where each space has a > display property which specifies the icon to display. Your code puts > the :align-to properties on menu item's name, but that name is not > used at all for the display of tool bar, so it has no effect. What > you need is to put the :align-to property on the respective space of > the Lisp string used to display the tool bar. I don't think this can > be done in Lisp, we need support on the C level. Actually, I didn't forget how the tool bar is displayed, but hoped that maybe somehow this is still possible. > In the versions of Emacs that use the so-called "external tool bar", > like the GTK build, I don't see how :align-to can have any effect at > all; we need instead to use GTK facilities to arrange the buttons > (assuming that such facilities exist and are available to Emacs). AFAIK, the GTK build supports 4 positions of the tool-bar: 'top', 'bottom' 'left', 'right'. I can't imagine how the Hamburger menu icon should be aligned for a tool-bar position different from the default 'top'.