| 2431 const char *value = NULL; |
2431 const char *value = NULL; |
| 2432 gchar tmp_buf[4]; |
2432 gchar tmp_buf[4]; |
| 2433 |
2433 |
| 2434 purple_debug_info("buddyicon", "Converting buddy icon to %s\n", prpl_formats[i]); |
2434 purple_debug_info("buddyicon", "Converting buddy icon to %s\n", prpl_formats[i]); |
| 2435 |
2435 |
| 2436 if (g_str_equal(prpl_formats[i], "png")) { |
2436 if (purple_strequal(prpl_formats[i], "png")) { |
| 2437 key = "compression"; |
2437 key = "compression"; |
| 2438 value = "9"; |
2438 value = "9"; |
| 2439 } else if (g_str_equal(prpl_formats[i], "jpeg")) { |
2439 } else if (purple_strequal(prpl_formats[i], "jpeg")) { |
| 2440 sprintf(tmp_buf, "%u", quality); |
2440 sprintf(tmp_buf, "%u", quality); |
| 2441 key = "quality"; |
2441 key = "quality"; |
| 2442 value = tmp_buf; |
2442 value = tmp_buf; |
| 2443 } |
2443 } |
| 2444 |
2444 |