diff src/view_file_list.c @ 1539:4df9f4712d1a

fixed updating of filelist marks
author nadvornik
date Sat, 11 Apr 2009 19:35:03 +0000
parents 24a12aa0cb54
children b8e2690c440a
line wrap: on
line diff
--- 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);
 }