aboutsummaryrefslogtreecommitdiffstats
path: root/misc/xfce4-weather-plugin/files/patch-weather.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/xfce4-weather-plugin/files/patch-weather.c')
-rw-r--r--misc/xfce4-weather-plugin/files/patch-weather.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/misc/xfce4-weather-plugin/files/patch-weather.c b/misc/xfce4-weather-plugin/files/patch-weather.c
new file mode 100644
index 000000000000..430a5875df14
--- /dev/null
+++ b/misc/xfce4-weather-plugin/files/patch-weather.c
@@ -0,0 +1,25 @@
+*** panel-plugin/weather.c Sun Feb 29 22:10:53 2004
+--- weather.c Fri Apr 2 16:00:39 2004
+***************
+*** 375,380 ****
+--- 375,382 ----
+
+ void start_draw_up(xfceweather_data *data) {
+ gint width, height;
++ GdkRectangle update_rect = {0, 0, data->drawable_label->allocation.width,
++ data->drawable_label->allocation.height};
+
+ /* if only one pixmap don't start the callback */
+ if (!data->xmldata_pixmaps || data->xmldata_pixmaps->len == 0)
+***************
+*** 383,391 ****
+ if (data->xmldata_pixmaps->len == 1) {
+ data->drawable_pixmap = (GdkPixmap *)g_ptr_array_index(data->xmldata_pixmaps, 0);
+ data->drawable_offset = 0;
+-
+- GdkRectangle update_rect = {0, 0, data->drawable_label->allocation.width,
+- data->drawable_label->allocation.height};
+
+ gtk_widget_draw(data->drawable_label, &update_rect);
+ return;
+--- 385,390 ----