no display of Launcher description when they have a "&" character

Bug #392816 reported by draco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xfce4 Panel
Unknown
Unknown
xfce4-panel (Ubuntu)
Fix Released
Low
Lionel Le Folgoc

Bug Description

Binary package hint: xfce4-panel

Hello,

I'm using Xubuntu Jaunty 9.04 x86_64 version.

The bug is in the "Launcher" applet provided by xfce4-panel

draco@08:33:02 [0] <0>:~$ apt-cache policy xfce4-panel
xfce4-panel:
  Installé : 4.6.0-1ubuntu1
  Candidat : 4.6.0-1ubuntu1
 Table de version :
 *** 4.6.0-1ubuntu1 0
        500 http://fr.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

I've created a new launcher with the following parameters :
name => GCStar OAV & Dessins Animes
Description => Liste de OAV & Dessins Animés

I was expecting that when I will place the cursor over the icon of the Launcher, I will get a tooltip with the name and the description.
But I'm just getting the icon in the tooltip, without any text, unlike the other launcher created.

If I change the name and the description in order to remove the "&" character like :
name => GCStar OAV et Dessins Animes
Description => Liste de OAV et Dessins Animés
Both are displayed in the tooltip.

If a "&" remains in one of the name or description field of the launcher, only the icon is displayed in the tooltip.

Adding a backslash before the "&" (for escaping it like in shell script), have no effect.

To illustrate the problem, I made some screenshots :
With the bug : http://logicielsutiles.free.fr/xfce4-panel-bug.png
Without the bug : http://logicielsutiles.free.fr/xfce4-panel-no-bug.png

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Confirmed, the "&" character isn't correctly escaped, you can see an error message in $HOME/.xsession-errors:
(xfce4-panel:3925): Gtk-WARNING **: Failed to set text from markup due to error parsing markup
etc...

In the meantime, use "&amp;" instead of "&", it should correctly display a "&".

Changed in xfce4-panel (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Changed in xfce4-panel (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
draco (draco31-fr) wrote :

Hello Lionel,

Thank you for confirming the bug.

I try to replace the "&" by a "&amp;".
1. The tooltip now appears correctly with a real single "&"
2. The name in the launcher show the "&amp;" as is. So it is not very successfull.

I also made a screenshot : http://logicielsutiles.free.fr/xfce4-panel-workaround.png

Changed in xfce4-panel (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Lionel Le Folgoc (mrpouit)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xfce4-panel - 4.6.1-3ubuntu2

---------------
xfce4-panel (4.6.1-3ubuntu2) karmic; urgency=low

  * debian/patches:
    - 03_escape-tooltip-text.patch: correctly escape special characters
      in the tooltip LP: #392816
    - series: add this patch.

 -- Lionel Le Folgoc <email address hidden> Sun, 04 Oct 2009 15:26:17 +0200

Changed in xfce4-panel (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
draco (draco31-fr) wrote :

Thank you very much for that fix.

Did you made the patch during the Paris Ubuntu Bug Jam ?

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Huhu, no, I was too lazy to go.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.