Mercurial > pidgin.yaz
comparison pidgin/gtkconv.c @ 16375:391a79778f89
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
imgstore subsystem to not require IDs for everything.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 24 Apr 2007 03:57:07 +0000 |
parents | c9b4ff420140 |
children | 72dc611f3257 |
comparison
equal
deleted
inserted
replaced
16374:2a19bbc743ed | 16375:391a79778f89 |
---|---|
2536 const gchar *ext; | 2536 const gchar *ext; |
2537 gchar *buf; | 2537 gchar *buf; |
2538 | 2538 |
2539 g_return_if_fail(conv != NULL); | 2539 g_return_if_fail(conv != NULL); |
2540 | 2540 |
2541 ext = purple_buddy_icon_get_type(purple_conv_im_get_icon(PURPLE_CONV_IM(conv))); | 2541 ext = purple_buddy_icon_get_extension(purple_conv_im_get_icon(PURPLE_CONV_IM(conv))); |
2542 | 2542 |
2543 buf = g_strdup_printf("%s.%s", purple_normalize(conv->account, conv->name), ext); | 2543 buf = g_strdup_printf("%s.%s", purple_normalize(conv->account, conv->name), ext); |
2544 | 2544 |
2545 purple_request_file(gtkconv, _("Save Icon"), buf, TRUE, | 2545 purple_request_file(gtkconv, _("Save Icon"), buf, TRUE, |
2546 G_CALLBACK(saveicon_writefile_cb), NULL, gtkconv); | 2546 G_CALLBACK(saveicon_writefile_cb), NULL, gtkconv); |