Skip to content

Commit

Permalink
Fix filename in paste, for things that try to detect data type by fil…
Browse files Browse the repository at this point in the history
…e extension
  • Loading branch information
EionRobb committed Jan 31, 2024
1 parent d3e60f0 commit 114d498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paste_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ erpi_clipboard_image_received(GtkClipboard *clipboard, GdkPixbuf *pixbuf, gpoint
gsize len;
gchar *data;
gdk_pixbuf_save_to_buffer(pixbuf, &data, &len, "png", NULL, NULL);
int img_id = purple_imgstore_add_with_id(data, len, "clipboard_image");
int img_id = purple_imgstore_add_with_id(data, len, "clipboard_image.png");

GtkTextIter iter;
GtkTextMark *ins;
Expand Down Expand Up @@ -177,7 +177,7 @@ static PurplePluginInfo info =

PLUGIN_ID, /**< id */
"Paste Images", /**< name */
"0.1", /**< version */
"1.0", /**< version */
/** summary */
"Allow pasting images into a coversation window",
/** description */
Expand Down

0 comments on commit 114d498

Please sign in to comment.