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

noreply at xfce.org noreply at xfce.org
Wed Feb 12 13:07:49 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       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 020c82baa7c6b246f2f3ba30e5ddeedf5d528787
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