libpurple/protocols/sametime/sametime.c

changeset 33762
7415482377b5
parent 33760
66611fba7197
child 33796
4854740e5277
equal deleted inserted replaced
33761:925e38bc31b5 33762:7415482377b5
2778 /* look up the content id */ 2778 /* look up the content id */
2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID"); 2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID");
2780 cid = make_cid(cid); 2780 cid = make_cid(cid);
2781 2781
2782 /* add image to the purple image store */ 2782 /* add image to the purple image store */
2783 /* TODO: This PurpleStoredImage will be rendered within the IM window
2784 and right-clicking the image will allow the user to save the image
2785 to disk. The default filename used in this dialog is the filename
2786 that we pass to purple_imgstore_new_with_id(), so we should call
2787 g_path_get_basename() and purple_escape_filename() on it before
2788 passing it in. This is easy, but it's not clear if there might be
2789 other implications because this filename is used elsewhere within
2790 this PRPL. */
2783 img = purple_imgstore_new_with_id(d_dat, d_len, cid); 2791 img = purple_imgstore_new_with_id(d_dat, d_len, cid);
2784 2792
2785 /* map the cid to the image store identifier */ 2793 /* map the cid to the image store identifier */
2786 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img)); 2794 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img));
2787 2795

mercurial