After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 17994 - Tasklist should show icon name, not window name.
Tasklist should show icon name, not window name.
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: general
unspecified
Other opensolaris
: Normal enhancement
: GNOME2.x
Assigned To: libwnck maintainers
libwnck maintainers
: 84160 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2000-07-24 14:09 UTC by wfaulk
Modified: 2005-03-27 23:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix this (717 bytes, patch)
2003-07-18 23:29 UTC, Mariano Suárez-Alvarez
none Details | Review
s/wnck_window_get_name/wnck_window_get_icon_name/ (606 bytes, patch)
2005-03-27 23:50 UTC, Peter Oliver
none Details | Review

Description wfaulk 2001-01-27 18:13:06 UTC
Package:  panel
Severity: wishlist
Version:  
Synopsis: Tasklist should show icon name, not window name.
Class:    change-request

System: SunOS 5.8 sun4u sparc
C compiler: 2.95.2
glib: 1.2.7
GTK+: 1.2.7
ORBit: ORBit 0.5.1
gnome-libs: gnome-libs 1.2.0
libxml: 1.8.7
gnome-print: gnome-print-0.20
gnome-core: gnome-core 1.2.0


Description:
The tasklist always shows the window title, not the icon title.

For example, Ilike to set my xterm title to my current hostname and
path, but set the icon title to only the hostname since the path is
usually too long to fit in an icon.  But the tasklist uses only the
window title.

To check this, you can use the -T and -n options to xterm, or, within an
xterm, echo out:

^[]1;ICON ^G^[]2;TITLE ^G

where ^[ is an escape and ^G is control-G




------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 13:13 -------
This bug was previously known as bug 17994 at http://bugs.gnome.org/
http://bugs.gnome.org/show_bug.cgi?id=17994
Originally filed under the gnome-core product and panel component.

The original reporter (wfaulk@windwire.com) of this bug does not have an account here.
Reassigning to the exporter, debbugs-export@bugzilla.gnome.org.
Reassigning to the default owner of the component, panel-maint@bugzilla.gnome.org.

Comment 1 George Lebl 2001-02-27 03:27:04 UTC
Perhaps this should be an option
Comment 2 Luis Villa 2002-08-30 18:59:04 UTC
*** Bug 84160 has been marked as a duplicate of this bug. ***
Comment 3 Dave Bordoley [Not Reading Bug Mail] 2002-09-08 02:34:37 UTC
im assuming this is libwnk, 
Comment 4 Havoc Pennington 2002-09-08 04:23:05 UTC
I agree it should do this (but not as an option, it should just show
icon name if set, falling back to window name). Or really it should 
choose a name in this order, selecting the first property that is 
validly set:

 _NET_WM_VISIBLE_ICON_NAME
 _NET_WM_ICON_NAME
 WM_ICON_NAME
 _NET_WM_VISIBLE_NAME
 _NET_WM_NAME
 WM_NAME
Comment 5 Mariano Suárez-Alvarez 2003-07-18 23:28:13 UTC
Reopening this because the incorrect behaviour explained in a comment
to bug 84164 is caused by the way libwnck is handling setting the
title of a window, when the icon title has been set.

Follows a patch which fixes this.
Comment 6 Mariano Suárez-Alvarez 2003-07-18 23:29:24 UTC
Created attachment 18422 [details] [review]
fix this
Comment 7 Havoc Pennington 2003-07-19 17:39:05 UTC
Looks good to commit, thanks.
Comment 8 Mariano Suárez-Alvarez 2003-07-20 23:43:55 UTC
Done.
Comment 9 Peter Oliver 2005-03-27 16:39:45 UTC
This doesn't seem to be fixed.  I observe the problem with both libwnck version
2.8.1 from Fedora Core 3 and version 2.10.0 from rawhide.
Comment 10 Elijah Newren 2005-03-27 16:45:42 UTC
Peter: With which program?  Can you run "xprop | grep _NAME", then click on the
window causing problems, and then give us the output?
Comment 11 Peter Oliver 2005-03-27 18:30:18 UTC
I'm using xterms, but I notice that the same happens with gnome-terminal. 
Here's the xprop output for xterm after typing 'echo -n "^[]1;icon^G^[]2;title^G"':

> xprop | grep _NAME
WM_LOCALE_NAME(STRING) = "en_GB.iso88591"
WM_ICON_NAME(STRING) = "icon"
WM_NAME(STRING) = "title"

and for gnome-terminal:
> xprop | grep _NAME
WM_LOCALE_NAME(STRING) = "en_GB.iso88591"
WM_ICON_NAME(STRING) = "icon"
_NET_WM_ICON_NAME(UTF8_STRING) = 0x69, 0x63, 0x6f, 0x6e
WM_NAME(STRING) = "title"
_NET_WM_NAME(UTF8_STRING) = 0x74, 0x69, 0x74, 0x6c, 0x65
Comment 12 Peter Oliver 2005-03-27 23:50:10 UTC
Created attachment 39321 [details] [review]
s/wnck_window_get_name/wnck_window_get_icon_name/

Here's a trivial patch againt HEAD that seems to do the trick.

Related musing: the tooltips in the Window List seem a bit redundant.  Perhaps
they should show the title text rather than the icon text, or if they're
different, even both?