diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-11-24 23:36:51 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-11-25 18:13:37 +0100 |
commit | 660eef88e4a0add913e8a147d97b9549162a921e (patch) | |
tree | 32bbcb608739f902f9d2d6a6044b77ff33027da7 /src/calcurse.c | |
parent | 69b5293c871af3500f7b80379a5d9d3f5e41d8ad (diff) | |
download | calcurse-660eef88e4a0add913e8a147d97b9549162a921e.zip |
Add configuration option to set a default panel
This allows for customizing the panel that is selected by default when
calcurse is started.
Note that this patch doesn't add any documentation. Also, this
configuration option currently cannot be configured using the
configuration menu.
Implements FR#19.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r-- | src/calcurse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 0c8bfa4..c55db55 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -549,6 +549,7 @@ int main(int argc, char **argv) vars_init(); wins_init(); + /* Default to the calendar panel -- this is overridden later. */ wins_slctd_set(CAL); notify_init_bar(); wins_reset_status_page(); @@ -569,7 +570,7 @@ int main(int argc, char **argv) io_startup_screen(no_data_file); } inday = *day_process_storage(0, 0, &inday); - wins_slctd_set(CAL); + wins_slctd_set(conf.default_panel); wins_update(FLAG_ALL); /* Start miscellaneous threads. */ |