From 0e083d078df68eb36b864ce27ff4b9b97fe420de Mon Sep 17 00:00:00 2001 From: Alexander Schwinn Date: Mon, 30 Jul 2018 22:06:20 +0200 Subject: [PATCH] Fix of messed up row-height with disabled "automatically expand columns as needed" in detailed view. (Part III) (Bug #14548) --- thunar/thunar-details-view.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c index 2b402b9f..96cc40e0 100644 --- a/thunar/thunar-details-view.c +++ b/thunar/thunar-details-view.c @@ -897,6 +897,15 @@ thunar_details_view_columns_changed (ThunarColumnModel *column_model, +static gboolean +thunar_details_view_zoom_level_changed_reload_fixed_columns (ThunarDetailsView *details_view) +{ + thunar_details_view_set_fixed_columns (details_view, TRUE); + return FALSE; +} + + + static void thunar_details_view_zoom_level_changed (ThunarDetailsView *details_view) { @@ -921,10 +930,8 @@ thunar_details_view_zoom_level_changed (ThunarDetailsView *details_view) if (fixed_columns_used) { - thunar_details_view_set_fixed_columns (details_view, TRUE); - - /* For unknown reason a reload is required to display the correct row-height (otherwise some rows will keep the old height )*/ - thunar_standard_view_reload (THUNAR_VIEW (details_view), TRUE); + /* Call when idle to ensure that gtk_tree_view_column_queue_resize got finished */ + gdk_threads_add_idle (thunar_details_view_zoom_level_changed_reload_fixed_columns, details_view); } } -- 2.11.0