summaryrefslogtreecommitdiffstats
path: root/mixedgauge.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixedgauge.c')
-rw-r--r--mixedgauge.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mixedgauge.c b/mixedgauge.c
index d8b3556..739165d 100644
--- a/mixedgauge.c
+++ b/mixedgauge.c
@@ -1,9 +1,9 @@
/*
- * $Id: mixedgauge.c,v 1.18 2010/01/15 23:43:53 tom Exp $
+ * $Id: mixedgauge.c,v 1.23 2011/01/19 00:27:53 tom Exp $
*
* mixedgauge.c -- implements the mixedgauge dialog
*
- * Copyright 2007,2010 Thomas E. Dickey
+ * Copyright 2007-2010,2011 Thomas E. Dickey
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License, version 2.1
@@ -89,7 +89,7 @@ status_string(char *given, char **freeMe)
break;
}
} else if (*given == '-') {
- unsigned need = strlen(++given);
+ size_t need = strlen(++given);
char *temp = dlg_malloc(char, need);
*freeMe = temp;
sprintf(temp, "%3s%%", given);
@@ -190,8 +190,8 @@ mydraw_mixed_box(WINDOW *win, int y, int x, int height, int width,
dlg_draw_box(win, y, x, height, width, boxchar, borderchar);
{
chtype attr = A_NORMAL;
- char *message = _("Overall Progress");
- chtype save2 = getattrs(win);
+ const char *message = _("Overall Progress");
+ chtype save2 = dlg_get_attrs(win);
wattrset(win, title_attr);
(void) wmove(win, y, x + 2);
dlg_print_text(win, message, width, &attr);
@@ -223,7 +223,7 @@ dlg_update_mixedgauge(DIALOG_MIXEDGAUGE * dlg, int percent)
* attribute.
*/
(void) wmove(dlg->dialog, dlg->height - 3, 4);
- wattrset(dlg->dialog, title_attr);
+ wattrset(dlg->dialog, gauge_attr);
for (i = 0; i < (dlg->width - 2 * (3 + MARGIN)); i++)
(void) waddch(dlg->dialog, ' ');
OpenPOWER on IntegriCloud