Moved beep/flash settings to preferences

This commit is contained in:
James Booth
2012-05-10 09:55:55 +01:00
parent 90c985c4d2
commit aa26278a46
8 changed files with 43 additions and 37 deletions

View File

@@ -24,8 +24,10 @@
#include <stdlib.h>
#include <ncurses.h>
#include "windows.h"
#include "util.h"
#include "preferences.h"
static WINDOW *status_bar;
static char *message = NULL;
@@ -35,9 +37,6 @@ static int is_new[9];
static int dirty;
static char curr_time[80];
// allow flash?
static int do_flash = FALSE;
static void _status_bar_update_time(void);
void create_status_bar(void)
@@ -161,17 +160,12 @@ void status_bar_new(const int win)
wattroff(status_bar, COLOR_PAIR(3));
wattroff(status_bar, A_BLINK);
if (do_flash == TRUE)
if (prefs_get_flash())
flash();
dirty = TRUE;
}
void status_bar_set_flash(int val)
{
do_flash = val;
}
void status_bar_get_password(void)
{
status_bar_print_message("Enter password:");