summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-01-11 15:21:09 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2019-01-11 15:25:30 +0000
commitba9b0c6f7d3237e77318bec4c546abaa7c212375 (patch)
tree5dae8414e4fea10fcfb0840beed423326b720819 /gtk/gtkswitch.c
parent3ce3de98daeb27d407a0863ec789c033dcd3cd40 (diff)
downloadgtk+-ba9b0c6f7d3237e77318bec4c546abaa7c212375.tar.gz
Use the IEC power symbols for GtkSwitch labels
Unicode 9.0 introduced glyps for the "on" and "off" power states, in the form of: - U+23FD POWER ON SYMBOL, or ⏽ - U+2B58 HEAVY CIRCLE, or ⭘ With `HEAVY CIRCLE` as "power off symbol" selected to avoid adding yet another circle to the standard. Since we moved GtkSwitch to always show glyphs instead of (translatable) strings, asking the localisation teams to either come up with a suitable short string to replace the English "ON" and "OFF", or to fall back to Unicode glyphs, we should ensure we're using the appropriate symbols to begin with. See also: gtk!503 for the corresponding gtk-3-24 change.
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r--gtk/gtkswitch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 0426fc1997..abc37ab863 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -639,10 +639,10 @@ gtk_switch_init (GtkSwitch *self)
gtk_widget_add_controller (GTK_WIDGET (self), GTK_EVENT_CONTROLLER (gesture));
priv->pan_gesture = gesture;
- priv->on_label = gtk_label_new ("❙");
+ priv->on_label = gtk_label_new ("⏽");
gtk_widget_set_parent (priv->on_label, GTK_WIDGET (self));
- priv->off_label = gtk_label_new ("○");
+ 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);