diff -r 0611c060a02c -r d12f1daf83ff pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Mon Apr 05 20:41:42 2021 -0500 +++ b/pidgin/gtkstatusbox.c Thu Apr 08 22:30:53 2021 -0500 @@ -368,53 +368,6 @@ gtk_drag_finish(dc, FALSE, FALSE, t); } -static void -statusbox_got_url(PurpleUtilFetchUrlData *url_data, gpointer user_data, - const gchar *themedata, size_t len, const gchar *error_message) -{ - FILE *f; - gchar *path; - size_t wc; - - if ((error_message != NULL) || (len == 0)) - return; - - f = purple_mkstemp(&path, TRUE); - wc = fwrite(themedata, len, 1, f); - if (wc != 1) { - purple_debug_warning("theme_got_url", "Unable to write theme data.\n"); - fclose(f); - g_unlink(path); - g_free(path); - return; - } - fclose(f); - - icon_choose_cb(path, user_data); - - g_unlink(path); - g_free(path); -} - - -static gboolean -statusbox_uri_handler(const char *proto, const char *cmd, GHashTable *params, void *data) -{ - const char *src; - - if (g_ascii_strcasecmp(proto, "aim")) - return FALSE; - - if (g_ascii_strcasecmp(cmd, "buddyicon")) - return FALSE; - - src = g_hash_table_lookup(params, "account"); - if (src == NULL) - return FALSE; - - purple_util_fetch_url(src, TRUE, NULL, FALSE, statusbox_got_url, data); - return TRUE; -} static gboolean icon_box_enter_cb(GtkWidget *widget, GdkEventCrossing *event, PidginStatusBox *box) @@ -1919,9 +1872,6 @@ spellcheck_prefs_cb, status_box); purple_prefs_connect_callback(status_box, PIDGIN_PREFS_ROOT "/accounts/buddyicon", update_buddyicon_cb, status_box); - purple_signal_connect(purple_get_core(), "uri-handler", status_box, - PURPLE_CALLBACK(statusbox_uri_handler), status_box); - } static void