[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 02/05: Fix narrow iconview columns.

noreply at xfce.org noreply at xfce.org
Wed Feb 12 20:28:45 CET 2020


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

g   o   t   t   c   o   d   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       a   n   n   o   t   a   t   e   d       t   a   g       v   2   .   4   .   1   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit d2712afed5dcb32a1dea34c2f467ae4b69e1fb0c
Author: Graeme Gott <graeme at gottcode.org>
Date:   Wed Feb 12 04:31:42 2020 -0500

    Fix narrow iconview columns.
---
 panel-plugin/icon-renderer.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/panel-plugin/icon-renderer.cpp b/panel-plugin/icon-renderer.cpp
index 5fb790c..ca0fe46 100644
--- a/panel-plugin/icon-renderer.cpp
+++ b/panel-plugin/icon-renderer.cpp
@@ -58,6 +58,10 @@ static void whiskermenu_icon_renderer_get_preferred_width(GtkCellRenderer* rende
 	if (icon_renderer->stretch)
 	{
 		width += 76 - (icon_renderer->size / 2);
+		if (natural)
+		{
+			*natural = (width * 2) - 1;
+		}
 	}
 	else if (natural)
 	{

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


More information about the Xfce4-commits mailing list