[Goodies-commits] r2176 - xfce4-weather-plugin/trunk/panel-plugin
Nick Schermer
nick at xfce.org
Sat Nov 25 12:08:22 CET 2006
Author: nick
Date: 2006-11-25 11:08:12 +0000 (Sat, 25 Nov 2006)
New Revision: 2176
Modified:
xfce4-weather-plugin/trunk/panel-plugin/http_client.c
xfce4-weather-plugin/trunk/panel-plugin/plugin.h
Log:
Tiny alignment fix and added libxfce4util header to the plugin.h file
Modified: xfce4-weather-plugin/trunk/panel-plugin/http_client.c
===================================================================
--- xfce4-weather-plugin/trunk/panel-plugin/http_client.c 2006-11-24 22:32:36 UTC (rev 2175)
+++ xfce4-weather-plugin/trunk/panel-plugin/http_client.c 2006-11-25 11:08:12 UTC (rev 2176)
@@ -109,24 +109,23 @@
static void
request_save (struct request_data *request,
- const gchar *buffer)
+ const gchar *buffer)
{
DBG ("Request Save");
if (request->save_filename)
+ {
if (!request->save_fp &&
- (request->save_fp = fopen(request->save_filename, "w"))
- == NULL)
- return;
+ (request->save_fp = fopen(request->save_filename, "w")) == NULL)
+ return;
else
- fwrite(buffer, sizeof(char), strlen(buffer),
- request->save_fp);
+ if (fwrite (buffer, sizeof(gchar), strlen(buffer), request->save_fp) == 0);
+ }
else
{
if (*request->save_buffer)
{
- gchar *newbuff = g_strconcat(*request->save_buffer,
- buffer, NULL);
+ gchar *newbuff = g_strconcat(*request->save_buffer, buffer, NULL);
g_free(*request->save_buffer);
*request->save_buffer = newbuff;
}
Modified: xfce4-weather-plugin/trunk/panel-plugin/plugin.h
===================================================================
--- xfce4-weather-plugin/trunk/panel-plugin/plugin.h 2006-11-24 22:32:36 UTC (rev 2175)
+++ xfce4-weather-plugin/trunk/panel-plugin/plugin.h 2006-11-25 11:08:12 UTC (rev 2176)
@@ -19,6 +19,7 @@
#define PLUGIN_H
#include <libxfce4panel/xfce-panel-plugin.h>
+#include <libxfce4util/libxfce4util.h>
G_BEGIN_DECLS
More information about the Goodies-commits
mailing list