# HG changeset patch # User Stu Tomlinson # Date 1174751855 0 # Node ID 80f999140126e0c554d4e942ecc14d82b2cf9877 # Parent 93bfbda79bf6481a5c34d50de1160ce6cff9aead Fix a compile warning so that statusbox_got_url() might actually work diff -r 93bfbda79bf6 -r 80f999140126 pidgin/gtkstatusbox.c --- 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;