# HG changeset patch # User Elliott Sales de Andrade # Date 1315716652 0 # Node ID 7ae844fd208f4f016f4f045aabf5f3def5dff4c0 # Parent 3f9b670cba14e3515f2962868afcad89ede2f028 Don't attempt to add smileys to a webview by treating it as imhtml. diff -r 3f9b670cba14 -r 7ae844fd208f pidgin/gtkconv.c --- a/pidgin/gtkconv.c Fri Sep 09 07:00:03 2011 +0000 +++ b/pidgin/gtkconv.c Sun Sep 11 04:50:52 2011 +0000 @@ -6308,6 +6308,13 @@ } static gboolean +add_custom_smiley_for_webview(GtkWebView *webview, const char *sml, const char *smile) +{ + /* FIXME: Smileys need to be added to webkit stuff */ + return TRUE; +} + +static gboolean pidgin_conv_custom_smiley_add(PurpleConversation *conv, const char *smile, gboolean remote) { PidginConversation *gtkconv; @@ -6334,7 +6341,7 @@ } } - if (!add_custom_smiley_for_imhtml(GTK_IMHTML(gtkconv->webview), sml, smile)) + if (!add_custom_smiley_for_webview(GTK_WEBVIEW(gtkconv->webview), sml, smile)) return FALSE; if (!remote) /* If it's a local custom smiley, then add it for the entry */