forked from AuroraMiddleware/gtk
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:
parent
9169315cc1
commit
cd39e417e1
@ -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)
|
||||
{
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user