diff options
author | Wynn Wolf Arbor | 2019-10-30 19:11:16 +0100 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-02-04 14:33:13 +0100 |
commit | 00702a3b764139a28b4de89f48ec1e38f1c58150 (patch) | |
tree | 8ab9563b3d462a60335ec489d2371df474201d0d /Makefile | |
parent | f72f05cd8e157e5f433dca21de2a8d7fb2411436 (diff) | |
download | weltschmerz-00702a3b764139a28b4de89f48ec1e38f1c58150.tar.gz |
Improve configuration handling
This commit improves and simplifies weltschmerz's configuration
handling. Obtaining and parsing the KeyFile is split out into
ConfigReader, which is fully agnostic of the specific configuration
values.
Config now contains all configuration values in the form of primitive
types or class instances, and no longer delegates access to the KeyFile
structure directly. This means that the configuration file is read once,
and then kept in the Config instance.
Indirectly this commit also fixes a bug where weltschmerz would segfault
if one of the palette entries contained an invalid value.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ VALAC ?= valac weltschmerz: weltschmerz.vala terminal.vala config.vala resources.c ${VALAC} -X -lm --pkg posix --pkg gtk+-3.0 --pkg vte-2.91 --gresources resources.xml \ - weltschmerz.vala terminal.vala config.vala resources.c + weltschmerz.vala terminal.vala config.vala configreader.vala resources.c resources.c: resources.xml terminal.ui terminal.css glib-compile-resources $< --target=$@ --generate-source |