# HG changeset patch # User Sadrul Habib Chowdhury # Date 1211773254 0 # Node ID d54bc04bfd31f94b0fbe472b273002ad4b017400 # Parent 66ccd61eaff6de7fa259d4c29a783a80401a118f Do not show custom smileys where the prpl doesn't support them. Thanks Kevin! diff -r 66ccd61eaff6 -r d54bc04bfd31 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun May 25 23:48:57 2008 +0000 +++ b/pidgin/gtkconv.c Mon May 26 03:40:54 2008 +0000 @@ -5191,11 +5191,8 @@ nick_colors = generate_nick_colors(&nbr_nick_colors, gtk_widget_get_style(gtkconv->imhtml)->base[GTK_STATE_NORMAL]); } - /* We don't want to see the custom smileys if our buddy send us the - * defined shortcut. */ - pidgin_themes_smiley_themeize(gtkconv->imhtml); - /* We want to see our smileys in the entry */ - pidgin_themes_smiley_themeize_custom(gtkconv->entry); + if (conv->features & PURPLE_CONNECTION_ALLOW_CUSTOM_SMILEY) + pidgin_themes_smiley_themeize_custom(gtkconv->entry); } static void @@ -5661,7 +5658,7 @@ gtk_font_options |= GTK_IMHTML_USE_POINTSIZE; } - if (!(flags & PURPLE_MESSAGE_RECV)) + if (!(flags & PURPLE_MESSAGE_RECV) && (conv->features & PURPLE_CONNECTION_ALLOW_CUSTOM_SMILEY)) { /* We want to see our own smileys. Need to revert it after send*/ pidgin_themes_smiley_themeize_custom(gtkconv->imhtml); @@ -5846,7 +5843,7 @@ gtkconv_set_unseen(gtkconv, unseen); } - if (!(flags & PURPLE_MESSAGE_RECV)) + if (!(flags & PURPLE_MESSAGE_RECV) && (conv->features & PURPLE_CONNECTION_ALLOW_CUSTOM_SMILEY)) { /* Restore the smiley-data */ pidgin_themes_smiley_themeize(gtkconv->imhtml); diff -r 66ccd61eaff6 -r d54bc04bfd31 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Sun May 25 23:48:57 2008 +0000 +++ b/pidgin/gtkutils.c Mon May 26 03:40:54 2008 +0000 @@ -103,7 +103,7 @@ g_signal_connect(G_OBJECT(imhtml), "url_clicked", G_CALLBACK(url_clicked_cb), NULL); - pidgin_themes_smiley_themeize_custom(imhtml); + pidgin_themes_smiley_themeize(imhtml); gtk_imhtml_set_funcs(GTK_IMHTML(imhtml), >kimhtml_cbs);