label: Avoid duplicating a string
We only use str_for_accel if with_uline is TRUE.
This commit is contained in:
@@ -2332,7 +2332,6 @@ gtk_label_set_markup_internal (GtkLabel *label,
|
||||
return;
|
||||
}
|
||||
|
||||
str_for_accel = g_strdup (str_for_display);
|
||||
|
||||
if (links)
|
||||
{
|
||||
@@ -2349,6 +2348,8 @@ gtk_label_set_markup_internal (GtkLabel *label,
|
||||
gboolean enable_mnemonics = TRUE;
|
||||
gboolean auto_mnemonics = TRUE;
|
||||
|
||||
str_for_accel = g_strdup (str_for_display);
|
||||
|
||||
if (!(enable_mnemonics && priv->mnemonics_visible &&
|
||||
(!auto_mnemonics ||
|
||||
(gtk_widget_is_sensitive (GTK_WIDGET (label)) &&
|
||||
|
||||
Reference in New Issue
Block a user