/pidgin/main: 56e1ef289cbb: Webkit: preserve file names for inli...
Tomasz Wasilczyk
twasilczyk at pidgin.im
Sat Apr 12 20:14:56 EDT 2014
Changeset: 56e1ef289cbbf54c2a2fc8a558cc40373233cd38
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-04-13 02:14 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/56e1ef289cbb
Description:
Webkit: preserve file names for inline images and smileys
diffstat:
pidgin/gtkwebview.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff --git a/pidgin/gtkwebview.c b/pidgin/gtkwebview.c
--- a/pidgin/gtkwebview.c
+++ b/pidgin/gtkwebview.c
@@ -230,6 +230,8 @@ webview_resource_loaded(WebKitWebView *w
} else {
image = purple_image_new_from_data(
g_memdup(data->str, data->len), data->len);
+ if (purple_str_has_prefix(uri, "file:"))
+ purple_image_set_friendly_filename(image, uri);
g_return_if_fail(image != NULL);
}
More information about the Commits
mailing list