[gtk/ebassi/filechooser-no-trash: 1/2] Revert "Never show the Trash in the FileChooserWidget side bar"




commit 333a92bcffcb315c3c8772da75ab49bccaf86f55
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Jun 20 15:41:43 2021 +0100

    Revert "Never show the Trash in the FileChooserWidget side bar"
    
    This reverts commit cd39e417e1f816e7c509f9c14e4a0b61fce81430.

 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 918206ac26..d03c796540 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2834,6 +2834,7 @@ 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 9346afd767..876c67f332 100644
--- a/gtk/ui/gtkfilechooserwidget.ui
+++ b/gtk/ui/gtkfilechooserwidget.ui
@@ -17,7 +17,6 @@
                 <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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]