[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43405: Tool bar item doesn't align to the right edge
From: |
Eli Zaretskii |
Subject: |
bug#43405: Tool bar item doesn't align to the right edge |
Date: |
Mon, 14 Sep 2020 22:34:21 +0300 |
> From: Juri Linkov <juri@linkov.net>
> Date: Mon, 14 Sep 2020 22:18:33 +0300
>
> >> emacs -Q and eval:
> >>
> >> (define-key-after (default-value 'tool-bar-map) [global-menu-bar]
> >> `(menu-item (propertize " " 'display '(space :align-to (- right 5)))
> >> (lambda ()
> >> (interactive)
> >> (popup-menu (mouse-menu-bar-map)))
> >> :image ,(tool-bar--image-expression "newsticker/narrow")
> >> :help "Pop up the global menu bar"))
> >> (force-mode-line-update)
> >>
> >> It doesn't align the icon to the right edge of the tool-bar
> >> whereas the same code aligns it on the tab-bar.
> >
> > Here, the above displays nothing at all on the tool bar.
>
> The icon is displayed only after more changes in window-configuration like
> switching buffers, i.e. force-mode-line-update (copied from
> tool-bar-local-item)
> has no effect.
>
> Another bug? Or should this code use both (redraw-display) and
> (force-mode-line-update) like in bug#43397?
I didn't yet look into that bug report, so I cannot say.
Btw, are you trying this in a GTK build or with some other toolkit?
- bug#43405: Tool bar item doesn't align to the right edge, Juri Linkov, 2020/09/14
- bug#43405: Tool bar item doesn't align to the right edge,
Eli Zaretskii <=
- bug#43405: Tool bar item doesn't align to the right edge, Juri Linkov, 2020/09/15
- bug#43405: Tool bar item doesn't align to the right edge, Eli Zaretskii, 2020/09/15
- bug#43405: Tool bar item doesn't align to the right edge, Juri Linkov, 2020/09/16
- bug#43405: Tool bar item doesn't align to the right edge, Robert Pluim, 2020/09/17
- bug#43405: Tool bar item doesn't align to the right edge, Eli Zaretskii, 2020/09/17
- bug#43405: Tool bar item doesn't align to the right edge, Robert Pluim, 2020/09/17
- bug#43405: Tool bar item doesn't align to the right edge, Eli Zaretskii, 2020/09/17
- bug#43405: Tool bar item doesn't align to the right edge, Robert Pluim, 2020/09/17
- bug#43405: Tool bar item doesn't align to the right edge, Eli Zaretskii, 2020/09/17
- bug#43405: Tool bar item doesn't align to the right edge, Robert Pluim, 2020/09/18