[gtk+] accel label: Remove unneeded spaces
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] accel label: Remove unneeded spaces
- Date: Sat, 29 Aug 2015 07:14:58 +0000 (UTC)
commit e8c5bc8d7346a8d003fb3b763fc32340588e1098
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 29 03:12:59 2015 -0400
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.
gtk/gtkaccellabel.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index 2b9cb77..95b0043 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]