opening files using mimetypes defined in config.h
This commit is contained in:
8
window.c
8
window.c
@ -14,6 +14,8 @@ extern file *lft_content;
|
||||
extern file *rgt_content;
|
||||
extern char *top_content;
|
||||
extern char *rgt_buffer;
|
||||
extern char *btm_buffer;
|
||||
|
||||
|
||||
extern unsigned long lft_file_count;
|
||||
extern unsigned long mid_file_count;
|
||||
@ -44,9 +46,15 @@ void window_top(WINDOW *win){
|
||||
}
|
||||
void window_btm(WINDOW *win){
|
||||
werase(win);
|
||||
unsigned long local_width;
|
||||
unsigned long local_height;
|
||||
getmaxyx(win, local_height, local_width);
|
||||
if (pthread_mutex_trylock(&mutex_btm)) {
|
||||
mvwprintw(win, local_height/2, local_width/2, "LOADING");
|
||||
status |= STATUS_UPDATE_SCREEN_0;
|
||||
pthread_mutex_unlock(&mutex_rgt);
|
||||
} else {
|
||||
mvwprintw(win, 0, 0, "%s", btm_buffer);
|
||||
pthread_mutex_unlock(&mutex_btm);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user