Mercurial > pidgin.yaz
comparison libpurple/protocols/qq/buddy_info.c @ 24643:370fd1834371
merge of '9a15955bb377eff51316851e03db1cd7a5f9ba7f'
and 'e75b094fb3636667360c46a4eb03b6974912d0ac'
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Thu, 11 Dec 2008 08:41:04 +0000 |
parents | d8452c0bec7b 8f757b2139d2 |
children | 0d7c21b5f1d7 65cfc59858cf 1260a3fb60f4 |
comparison
equal
deleted
inserted
replaced
24642:e4b1ba7c351c | 24643:370fd1834371 |
---|---|
502 | 502 |
503 void qq_set_custom_icon(PurpleConnection *gc, PurpleStoredImage *img) | 503 void qq_set_custom_icon(PurpleConnection *gc, PurpleStoredImage *img) |
504 { | 504 { |
505 PurpleAccount *account = purple_connection_get_account(gc); | 505 PurpleAccount *account = purple_connection_get_account(gc); |
506 const gchar *icon_path = purple_account_get_buddy_icon_path(account); | 506 const gchar *icon_path = purple_account_get_buddy_icon_path(account); |
507 gchar **segments; | |
508 gint index; | |
509 | 507 |
510 g_return_if_fail(icon_path != NULL); | 508 g_return_if_fail(icon_path != NULL); |
511 | 509 |
512 /* Fixme: | 510 /* Fixme: |
513 * icon_path is always null | 511 * icon_path is always null |
514 * purple_imgstore_get_filename is always new file | 512 * purple_imgstore_get_filename is always new file |
515 * QQ buddy may set custom icon if level is over 16 */ | 513 * QQ buddy may set custom icon if level is over 16 */ |
516 purple_debug_info("QQ", "Change my icon to %s\n", icon_path); | 514 purple_debug_info("QQ", "Change my icon to %s\n", icon_path); |
517 segments = g_strsplit_set(icon_path, G_DIR_SEPARATOR_S, 0); | |
518 for (index = 0; segments[index] != NULL; index++) { | |
519 purple_debug_info("QQ", "Split to %s\n", segments[index]); | |
520 } | |
521 | |
522 g_strfreev(segments); | |
523 } | 515 } |
524 | 516 |
525 gchar *qq_get_icon_name(gint face) | 517 gchar *qq_get_icon_name(gint face) |
526 { | 518 { |
527 gint icon; | 519 gint icon; |