[nautilus] Initialize the list view zoom level to the default size
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Initialize the list view zoom level to the default size
- Date: Sun, 26 Aug 2012 13:05:15 +0000 (UTC)
commit 8e27c116dad714aeb5afa06f9639eaa04dac5a29
Author: William Jon McCann <jmccann redhat com>
Date: Sat Aug 25 10:02:32 2012 -0400
Initialize the list view zoom level to the default size
https://bugzilla.gnome.org/show_bug.cgi?id=682674
src/nautilus-list-view.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 4b6af75..e763929 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1500,7 +1500,7 @@ create_and_set_up_tree_view (NautilusListView *view)
gtk_tree_view_column_pack_start (view->details->file_name_column, cell, FALSE);
gtk_tree_view_column_set_attributes (view->details->file_name_column,
cell,
- "pixbuf", NAUTILUS_LIST_MODEL_SMALLEST_ICON_COLUMN,
+ "pixbuf", nautilus_list_model_get_column_id_from_zoom_level (view->details->zoom_level),
NULL);
cell = gtk_cell_renderer_text_new ();
@@ -3031,6 +3031,9 @@ nautilus_list_view_init (NautilusListView *list_view)
{
list_view->details = g_new0 (NautilusListViewDetails, 1);
+ /* ensure that the zoom level is always set before settings up the tree view columns */
+ list_view->details->zoom_level = get_default_zoom_level ();
+
create_and_set_up_tree_view (list_view);
g_signal_connect_swapped (nautilus_preferences,
@@ -3054,9 +3057,6 @@ nautilus_list_view_init (NautilusListView *list_view)
nautilus_list_view_sort_directories_first_changed (NAUTILUS_VIEW (list_view));
- /* ensure that the zoom level is always set in begin_loading */
- list_view->details->zoom_level = NAUTILUS_ZOOM_LEVEL_SMALLEST - 1;
-
list_view->details->hover_path = NULL;
list_view->details->clipboard_handler_id =
g_signal_connect (nautilus_clipboard_monitor_get (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]