[nautilus] list-view: remove fts unused code



commit f33fed5dd3e92ebef752f9d41583d383735dbe68
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date:   Thu Feb 15 19:42:51 2018 +0200

    list-view: remove fts unused code
    
    As the directory is always NULL at this point, this code has no effect.
    
    This code was relevant when the snippet was displayed under the
    filename, so it should be removed entirely and not moved elsewhere.
    
    Closes https://gitlab.gnome.org/GNOME/nautilus/issues/81

 src/nautilus-list-view.c | 20 --------------------
 1 file changed, 20 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 0100a3b0e..924d428af 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1978,9 +1978,6 @@ create_and_set_up_tree_view (NautilusListView *view)
     GList *l;
     gchar **default_column_order, **default_visible_columns;
     GtkWidget *content_widget;
-    NautilusDirectory *directory = NULL;
-    NautilusQuery *query = NULL;
-    NautilusQuerySearchContent content;
     GtkGesture *longpress_gesture;
 
     content_widget = nautilus_files_view_get_content_widget (NAUTILUS_FILES_VIEW (view));
@@ -2150,23 +2147,6 @@ create_and_set_up_tree_view (NautilusListView *view)
                           "xpad", 5,
                           NULL);
 
-            directory = nautilus_files_view_get_model (NAUTILUS_FILES_VIEW (view));
-            if (NAUTILUS_IS_SEARCH_DIRECTORY (directory))
-            {
-                query = nautilus_search_directory_get_query (NAUTILUS_SEARCH_DIRECTORY (directory));
-            }
-
-            if (query)
-            {
-                content = nautilus_query_get_search_content (query);
-            }
-
-            if (query && content == NAUTILUS_QUERY_SEARCH_CONTENT_FULL_TEXT)
-            {
-                gtk_cell_renderer_text_set_fixed_height_from_font (GTK_CELL_RENDERER_TEXT (cell), 2);
-                g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_MIDDLE, NULL);
-            }
-
             gtk_tree_view_column_pack_start (view->details->file_name_column, cell, TRUE);
             gtk_tree_view_column_set_cell_data_func (view->details->file_name_column, cell,
                                                      (GtkTreeCellDataFunc) filename_cell_data_func,


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