[Xfce4-commits] <xfce4-weather-plugin:master> Fix panel icon size.

Harald Judt noreply at xfce.org
Mon Feb 25 23:36:01 CET 2013


Updating branch refs/heads/master
         to d1f9e9ab06231f876a1d6b607660d36d8a0fb902 (commit)
       from 84df5ec41c74a7d7a787f66d0fba37535046367a (commit)

commit d1f9e9ab06231f876a1d6b607660d36d8a0fb902
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Feb 25 22:52:08 2013 +0100

    Fix panel icon size.
    
    Since the toggle button has been added, or maybe even before that,
    the icon is cut off at the borders. Fix this by subtracting two pixels
    from the icon size.

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

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 4a2e3c3..2e15565 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -295,6 +295,8 @@ update_icon(plugin_data *data)
         data->size != data->panel_size)
         size *= 2;
 #endif
+    /* take into account the border of the toggle button */
+    size -= 2;
 
     /* set panel icon according to current weather conditions */
     conditions = get_current_conditions(data->weatherdata);


More information about the Xfce4-commits mailing list