From: "john muhl" <jm@pub.pink>
To: "Eli Zaretskii" <eliz@gnu.org>
Cc: 75018@debbugs.gnu.org
Subject: bug#75018: 30.0.93; Dired icon missing in tool-bar
Date: Sun, 22 Dec 2024 09:32:23 -0600 [thread overview]
Message-ID: <6bfb0822-f2e9-48d5-bcf3-0012fc432782@app.fastmail.com> (raw)
In-Reply-To: <86bjx46wvs.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
On Sun, Dec 22, 2024, at 12:43 AM, Eli Zaretskii wrote:
>> From: john muhl <jm@pub.pink>
>> Date: Sat, 21 Dec 2024 18:19:57 -0600
>>
>> The usual Dired icon is missing and instead shows up as a couple
>> of tiny triangles in the normal state and as a very generic file
>> icon on hover. Happens on emacs-30 and master and X11 and PGTK
>> builds. Lucid and Motif builds are unaffected.
>
> Where do the tool-bar icons come from in that build? They are not
> from the Emacs's etc/images/ directory, AFAICT.
They are the stock GTK icons. On this system they are located in
/usr/share/icons/. The option x-gtk-stock-map is responsible for
the mapping between Emacs' etc/images/* and the system's
icons. The attached patch fixes it here.
> Can you post the Dired icon file from where your build takes them?
Unfortunately I can't find those particular icons among the ~7000
icons in the /usr/share/icons/ directory but they're probably in
there somewhere.
> Also, is this problem new in the last pretest, or did previous
> pretests behave the same?
I tried 30.0.90 and 29.4 and they too are using the incorrect
icons. I suspect upgrading to Fedora 41 is what causes the
issue.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-Dired-icon-in-tool-bar-for-GTK-builds.patch --]
[-- Type: text/x-patch; name="0001-Fix-Dired-icon-in-tool-bar-for-GTK-builds.patch", Size: 1645 bytes --]
From 8d8f570ca0379e508330f27b7192e8e05b58602d Mon Sep 17 00:00:00 2001
From: john muhl <jm@pub.pink>
Date: Sun, 22 Dec 2024 09:10:15 -0600
Subject: [PATCH] Fix Dired icon in tool-bar for GTK builds
* lisp/term/pgtk-win.el (x-gtk-stock-map):
* lisp/term/x-win.el (x-gtk-stock-map): Update mapping for gtk-directory
icon. (Bug#75018)
---
lisp/term/pgtk-win.el | 2 +-
lisp/term/x-win.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/term/pgtk-win.el b/lisp/term/pgtk-win.el
index 505174048f6..e49c5905ba8 100644
--- a/lisp/term/pgtk-win.el
+++ b/lisp/term/pgtk-win.el
@@ -191,7 +191,7 @@ x-gtk-stock-map
'(
("etc/images/new" . ("document-new" "gtk-new"))
("etc/images/open" . ("document-open" "gtk-open"))
- ("etc/images/diropen" . "gtk-directory")
+ ("etc/images/diropen" . ("system-file-manager" "gtk-directory"))
("etc/images/close" . ("window-close" "gtk-close"))
("etc/images/save" . ("document-save" "gtk-save"))
("etc/images/saveas" . ("document-save-as" "gtk-save-as"))
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index ced2750202b..8b4b869173d 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -1380,7 +1380,7 @@ x-gtk-stock-map
'(
("etc/images/new" . ("document-new" "gtk-new"))
("etc/images/open" . ("document-open" "gtk-open"))
- ("etc/images/diropen" . "gtk-directory")
+ ("etc/images/diropen" . ("system-file-manager" "gtk-directory"))
("etc/images/close" . ("window-close" "gtk-close"))
("etc/images/save" . ("document-save" "gtk-save"))
("etc/images/saveas" . ("document-save-as" "gtk-save-as"))
--
2.47.1
[-- Attachment #3: dired-fixed.webp --]
[-- Type: image/webp, Size: 7574 bytes --]
next prev parent reply other threads:[~2024-12-22 15:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-22 0:19 bug#75018: 30.0.93; Dired icon missing in tool-bar john muhl
2024-12-22 6:43 ` Eli Zaretskii
2024-12-22 15:32 ` john muhl [this message]
2024-12-22 16:40 ` Eli Zaretskii
2024-12-22 18:15 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-22 18:45 ` Eli Zaretskii
2024-12-22 21:34 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-22 19:45 ` john muhl
2024-12-22 19:52 ` john muhl
2024-12-22 23:57 ` john muhl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6bfb0822-f2e9-48d5-bcf3-0012fc432782@app.fastmail.com \
--to=jm@pub.pink \
--cc=75018@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.