Skip to content

Commit

Permalink
fixed updating of filelist marks
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Apr 11, 2009
1 parent cceb6ee commit 66ad4ae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/view_file_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,12 +1658,15 @@ void vflist_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode)
{
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);
Expand Down Expand Up @@ -1900,9 +1903,13 @@ static void vflist_listview_mark_toggled_cb(GtkCellRendererToggle *cell, gchar *
{
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);
}

Expand Down

0 comments on commit 66ad4ae

Please sign in to comment.