[Xfce4-commits] <xfce4-battery-plugin:master> Fixing incorrect icon size in the previous commits.

Landry Breuil noreply at xfce.org
Sat Apr 14 15:48:03 CEST 2012


Updating branch refs/heads/master
         to 1a45c5301f018ac89cdfb8479c3d29fd0e1412b4 (commit)
       from fb5ae31d9efa8a8af673da466851d17642b6a93b (commit)

commit 1a45c5301f018ac89cdfb8479c3d29fd0e1412b4
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Fri Jan 27 02:08:03 2012 +0900

    Fixing incorrect icon size in the previous commits.
    
    Signed-off-by: Landry Breuil <landry at xfce.org>

 panel-plugin/battery.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index 09d6812..36d0042 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -629,7 +629,8 @@ battmon_icon (t_battmon *battmon)
 
 #if defined (LIBXFCE4PANEL_CHECK_VERSION) && LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
     size = xfce_panel_plugin_get_size (battmon->plugin);
-    size /= xfce_panel_plugin_get_nrows (battmon->plugin) - 6;
+    size /= xfce_panel_plugin_get_nrows (battmon->plugin);
+    size -= 6;
 #else
     size = xfce_panel_plugin_get_size (battmon->plugin) - 6;
 #endif


More information about the Xfce4-commits mailing list