| 426 gtk_list_store_set(smiley_theme_store, &iter, |
423 gtk_list_store_set(smiley_theme_store, &iter, |
| 427 0, pixbuf, |
424 0, pixbuf, |
| 428 1, description, |
425 1, description, |
| 429 2, theme->path, |
426 2, theme->path, |
| 430 -1); |
427 -1); |
| 431 g_object_unref(G_OBJECT(pixbuf)); |
428 |
| |
429 if (pixbuf != NULL) |
| |
430 g_object_unref(G_OBJECT(pixbuf)); |
| |
431 |
| 432 g_free(description); |
432 g_free(description); |
| 433 themes = themes->next; |
433 themes = themes->next; |
| 434 if (current_smiley_theme && !strcmp(theme->path, current_smiley_theme->path)) { |
434 if (current_smiley_theme && !strcmp(theme->path, current_smiley_theme->path)) { |
| 435 /* path = gtk_tree_path_new_from_indices(ind); */ |
435 /* path = gtk_tree_path_new_from_indices(ind); */ |
| 436 char *iwishihadgtk2_2 = g_strdup_printf("%d", ind); |
436 char *iwishihadgtk2_2 = g_strdup_printf("%d", ind); |
| 487 g_free(destdir); |
487 g_free(destdir); |
| 488 |
488 |
| 489 theme_refresh_theme_list(); |
489 theme_refresh_theme_list(); |
| 490 } |
490 } |
| 491 |
491 |
| 492 static void theme_got_url(gpointer data, char *themedata, unsigned long len) { |
492 static void |
| |
493 theme_got_url(void *data, const char *themedata, size_t len) |
| |
494 { |
| 493 FILE *f; |
495 FILE *f; |
| 494 gchar *path; |
496 gchar *path; |
| 495 |
497 |
| 496 f = gaim_mkstemp(&path); |
498 f = gaim_mkstemp(&path); |
| 497 fwrite(themedata, len, 1, f); |
499 fwrite(themedata, len, 1, f); |
| 532 if ((tail = strrchr(name, '.')) == NULL) |
534 if ((tail = strrchr(name, '.')) == NULL) |
| 533 return; |
535 return; |
| 534 |
536 |
| 535 /* We'll check this just to make sure. This also lets us do something different on |
537 /* We'll check this just to make sure. This also lets us do something different on |
| 536 * other platforms, if need be */ |
538 * other platforms, if need be */ |
| 537 grab_url(name, TRUE, theme_got_url, ".tgz", NULL, 0); |
539 gaim_url_fetch(name, TRUE, NULL, FALSE, theme_got_url, ".tgz"); |
| 538 } |
540 } |
| 539 |
541 |
| 540 gtk_drag_finish(dc, TRUE, FALSE, t); |
542 gtk_drag_finish(dc, TRUE, FALSE, t); |
| 541 } |
543 } |
| 542 |
544 |