switch: Always use I/O
This allows for smaller switches, and goes better with modern themes that have round switches.
This commit is contained in:
parent
8292264ff3
commit
45ee476e36
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user