[nautilus] files-view: don't show empty state for desktop



commit 8d3c60e2bd7d142dbef2fa356806edbc9d8ca18a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Aug 20 23:43:52 2015 -0300

    files-view: don't show empty state for desktop
    
    Nautilus shows a visual feedback for when the current folder is
    empty. This, however, is undesired for the desktop, since we don't
    want to clutter the desktop area.
    
    Fix that by not displaying the empty state for desktop view only.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753752

 src/nautilus-files-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 6bdd105..9c77e65 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -339,7 +339,7 @@ check_empty_states (NautilusFilesView *view)
 
         gtk_widget_hide (view->details->no_search_results_widget);
         gtk_widget_hide (view->details->folder_is_empty_widget);
-        if (!view->details->loading && view->details->model) {
+        if (!view->details->loading && view->details->model && !NAUTILUS_IS_DESKTOP_CANVAS_VIEW (view)) {
                 files = nautilus_directory_get_file_list (view->details->model);
                 show_hidden_files = g_settings_get_boolean (gtk_filechooser_preferences,
                                                             NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES);


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