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

noreply at xfce.org noreply at xfce.org
Sat Oct 21 01:35:45 CEST 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       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 1f0a80b04242901ccaae48f99c03be233270678d
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