From 682a3c8c75e9b327fa7013be6afd251dc2dbdbc7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 25 Jun 2009 13:18:04 +0200 Subject: [PATCH] Enable the size column in recent files/search Previously information about file sizes was not available for search results and recent files, so the column was always hidden. As this information is now available, we can stop the special handling and use the same setting as in browse mode. --- gtk/gtkfilechooserdefault.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index e5f36b7f8b..778a15d337 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -4004,9 +4004,8 @@ show_size_column_toggled_cb (GtkCheckMenuItem *item, { impl->show_size_column = gtk_check_menu_item_get_active (item); - if (impl->list_size_column) - gtk_tree_view_column_set_visible (impl->list_size_column, - impl->show_size_column); + gtk_tree_view_column_set_visible (impl->list_size_column, + impl->show_size_column); } /* Shows an error dialog about not being able to select a dragged file */ @@ -5959,8 +5958,7 @@ settings_load (GtkFileChooserDefault *impl) gtk_expander_set_expanded (GTK_EXPANDER (impl->save_expander), expand_folders); impl->show_size_column = show_size_column; - if (impl->list_size_column) - gtk_tree_view_column_set_visible (impl->list_size_column, show_size_column); + gtk_tree_view_column_set_visible (impl->list_size_column, show_size_column); impl->sort_column = sort_column; impl->sort_order = sort_order; @@ -9631,9 +9629,6 @@ recent_activate (GtkFileChooserDefault *impl) recent_hide_entry (impl); - /* hide the file size column if it's visible */ - gtk_tree_view_column_set_visible (impl->list_size_column, FALSE); - file_list_set_sort_column_ids (impl); recent_start_loading (impl); }