From cd39e417e1f816e7c509f9c14e4a0b61fce81430 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 20 Jun 2021 15:39:41 +0100 Subject: [PATCH] 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 --- gtk/gtkfilechooserwidget.c | 1 - gtk/ui/gtkfilechooserwidget.ui | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index d03c796540..918206ac26 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -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) { diff --git a/gtk/ui/gtkfilechooserwidget.ui b/gtk/ui/gtkfilechooserwidget.ui index 876c67f332..9346afd767 100644 --- a/gtk/ui/gtkfilechooserwidget.ui +++ b/gtk/ui/gtkfilechooserwidget.ui @@ -17,6 +17,7 @@ 1 + 0