From 660eef88e4a0add913e8a147d97b9549162a921e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 24 Nov 2012 23:36:51 +0100 Subject: 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 --- src/calcurse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/calcurse.c') 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. */ -- cgit v1.2.3-54-g00ecf