Commit 6a4ce55a authored by Matthias Clasen's avatar Matthias Clasen

switch: Avoid problems with glyph availability

If none of the glyphs we want are available, fall
back to using empty strings here, rather than causing
critical warnings.
parent 2db6dbd1
Pipeline #53181 passed with stage
in 7 minutes and 44 seconds
......@@ -302,12 +302,14 @@ gtk_switch_create_pango_layouts (GtkSwitch *self)
const char *on_glyphs[] = {
"⏽", /* U+23FD POWER ON SYMBOL */
"❙", /* U+2759 MEDIUM VERTICAL BAR */
""
};
/* Glyphs for the OFF state, in descending order of preference */
const char *off_glyphs[] = {
"⭘", /* U+2B58 HEAVY CIRCLE */
"○", /* U+25CB WHITE CIRCLE */
""
};
int i;
......
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