[metacity] accellabel: remove unused accel_seperator
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] accellabel: remove unused accel_seperator
- Date: Sun, 14 Mar 2021 18:59:54 +0000 (UTC)
commit 4a9c4a2de593d3bb9cb6b7d7f4da2b91eba6b56d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 18:56:21 2021 +0200
accellabel: remove unused accel_seperator
src/ui/metaaccellabel.c | 4 +---
src/ui/metaaccellabel.h | 1 -
2 files changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/ui/metaaccellabel.c b/src/ui/metaaccellabel.c
index 8e6f2a40d..d79c10afe 100644
--- a/src/ui/metaaccellabel.c
+++ b/src/ui/metaaccellabel.c
@@ -129,7 +129,6 @@ meta_accel_label_class_init (MetaAccelLabelClass *class)
class->mod_name_mod5 = g_strdup (_("Mod5"));
class->mod_separator = g_strdup ("+");
- class->accel_seperator = g_strdup (" / ");
class->latin1_to_char = TRUE;
}
@@ -343,8 +342,7 @@ meta_accel_label_update (MetaAccelLabel *accel_label)
g_free (accel_label->accel_string);
accel_label->accel_string = NULL;
- gstring = g_string_new (accel_label->accel_string);
- g_string_append (gstring, gstring->len ? class->accel_seperator : " ");
+ gstring = g_string_new (" ");
if (accel_label->accel_mods & META_VIRTUAL_SHIFT_MASK)
{
diff --git a/src/ui/metaaccellabel.h b/src/ui/metaaccellabel.h
index 0e1eac9ac..327f5be96 100644
--- a/src/ui/metaaccellabel.h
+++ b/src/ui/metaaccellabel.h
@@ -79,7 +79,6 @@ struct _MetaAccelLabelClass
gchar *mod_name_mod4;
gchar *mod_name_mod5;
gchar *mod_separator;
- gchar *accel_seperator;
guint latin1_to_char : 1;
/* Padding for future expansion */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]