mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Merge branch '1700_space_in_color_name'
* 1700_space_in_color_name: Ticket #1700: fixed skin color parser.
This commit is contained in:
commit
c492abe28c
@ -153,13 +153,13 @@ mc_skin_color_get_from_ini_file (mc_skin_t * mc_skin, const gchar * group, const
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
mc_skin_color->fgcolor = (values[0]) ? g_strdup (values[0]) : NULL;
|
mc_skin_color->fgcolor = (values[0]) ? g_strstrip (g_strdup (values[0])) : NULL;
|
||||||
tmp = mc_skin_color_get_with_defaults (group, "_default_");
|
tmp = mc_skin_color_get_with_defaults (group, "_default_");
|
||||||
mc_skin_color->bgcolor = (tmp != NULL) ? g_strdup (tmp->bgcolor) : NULL;
|
mc_skin_color->bgcolor = (tmp != NULL) ? g_strdup (tmp->bgcolor) : NULL;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
mc_skin_color->fgcolor = (values[0]) ? g_strdup (values[0]) : NULL;
|
mc_skin_color->fgcolor = (values[0]) ? g_strstrip (g_strdup (values[0])) : NULL;
|
||||||
mc_skin_color->bgcolor = (values[1]) ? g_strdup (values[1]) : NULL;
|
mc_skin_color->bgcolor = (values[1]) ? g_strstrip (g_strdup (values[1])) : NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
g_strfreev (values);
|
g_strfreev (values);
|
||||||
|
Loading…
Reference in New Issue
Block a user