summaryrefslogtreecommitdiff
path: root/src/todo.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-07-12 16:21:57 +0000
committerFrederic Culot <calcurse@culot.org>2009-07-12 16:21:57 +0000
commit56949550025f447691b0f32632b35af4749da358 (patch)
treeb51bf757d54bfca2ed7a0bd8124f18e506c83d98 /src/todo.c
parentd4d29be0fa41c079ab0a9e11585f65ff5e2828cf (diff)
downloadcalcurse-56949550025f447691b0f32632b35af4749da358.zip
stdbool header removed, unsigned type used instead
Diffstat (limited to 'src/todo.c')
-rwxr-xr-xsrc/todo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/todo.c b/src/todo.c
index e027685..b2dbd5e 100755
--- a/src/todo.c
+++ b/src/todo.c
@@ -1,4 +1,4 @@
-/* $calcurse: todo.c,v 1.33 2009/07/05 20:33:24 culot Exp $ */
+/* $calcurse: todo.c,v 1.34 2009/07/12 16:22:01 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -277,7 +277,7 @@ todo_delete (conf_t *conf)
_("This item has a note attached to it. "
"Delete (t)odo or just its (n)ote ?");
char *erase_choice = _("[t/n] ");
- bool go_for_todo_del = false;
+ unsigned go_for_todo_del = 0;
int answer, has_note;
if (conf->confirm_delete)
@@ -286,7 +286,7 @@ todo_delete (conf_t *conf)
answer = wgetch (win[STA].p);
if ((answer == 'y') && (todos > 0))
{
- go_for_todo_del = true;
+ go_for_todo_del = 1;
}
else
{
@@ -295,9 +295,9 @@ todo_delete (conf_t *conf)
}
}
else if (todos > 0)
- go_for_todo_del = true;
+ go_for_todo_del = 1;
- if (go_for_todo_del == false)
+ if (go_for_todo_del == 0)
{
wins_erase_status_bar ();
return;
@@ -483,7 +483,7 @@ todo_update_panel (int which_pan)
float ratio = ((float) max_items) / ((float) todos);
int sbar_length = (int) (ratio * (max_items + 1));
int highend = (int) (ratio * first);
- bool hilt_bar = (which_pan == TOD) ? true : false;
+ unsigned hilt_bar = (which_pan == TOD) ? 1 : 0;
int sbar_top = highend + title_lines;
if ((sbar_top + sbar_length) > win[TOD].h - 1)