mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 18:30:15 -04:00
addded select_all
This commit is contained in:
@@ -194,6 +194,16 @@ void toggle_selection(){
|
||||
pthread_mutex_unlock(&mutex_mid);
|
||||
pthread_mutex_unlock(&mutex_selection);
|
||||
}
|
||||
void select_all(){
|
||||
pthread_mutex_lock(&mutex_selection);
|
||||
pthread_mutex_lock(&mutex_mid);
|
||||
unsigned long i;
|
||||
for(i = 0; i < mid_file_count; i++) {
|
||||
mid_content[i].status ^= FILE_STATUS_SELECTED;
|
||||
}
|
||||
pthread_mutex_unlock(&mutex_mid);
|
||||
pthread_mutex_unlock(&mutex_selection);
|
||||
}
|
||||
void move_down(int passes){
|
||||
pthread_mutex_lock(&mutex_selection);
|
||||
if (passes == 0) {
|
||||
|
Reference in New Issue
Block a user