Skip to content
Snippets Groups Projects
Commit 93817ae8 authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

Make emptying the trash work again.

With GIO, the size of the trash:/// directory no longer corresponds to
whether the trash is empty or not. Instead, we have to use the
G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT attribute. This commit adds a new
method thunar_file_get_item_count() which is used the shortcuts pane and
the tree view to make the empty trash action sensitive or insensitive.

Also remove a few redundant g_file_info_has_attribute() checks.
parent dd385ea8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment