Commit f574bc52 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Change "_" to "-", fixing around 14183.

2000-06-14  Morten Welinder  <terra@diku.dk>

	* src/history.c (history_item_label): Change "_" to "-", fixing
 	around 14183.
parent d69ee3cb
......@@ -70,8 +70,15 @@ static gchar*
history_item_label (const gchar *name, const gint accel_number)
{
int i;
char *label = g_strdup_printf ("_%d %s", accel_number,
g_basename (name));
char *label, *menuname, *tmp;
/* Translate '_' to '-' so menu will not show underline. */
menuname = g_strdup (g_basename (name));
for (tmp = menuname; *tmp; tmp++)
if (*tmp == '_')
*tmp = '-';
label = g_strdup_printf ("_%d %s", accel_number, menuname);
g_free (menuname);
for (i = strlen (label) - 1; i >= 0; i--)
if (label [i] == '.') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment