Merge branch 'ebassi/filechooser-no-trash' into 'master'

Never show the Trash in the FileChooserWidget side bar

Closes #674

See merge request GNOME/gtk!3692
This commit is contained in:
Matthias Clasen
2021-06-24 14:59:43 +00:00
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>