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 59114 - Underline characters in filenames appear wrong in recent files list (file menu)
Underline characters in filenames appear wrong in recent files list (file menu)
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
0.9.4
Other Linux
: Normal normal
: ---
Assigned To: Chema Celorio
Chema Celorio
Depends on:
Blocks:
 
 
Reported: 2001-08-16 18:14 UTC by Jonathan Blandford
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Blandford 2001-08-16 18:14:09 UTC
<This is a forward of RH bug #50114>

Description of Problem:

In the list of recently used files that appears on in
the "File" drop down menu, if the file or pathname 
contains an underline character, the next character
is shown as underlined, ie the underline character is
combined with the character that follows it.

How Reproducible:

Every time.

Steps to Reproduce:

cd
mkdir foo_bar
touch foo_bar/bar
gedit foo_bar/bar

Look at the entry in the recently used files list in the "file" menu.

Actual Results:

Appears as /home/james/foobar/bar
(the b in foobar is underlined)

Expected Results:

Appears as /home/james/foo_bar/bar
Comment 1 Chema Celorio 2001-08-19 18:51:39 UTC
Isn't this a gtk limitation ? Is there a way to escape the underline
character ?
Comment 2 Jonathan Blandford 2001-08-19 19:01:30 UTC
sure.  Don't use an accel label.  ie:

menu_item = gtk_menu_item_new ();
label = gtk_label_new (text);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_container_add (GTK_CONTAINER (menu_item), label);
Comment 3 Chema Celorio 2001-09-11 05:06:57 UTC
Fixed, i'll release 0.9.7 pretty soon with this fix.

Thanks for the bug report.