Since 1.6.8 trash is not working right. The icon shows empty trash when deleting items. Also the option "empty trash" is not active. Restarting thunar updates the trash icon and makes the option active. Same happens when emptying the trash.
I'm seeing the same. Thunar 1.6.8 and gvfs 1.24.1. "gvfs-trash --empty" will empty the trash with no change in status from Thunar. It's inconsistent though - can't seem to locate what triggers the mismatch.
Created attachment 6243 Do-listen-for-G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED.patch I can reproduce this with gvfs-trash <file> and gvfs-trash --empty. It is caused by http://git.xfce.org/xfce/thunar/commit/?id=a0b81ac84dcfd23f1d310d276e46df13e826fac9. Thunar needs to listen to G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED; the assumption that this is taken care of in G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT was obviously wrong. The attached patch fixes this for me.
Pushed to master: http://git.xfce.org/xfce/thunar/commit/?id=a0b81ac84dcfd23f1d310d276e46df13e826fac9 Reopen if this does not fix the issue.