Commit 796e884c authored by Emmanuele Bassi's avatar Emmanuele Bassi

Use power symbols for GtkSwitch labels

Both the "on" and "off" IEC states have a corresponding Unicode glyph,
starting from Unicode 9.0.
parent ca583836
Pipeline #50687 passed with stage
in 8 minutes and 6 seconds
......@@ -299,10 +299,10 @@ gtk_switch_create_pango_layouts (GtkSwitch *self)
GtkSwitchPrivate *priv = self->priv;
g_clear_object (&priv->on_layout);
priv->on_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "");
priv->on_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "");
g_clear_object (&priv->off_layout);
priv->off_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "");
priv->off_layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), "");
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment