mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
accel label: Remove unneeded spaces
Having these extra spaces in the accel string is a bit awkward, since they will be included in text decorations such as underlines. Removing them has no visible effect.
This commit is contained in:
parent
6838861d26
commit
e8c5bc8d73
@ -962,12 +962,10 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
|
||||
if (have_accel)
|
||||
{
|
||||
GtkAccelLabelClass *klass;
|
||||
gchar *tmp;
|
||||
|
||||
klass = GTK_ACCEL_LABEL_GET_CLASS (accel_label);
|
||||
tmp = _gtk_accel_label_class_get_accelerator_label (klass, accel_key, accel_mods);
|
||||
accel_label->priv->accel_string = g_strconcat (" ", tmp, NULL);
|
||||
g_free (tmp);
|
||||
accel_label->priv->accel_string =
|
||||
_gtk_accel_label_class_get_accelerator_label (klass, accel_key, accel_mods);
|
||||
}
|
||||
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user