[gtk+/filesystemmodel] show the size column unconditionally
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/filesystemmodel] show the size column unconditionally
- Date: Thu, 25 Jun 2009 13:52:03 +0000 (UTC)
commit d0082d2c996c1a36f1ad9b0a20978fc8bbc65629
Author: Benjamin Otte <otte gnome org>
Date: Thu Jun 25 13:18:04 2009 +0200
show the size column unconditionally
Previously size could not be queried for search and recent files. This
is now done, so there's no need to hide it anymore.
gtk/gtkfilechooserdefault.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 9bb74a8..5c10df1 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -3956,9 +3956,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 */
@@ -5869,8 +5868,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;
@@ -9567,9 +9565,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]