! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Unexpected behaviour with ampersand in submenu title
Status:
CLOSED: FIXED
Product:
Xfce4-menueditor
Component:
General

Comments

Description Kim Roland Rasmussen 2004-12-16 11:50:46 CET
If a submenu is entered with title e.g. "Graphics & Presentation", a lot of 
warnings are thrown to the console and the menu editor display corrupts.



Reproducible: Always
Steps to Reproduce:
1. Make new submenu
2. Change title to something containing and ampersand followed by a space

Actual Results:  
Warnings to console and submenu display corrupts.



Expected Results:  
Allow a ampersand in menu title.

Of course this 'bug' is due to the use of ampersand for shortcuts in GTK.
Using & instead will produce the expected result.

I'm reporting this because for casual or first-time users this will not be 
immediately clear.

One solution is simply to check the string for occurrences of '&<space>' and 
replace it by '&amp;'
Comment 1 Kim Roland Rasmussen 2004-12-16 11:55:00 CET
Addendum:

Using '&amp;' instead of '&' will produce the right ampersand in the menu 
editor, but in the menu it will show up as '&amp;'. Hmmmm.
Comment 2 Jean-François Wauthy editbugs 2004-12-16 12:45:37 CET
the right ampersand in the menueditor is due to the use of markup 
Comment 3 Jean-François Wauthy editbugs 2004-12-16 14:03:21 CET
damn, i'm digging into it right now, you point out a nasty bug to resolve :p
Comment 4 Jean-François Wauthy editbugs 2004-12-16 19:09:34 CET
some hours and a 10kb patch later it seems to be fixed in CVS

Bug #598

Reported by:
Kim Roland Rasmussen
Reported on: 2004-12-16
Last modified on: 2009-07-14

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Attachments

Additional information