# HG changeset patch # User nadvornik # Date 1239478503 0 # Node ID 4df9f4712d1ad87bf8abceb8fe568805ae8e875d # Parent a310abd448943c67b5e78e6e8ec18e05f2ed374c fixed updating of filelist marks diff -r a310abd44894 -r 4df9f4712d1a src/view_file_list.c --- a/src/view_file_list.c Sat Apr 11 18:34:12 2009 +0000 +++ b/src/view_file_list.c Sat Apr 11 19:35:03 2009 +0000 @@ -1658,12 +1658,15 @@ { vf_refresh_idle(vf); } + else + { + /* mark functions can have various side effects - update all columns to be sure */ + vflist_setup_iter(vf, GTK_TREE_STORE(store), &iter, fd); + } file_data_register_notify_func(vf_notify_cb, vf, NOTIFY_PRIORITY_MEDIUM); - gtk_tree_store_set(GTK_TREE_STORE(store), &iter, FILE_COLUMN_MARKS + n, file_data_get_mark(fd, n), -1); - work = work->next; } g_list_foreach(slist, (GFunc)gtk_tree_path_free, NULL); @@ -1900,9 +1903,13 @@ { vf_refresh_idle(vf); } + else + { + /* mark functions can have various side effects - update all columns to be sure */ + vflist_setup_iter(vf, GTK_TREE_STORE(store), &iter, fd); + } file_data_register_notify_func(vf_notify_cb, vf, NOTIFY_PRIORITY_MEDIUM); - gtk_tree_store_set(store, &iter, col_idx, marked, -1); gtk_tree_path_free(path); }