File xfce4-panel-plugin-weather-fix-panel-icon-size.patch of Package xfce4-panel-plugin-weather

From d1f9e9ab06231f876a1d6b607660d36d8a0fb902 Mon Sep 17 00:00:00 2001
From: Harald Judt <h.judt@gmx.at>
Date: Mon, 25 Feb 2013 22:52:08 +0100
Subject: 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.

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);
-- 
cgit v0.10.1

openSUSE Build Service is sponsored by