pidgin/gtkutils.c

branch
string-comparison-r2
changeset 38256
035f00c4fd87
parent 38091
be8d0f7d0041
child 38257
1a294a6d2a57
equal deleted inserted replaced
38239:f76c1aa92c07 38256:035f00c4fd87
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
2475 return contents; 2475 return contents;
2476 } 2476 }
2477 2477
2478 g_free(contents); 2478 g_free(contents);
2479 2479
2480 if (!g_str_equal(prpl_formats[i], "jpeg")) { 2480 if (!purple_strequal(prpl_formats[i], "jpeg")) {
2481 /* File size was too big and we can't lower the quality, 2481 /* File size was too big and we can't lower the quality,
2482 so skip to the next image type. */ 2482 so skip to the next image type. */
2483 break; 2483 break;
2484 } 2484 }
2485 2485

mercurial