libpurple/protocols/gg/image.c

changeset 33762
7415482377b5
parent 33661
2ebcb105e606
child 33865
3f1be2d7ae11
child 34421
d7cf7492cf82
equal deleted inserted replaced
33761:925e38bc31b5 33762:7415482377b5
175 int stored_id; 175 int stored_id;
176 const char *imgtag_search; 176 const char *imgtag_search;
177 gchar *imgtag_replace; 177 gchar *imgtag_replace;
178 GList *pending_messages_it; 178 GList *pending_messages_it;
179 179
180 /* TODO: This PurpleStoredImage will be rendered within the IM window
181 and right-clicking the image will allow the user to save the image
182 to disk. The default filename used in this dialog is the filename
183 that we pass to purple_imgstore_new_with_id(), so we should call
184 g_path_get_basename() and purple_escape_filename() on it before
185 passing it in. This is easy, but it's not clear if there might be
186 other implications because this filename is used elsewhere within
187 this PRPL. */
180 stored_id = purple_imgstore_new_with_id( 188 stored_id = purple_imgstore_new_with_id(
181 g_memdup(image_reply->image, image_reply->size), 189 g_memdup(image_reply->image, image_reply->size),
182 image_reply->size, 190 image_reply->size,
183 image_reply->filename); 191 image_reply->filename);
184 192

mercurial