[Xfce4-commits] [xfce/xfce4-panel] 01/01: Minimal plugin icon sizing tweak

noreply at xfce.org noreply at xfce.org
Thu Apr 20 23:32:10 CEST 2017


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

ochosi pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 4504c950421ed57bf2e94391c2e23b9f628bf3e7
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Apr 20 23:31:40 2017 +0200

    Minimal plugin icon sizing tweak
    
    With the previous behavior e.g. the applicationsmenu
    icon was cut by 1px on each side. Bumping the 26 to
    27 is enough to not have it cut anymore.
---
 libxfce4panel/xfce-panel-plugin.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index 5bbbd3b..a92ec0e 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -1971,11 +1971,8 @@ xfce_panel_plugin_get_icon_size (XfcePanelPlugin *plugin)
 
   /* Since symbolic icons are usually only provided in 16px we
    * try to be clever and use size steps */
-  if (width < 26)
+  if (width <= 27)
     return 16;
-  /* else if (width < 26)
-   *   return 22;
-   */
   else if (width < 34)
     return 24;
   else if (width < 40)

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


More information about the Xfce4-commits mailing list