summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-08-19 13:15:55 +0000
committerFrederic Culot <calcurse@culot.org>2007-08-19 13:15:55 +0000
commitc1a741f2873f7c9517e2f8087c335b58a2db80a5 (patch)
treeaacc9d6204a15929257eba5856cd862fe0f2cb46
parentcfee31cf75a296611de130fcd8b2072c3168e487 (diff)
downloadcalcurse-c1a741f2873f7c9517e2f8087c335b58a2db80a5.zip
changed notification bar init process
no more check for terminal size in main loop
-rwxr-xr-xsrc/calcurse.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index c75a6df..f11215c 100755
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -1,4 +1,4 @@
-/* $calcurse: calcurse.c,v 1.54 2007/08/15 15:29:52 culot Exp $ */
+/* $calcurse: calcurse.c,v 1.55 2007/08/19 13:15:55 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -143,11 +143,11 @@ main(int argc, char **argv)
erase_status_bar();
io_load_todo();
io_load_app();
+ wins_reinit();
if (notify_bar()) {
notify_start_main_thread();
notify_check_next_app();
- }
- wins_reinit();
+ }
wins_update();
io_startup_screen(conf.skip_system_dialogs, no_data_file);
inday = *day_process_storage(0, day_changed, &inday);
@@ -158,16 +158,6 @@ main(int argc, char **argv)
/* User input */
for (;;) {
- /* Check terminal size. */
- getmaxyx(stdscr, row, col);
- if ((col < 80) | (row < 24)) {
- endwin();
- fputs(_("Please resize your terminal screen\n"
- "(to at least 80x24),\n"
- "and restart calcurse.\n"), stderr);
- return (EXIT_FAILURE);
- }
-
/* Get user input. */
ch = wgetch(swin);
switch (ch) {