From 45ee476e36814810f0f62fcdbf7401ee31478a07 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 10 Jan 2019 16:58:16 -0500 Subject: [PATCH] switch: Always use I/O This allows for smaller switches, and goes better with modern themes that have round switches. --- gtk/gtkswitch.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index 15f11a4649..08ebfd6ee1 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -299,18 +299,10 @@ gtk_switch_create_pango_layouts (GtkSwitch *self) GtkSwitchPrivate *priv = self->priv; g_clear_object (&priv->on_layout); - /* Translators: if the "on" state label requires more than three - * glyphs then use MEDIUM VERTICAL BAR (U+2759) as the text for - * the state - */ - priv->on_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), C_("switch", "ON")); - + priv->on_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "❙"); g_clear_object (&priv->off_layout); - /* Translators: if the "off" state label requires more than three - * glyphs then use WHITE CIRCLE (U+25CB) as the text for the state - */ - priv->off_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), C_("switch", "OFF")); + priv->off_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "○"); } static void