Age | Commit message (Collapse) | Author |
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
* tag was always included even when it didn't need to be. Now only
include it when tag specified, flagged, or includes an icon.
This messed up the existing update fields system.
* The update fields system has been changed to allow updating by tag
instead of the translated label. By label still works, however.
I think it would be best to switch to using tags in the future.
* info_flatten() calls flatten_shell_param() after flatten_group()
which could cause a field name or tag to be used after it was freed.
Created special free functions to handle this after all is used.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
See: https://github.com/lpereira/hardinfo/issues/404
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Reduce code repetition by using an array of GCompareFunc function
pointers.
|
|
Fields are sorted on flatten.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
See:
https://github.com/lpereira/hardinfo/pull/393#issuecomment-507893260
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Otherwise, the field updater would look for a field $ITEM-g-i$FieldName,
which it has no way of knowing about.
|
|
|
|
|
|
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
While info_flatten() is just a scaffold, use GString to reduce the
amount of temporary heap memory allocations.
|
|
Strings were never a good choice to begin with. However, with the efforts
to improve translatability, they became even worse. This is an attempt to
clean up the current mess and provide a more structured way for modules to
commmunicate with the shell.
The Computer module has been partially converted and changes will be
provided next. It's partially converted since some of its information is
still stored as strings.
The Shell still only understands strings; that's why the structured data is
converted to a string the way it is. Once all modules are converted, the
Shell can be modified to handle struct Info directly without having to parse
the .ini-like strings.
|