| 6631 pidgin_conv_write_smiley(GString *out, PurpleSmiley *smiley, |
6631 pidgin_conv_write_smiley(GString *out, PurpleSmiley *smiley, |
| 6632 PurpleConversation *conv, gpointer _proto_name) |
6632 PurpleConversation *conv, gpointer _proto_name) |
| 6633 { |
6633 { |
| 6634 gchar *escaped_shortcut; |
6634 gchar *escaped_shortcut; |
| 6635 const gchar *path = purple_smiley_get_path(smiley); |
6635 const gchar *path = purple_smiley_get_path(smiley); |
| |
6636 const gchar *path_prefix = ""; |
| |
6637 |
| |
6638 #ifdef _WIN32 |
| |
6639 path_prefix = "file:///"; |
| |
6640 #endif |
| 6636 |
6641 |
| 6637 escaped_shortcut = g_markup_escape_text( |
6642 escaped_shortcut = g_markup_escape_text( |
| 6638 purple_smiley_get_shortcut(smiley), -1); |
6643 purple_smiley_get_shortcut(smiley), -1); |
| 6639 |
6644 |
| 6640 if (purple_smiley_is_ready(smiley) && path) { |
6645 if (purple_smiley_is_ready(smiley) && path) { |
| 6641 g_string_append_printf(out, |
6646 g_string_append_printf(out, |
| 6642 "<img class=\"emoticon\" alt=\"%s\" title=\"%s\" " |
6647 "<img class=\"emoticon\" alt=\"%s\" title=\"%s\" " |
| 6643 "src=\"%s\" />", escaped_shortcut, |
6648 "src=\"%s%s\" />", escaped_shortcut, |
| 6644 escaped_shortcut, path); |
6649 escaped_shortcut, path_prefix, path); |
| 6645 } else if (purple_smiley_is_ready(smiley) && !path) { |
6650 } else if (purple_smiley_is_ready(smiley) && !path) { |
| 6646 PurpleStoredImage *img = purple_smiley_get_image(smiley); |
6651 PurpleStoredImage *img = purple_smiley_get_image(smiley); |
| 6647 int imgid = purple_imgstore_add_with_id(img); |
6652 int imgid = purple_imgstore_add_with_id(img); |
| 6648 |
6653 |
| 6649 g_string_append_printf(out, "<img class=\"emoticon\" " |
6654 g_string_append_printf(out, "<img class=\"emoticon\" " |