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: Tue, 15 Sep 2020 21:14:45 +0300 Organization: LINKOV.NET Message-ID: <87r1r3ncwq.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23856"; 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 Tue Sep 15 20:19:14 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 1kIFXu-00066C-Q8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 20:19:14 +0200 Original-Received: from localhost ([::1]:37034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIFXt-0007dx-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 14:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIFXi-0007cI-Q2 for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 14:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIFXi-0003Dm-FB for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 14:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIFXi-0007sF-Be for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 14:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Sep 2020 18:19:02 +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.160019389030203 (code B ref 43405); Tue, 15 Sep 2020 18:19:02 +0000 Original-Received: (at 43405) by debbugs.gnu.org; 15 Sep 2020 18:18:10 +0000 Original-Received: from localhost ([127.0.0.1]:60539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIFWs-0007r4-GT for submit@debbugs.gnu.org; Tue, 15 Sep 2020 14:18:10 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIFWr-0007qZ-2q for 43405@debbugs.gnu.org; Tue, 15 Sep 2020 14:18:09 -0400 X-Originating-IP: 91.129.97.241 Original-Received: from mail.gandi.net (m91-129-97-241.cust.tele2.ee [91.129.97.241]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 5665EC0004; Tue, 15 Sep 2020 18:18:01 +0000 (UTC) In-Reply-To: <837dsw9mpu.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 14 Sep 2020 22:34:21 +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:188144 Archived-At: > Btw, are you trying this in a GTK build or with some other toolkit? I tried both GTK and no-toolkit, and it can't align the icon to the right on the tool-bar. Whereas the same code nicely alights the icon on the tab-bar: (progn (tab-bar-mode) (advice-add 'tab-bar-make-keymap-1 :around (lambda (orig-fun) (append (funcall orig-fun) `((menu-bar menu-item ,(concat (propertize " " 'display '(space :align-to (- right 5))) (propertize " " 'display '(image :type xpm :file "newsticker/narrow.xpm"))) (lambda () (interactive) (popup-menu (mouse-menu-bar-map))))))) '((name . tab-bar-menu-bar))))