Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80150 - no Emacs icon in the gnome-panel window list, even with ~/.Xresources
Summary: no Emacs icon in the gnome-panel window list, even with ~/.Xresources
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 17:27 UTC by aethyr
Modified: 2006-05-15 15:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to make gtk2 emacs display an icon. (emacs_icon_patch,753 bytes, patch)
2005-02-04 00:30 UTC, aethyr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description aethyr 2005-01-30 17:27:20 UTC
Original discussion here:
http://forums.gentoo.org/viewtopic.php?t=40424

I cannot get Emacs to show its icon in the GNOME window panel.  I have not tried anywhere else, so I'm not sure if this is GNOME specific, Emacs specific, or Gentoo specific.

Basically, Emacs just shows the generic "new file" icon.

I read that you can set ~/.Xresources to make emacs show an icon, so that's what I did:

~/.Xresources:
emacs*bitmapIcon: on
Emacs*bitmapIcon: on

$ appres Emacs | grep -i icon
Emacs*bitmapIcon:       on

$ appres emacs | grep -i icon
emacs*bitmapIcon:       on

I do not know what else to try.  I'm not sure if this is an upstream bug, but I would appreciate anyone's knowledge of the situation :)

Reproducible: Always
Steps to Reproduce:
1. open emacs
2. see generic "new file" icon being used



Expected Results:  
Emacs should show an application-specific icon on the panel.

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.10-ck5 i686)
=================================================================
System uname: 2.6.10-ck5 i686 Intel(R) Celeron(TM) CPU                1400MHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="no"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS=" ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://mirror.clarkson.edu/pub/distributions/gentoo/
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirrors.tds.net/gentoo
http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa avi berkdb bitmap-fonts cdr dga dvd encode f77 fam font-server
foomaticdb fortran gdbm gif gnome gtk gtk2 hal imagemagick imlib java jpeg
libg++ libwww mikmod mmx motif mpeg mysql ncurses nls opengl oss pam pdflib perl
png python quicktime readline samba sdl slang spell sqlite sse ssl svga tcpd
truetype truetype-fonts type1-fonts xml xml2 xv zlib"
Comment 1 Joe McCann (RETIRED) gentoo-dev 2005-02-03 11:40:23 UTC
The window list application just uses what ever icon the app has set to show in the top corner. This is an issue with emacs not using what ever the standard wm hint is for displaying an icon(_NET_WM_ICON_NAME I think)
Comment 2 aethyr 2005-02-04 00:30:26 UTC
Created attachment 50306 [details, diff]
Patch to make gtk2 emacs display an icon.

Here's a patch to fix the missing icon.  I will try to submit it upstream was
well.
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2006-05-15 12:45:07 UTC
Hi aethyr, how did the upstream patch sending go?  I'm hesitant to patch cvs pulls, so if this bug report can be resolved just by waiting on upstream...
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2006-05-15 15:36:39 UTC
xg_set_icon in src/xfns.c in emacs-cvs looks like it sets the wm icon.