Mercurial > pidgin.yaz
changeset 23197:d54bc04bfd31
Do not show custom smileys where the prpl doesn't support them. Thanks
Kevin!
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 26 May 2008 03:40:54 +0000 |
parents | 66ccd61eaff6 |
children | 865c8e53c08e |
files | pidgin/gtkconv.c pidgin/gtkutils.c |
diffstat | 2 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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);