diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-03-27 21:24:50 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-03-29 11:21:05 +0200 |
commit | a5eea86a07c9d0bd66d3a993d9e07c88abf34716 (patch) | |
tree | 438566c853cd9b8198af7ec7c6ed86c4041d34de /src | |
parent | 7cb0fc4cd9c4716fda91b6df8582ad2e994e5cb5 (diff) | |
download | calcurse-a5eea86a07c9d0bd66d3a993d9e07c88abf34716.zip |
src/config.c: Reorder configuration variables
Sort configuration variables lexicographically. This makes changes
easier to locate.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/config.c b/src/config.c index a5c1776..b6dd036 100644 --- a/src/config.c +++ b/src/config.c @@ -82,28 +82,28 @@ static int config_serialize_input_datefmt (char *, void *); (config_fn_serialize_t) config_serialize_str, &(var) static const struct confvar confmap[] = { - { "general.autosave", CONFIG_HANDLER_BOOL (conf.auto_save) }, - { "general.autogc", CONFIG_HANDLER_BOOL (conf.auto_gc) }, - { "general.periodicsave", CONFIG_HANDLER_UNSIGNED (conf.periodic_save) }, - { "general.confirmquit", CONFIG_HANDLER_BOOL (conf.confirm_quit) }, - { "general.confirmdelete", CONFIG_HANDLER_BOOL (conf.confirm_delete) }, - { "general.systemdialogs", CONFIG_HANDLER_BOOL (conf.skip_system_dialogs) }, - { "general.progressbar", CONFIG_HANDLER_BOOL (conf.skip_progress_bar) }, { "appearance.calendarview", config_parse_calendar_view, config_serialize_calendar_view, NULL }, - { "general.firstdayofweek", config_parse_first_day_of_week, config_serialize_first_day_of_week, NULL }, - { "appearance.theme", config_parse_color_theme, config_serialize_color_theme, NULL }, { "appearance.layout", config_parse_layout, config_serialize_layout, NULL }, - { "appearance.sidebarwidth", config_parse_sidebar_width, config_serialize_sidebar_width, NULL }, { "appearance.notifybar", CONFIG_HANDLER_BOOL (nbar.show) }, + { "appearance.sidebarwidth", config_parse_sidebar_width, config_serialize_sidebar_width, NULL }, + { "appearance.theme", config_parse_color_theme, config_serialize_color_theme, NULL }, + { "daemon.enable", CONFIG_HANDLER_BOOL (dmon.enable) }, + { "daemon.log", CONFIG_HANDLER_BOOL (dmon.log) }, + { "format.inputdate", config_parse_input_datefmt, config_serialize_input_datefmt, NULL }, { "format.notifydate", CONFIG_HANDLER_STR (nbar.datefmt) }, { "format.notifytime", CONFIG_HANDLER_STR (nbar.timefmt) }, - { "notification.warning", CONFIG_HANDLER_INT (nbar.cntdwn) }, + { "format.outputdate", config_parse_output_datefmt, config_serialize_output_datefmt, NULL }, + { "general.autogc", CONFIG_HANDLER_BOOL (conf.auto_gc) }, + { "general.autosave", CONFIG_HANDLER_BOOL (conf.auto_save) }, + { "general.confirmdelete", CONFIG_HANDLER_BOOL (conf.confirm_delete) }, + { "general.confirmquit", CONFIG_HANDLER_BOOL (conf.confirm_quit) }, + { "general.firstdayofweek", config_parse_first_day_of_week, config_serialize_first_day_of_week, NULL }, + { "general.periodicsave", CONFIG_HANDLER_UNSIGNED (conf.periodic_save) }, + { "general.progressbar", CONFIG_HANDLER_BOOL (conf.skip_progress_bar) }, + { "general.systemdialogs", CONFIG_HANDLER_BOOL (conf.skip_system_dialogs) }, { "notification.command", CONFIG_HANDLER_STR (nbar.cmd) }, { "notification.notifyall", CONFIG_HANDLER_BOOL (nbar.notify_all) }, - { "format.outputdate", config_parse_output_datefmt, config_serialize_output_datefmt, NULL }, - { "format.inputdate", config_parse_input_datefmt, config_serialize_input_datefmt, NULL }, - { "daemon.enable", CONFIG_HANDLER_BOOL (dmon.enable) }, - { "daemon.log", CONFIG_HANDLER_BOOL (dmon.log) } + { "notification.warning", CONFIG_HANDLER_INT (nbar.cntdwn) } }; struct config_save_status { |