[gtk] switch: Always use I/O
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] switch: Always use I/O
- Date: Thu, 10 Jan 2019 22:22:49 +0000 (UTC)
commit 927e49ed86607a5031ca1e8f34deba09dc3179ed
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 10 17:20:45 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 | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index a1a1bcdc9b..0426fc1997 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -639,17 +639,10 @@ gtk_switch_init (GtkSwitch *self)
gtk_widget_add_controller (GTK_WIDGET (self), GTK_EVENT_CONTROLLER (gesture));
priv->pan_gesture = gesture;
- /* 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_label = gtk_label_new (C_("switch", "ON"));
+ priv->on_label = gtk_label_new ("❙");
gtk_widget_set_parent (priv->on_label, GTK_WIDGET (self));
- /* 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_label = gtk_label_new (C_("switch", "OFF"));
+ priv->off_label = gtk_label_new ("○");
gtk_widget_set_parent (priv->off_label, GTK_WIDGET (self));
priv->slider = gtk_gizmo_new ("slider", NULL, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]