Updating branch refs/heads/master to 22b43d384096187242a1f3a329d04ecc8a92abc4 (commit) from 497f3353275a289471748f2412e2464d64198761 (commit)
commit 22b43d384096187242a1f3a329d04ecc8a92abc4 Author: Nick Schermer <n...@xfce.org> Date: Sat Sep 22 21:32:56 2012 +0200 Don't emit a file change if thumbnail state is identical. thunar/thunar-file.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index bac2ed1..c238d67 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -2823,9 +2823,13 @@ thunar_file_set_thumb_state (ThunarFile *file, { _thunar_return_if_fail (THUNAR_IS_FILE (file)); + /* check if the state changes */ + if (thunar_file_get_thumb_state (file) == state) + return; + /* set the new thumbnail state */ file->flags = (file->flags & ~THUNAR_FILE_THUMB_STATE_MASK) | (state); - + /* notify others of this change, so that all components can update * their file information */ thunar_file_monitor_file_changed (file); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits