[gtk/io-switch] switch: Always use I/O
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/io-switch] switch: Always use I/O
- Date: Thu, 10 Jan 2019 21:59:45 +0000 (UTC)
commit 45ee476e36814810f0f62fcdbf7401ee31478a07
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 10 16:58:16 2019 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]