Never show the Trash in the FileChooserWidget side bar

The Trash is a special location: files cannot be copied or moved, there,
and the file selection dialog is not able to restore files from the
Trash.

Fixes: #674
This commit is contained in:
Emmanuele Bassi 2021-06-20 15:39:41 +01:00
parent 9169315cc1
commit cd39e417e1
2 changed files with 1 additions and 1 deletions

View File

@ -2834,7 +2834,6 @@ update_appearance (GtkFileChooserWidget *impl)
{
save_widgets_create (impl);
gtk_places_sidebar_set_show_recent (GTK_PLACES_SIDEBAR (impl->places_sidebar), FALSE);
gtk_places_sidebar_set_show_trash (GTK_PLACES_SIDEBAR (impl->places_sidebar), FALSE);
if (impl->select_multiple)
{

View File

@ -17,6 +17,7 @@
<child>
<object class="GtkPlacesSidebar" id="places_sidebar">
<property name="show-other-locations">1</property>
<property name="show-trash">0</property>
<style>
<class name="sidebar"/>
</style>