diff pidgin/gtkimhtml.c @ 23131:9aa105267f46

Show the custom smileys only on accounts that support it. References #1187.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 07 May 2008 18:13:14 +0000
parents ac567757d236
children 55e42ccdca4c
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Wed May 07 04:05:19 2008 +0000
+++ b/pidgin/gtkimhtml.c	Wed May 07 18:13:14 2008 +0000
@@ -5263,6 +5263,11 @@
 	if (flags & PURPLE_CONNECTION_NO_IMAGES)
 		buttons &= ~GTK_IMHTML_IMAGE;
 
+	if (flags & PURPLE_CONNECTION_ALLOW_CUSTOM_SMILEY)
+		buttons |= GTK_IMHTML_CUSTOM_SMILEY;
+	else
+		buttons &= ~GTK_IMHTML_CUSTOM_SMILEY;
+
 	gtk_imhtml_set_format_functions(imhtml, buttons);
 }