diff pidgin/gtkstatusbox.c @ 15880:80f999140126

Fix a compile warning so that statusbox_got_url() might actually work
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 24 Mar 2007 15:57:35 +0000
parents 66dff3dfdea6
children d04878ce947b
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Sat Mar 24 06:27:57 2007 +0000
+++ b/pidgin/gtkstatusbox.c	Sat Mar 24 15:57:35 2007 +0000
@@ -298,23 +298,22 @@
 
 static void
 statusbox_got_url(PurpleUtilFetchUrlData *url_data, gpointer user_data,
-                const gchar *themedata, size_t len, const gchar *error_message, 
-		PidginStatusBox *status_box)
+                const gchar *themedata, size_t len, const gchar *error_message)
 {
-        FILE *f;
-        gchar *path;
+	FILE *f;
+	gchar *path;
 
-        if ((error_message != NULL) || (len == 0))
-                return;
+	if ((error_message != NULL) || (len == 0))
+		return;
 
-        f = purple_mkstemp(&path, TRUE);
-        fwrite(themedata, len, 1, f);
-        fclose(f);
+	f = purple_mkstemp(&path, TRUE);
+	fwrite(themedata, len, 1, f);
+	fclose(f);
 
-	icon_choose_cb(path, status_box);
+	icon_choose_cb(path, user_data);
 
-        g_unlink(path);
-        g_free(path);
+	g_unlink(path);
+	g_free(path);
 }
 
 
@@ -322,7 +321,7 @@
 statusbox_uri_handler(const char *proto, const char *cmd, GHashTable *params, void *data)
 {
 	const char *src;
-printf("%s %s\n", proto, cmd);
+
 	if (g_ascii_strcasecmp(proto, "aim"))
 		return FALSE;