[Xfce4-commits] [xfce/thunar] 01/01: Fix of messed up row-height with disabled "automatically expand columns as needed" in detailed view. (Bug #14548)

noreply at xfce.org noreply at xfce.org
Sun Jul 22 23:39:45 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit f7304357489b23090af11a27d626414cb5d9dd11
Author: Alexander Schwinn <acs82 at gmx.de>
Date:   Sun Jul 22 23:31:32 2018 +0200

    Fix of messed up row-height with disabled "automatically expand columns
    as needed" in detailed view.
    (Bug #14548)
---
 thunar/thunar-details-view.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c
index e065bc8..6a47d68 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -904,12 +904,19 @@ thunar_details_view_zoom_level_changed (ThunarDetailsView *details_view)
 
   _thunar_return_if_fail (THUNAR_IS_DETAILS_VIEW (details_view));
 
+  /* Disable fixed height optimization during resize, since it can mess up the row height */
+  if (details_view->fixed_columns)
+    gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (gtk_bin_get_child (GTK_BIN (details_view))), FALSE);
+
   /* determine the list of tree view columns */
   for (column = 0; column < THUNAR_N_VISIBLE_COLUMNS; ++column)
     {
       /* just queue a resize on this column */
       gtk_tree_view_column_queue_resize (details_view->columns[column]);
     }
+
+  if (details_view->fixed_columns)
+    gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (gtk_bin_get_child (GTK_BIN (details_view))), TRUE);
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list