From 3fe87f8a6fab3e3970cfe2aa9f5129b7bfcc2347 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 | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c index 2b402b9f..2f0d10d7 100644 --- a/thunar/thunar-details-view.c +++ b/thunar/thunar-details-view.c @@ -897,6 +897,24 @@ thunar_details_view_columns_changed (ThunarColumnModel *column_model, +static gboolean +thunar_details_view_call_set_fixed_columns (ThunarDetailsView *details_view) +{ + thunar_details_view_set_fixed_columns (details_view, TRUE); + return FALSE; +} + + + +static gboolean +thunar_details_view_call_reload (ThunarDetailsView *details_view) +{ + thunar_standard_view_reload (THUNAR_VIEW (details_view), TRUE); + return FALSE; +} + + + static void thunar_details_view_zoom_level_changed (ThunarDetailsView *details_view) { @@ -921,10 +939,10 @@ thunar_details_view_zoom_level_changed (ThunarDetailsView *details_view) if (fixed_columns_used) { - thunar_details_view_set_fixed_columns (details_view, TRUE); - + /* Call when idle to ensure that gtk_tree_view_column_queue_resize finished */ + gdk_threads_add_idle (thunar_details_view_call_set_fixed_columns, details_view); /* 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); + gdk_threads_add_idle (thunar_details_view_call_reload, details_view); } } -- 2.11.0