[Xfce4-commits] [xfce/exo] 01/01: Revert padding patches that add too much padding in the Thunar compact view (bug 16196)

noreply at xfce.org noreply at xfce.org
Tue Nov 26 11:48:58 CET 2019


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

b   l   u   e   s   a   b   r   e       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/exo.

commit a925f0b2af7249fd5119cdc27cb6a306b42e795e
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Tue Nov 26 05:47:41 2019 -0500

    Revert padding patches that add too much padding in the Thunar compact view (bug 16196)
    
    This reverts commit 6fcefce9f1e7bb34cb65290c37f889481a677130.
---
 exo/exo-icon-view.c | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c
index 667973b..607c80a 100644
--- a/exo/exo-icon-view.c
+++ b/exo/exo-icon-view.c
@@ -3915,25 +3915,8 @@ exo_icon_view_calculate_item_size (ExoIconView     *icon_view,
         gtk_cell_renderer_get_preferred_size (info->cell, GTK_WIDGET (icon_view),
                                               &req, NULL);
 
-        if (info->is_text)
-          {
-            GdkRectangle cell_area, aligned_area;
-            gint cell_xpad, cell_ypad;
-
-            cell_area.width = req.width;
-            cell_area.height = req.height;
-            gtk_cell_renderer_get_aligned_area (info->cell, GTK_WIDGET (icon_view),
-                                                0, &cell_area, &aligned_area);
-            gtk_cell_renderer_get_padding (info->cell, &cell_xpad, &cell_ypad);
-
-            item->box[info->position].width = aligned_area.width + 2*cell_xpad;
-            item->box[info->position].height = aligned_area.height + 2*cell_ypad;
-          }
-        else
-          {
-            item->box[info->position].width = req.width;
-            item->box[info->position].height = req.height;
-          }
+        item->box[info->position].width = req.width;
+        item->box[info->position].height = req.height;
       }
 #else
       gtk_cell_renderer_get_size (info->cell, GTK_WIDGET (icon_view),

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


More information about the Xfce4-commits mailing list