[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 14/17: Fix clipped panel icon.

noreply at xfce.org noreply at xfce.org
Mon Nov 13 19:39:32 CET 2017


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   .   1   .   4   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 87de296c4466c0cc9fb94442c473c953fc51bf9a
Author: Graeme Gott <graeme at gottcode.org>
Date:   Fri Oct 20 09:19:55 2017 -0400

    Fix clipped panel icon.
---
 panel-plugin/plugin.cpp | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/panel-plugin/plugin.cpp b/panel-plugin/plugin.cpp
index 8a035d4..ba61828 100644
--- a/panel-plugin/plugin.cpp
+++ b/panel-plugin/plugin.cpp
@@ -472,18 +472,7 @@ gboolean Plugin::size_changed(XfcePanelPlugin*, gint size)
 	gint icon_size = xfce_panel_plugin_get_icon_size(m_plugin);
 #else
 	gint icon_size = size / xfce_panel_plugin_get_nrows(m_plugin);
-	if (icon_size <= 27)
-	{
-		icon_size = 16;
-	}
-	else if (icon_size < 34)
-	{
-		icon_size = 24;
-	}
-	else if (icon_size < 40)
-	{
-		icon_size = 32;
-	}
+	icon_size -= 8;
 #endif
 	gtk_image_set_pixel_size(m_button_icon, icon_size);
 

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


More information about the Xfce4-commits mailing list