Mercurial > pidgin.yaz
diff src/conversation.c @ 4044:133cf6424c53
[gaim-migrate @ 4252]
Stripped the old proto-specific smiley support out. The new proto-specific
smileys won't be set by the prpl, but by a smiley theme settable from
preferences.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 04 Dec 2002 05:12:06 +0000 |
parents | a3ec0146c73e |
children | 3ccbdf8e7f8d |
line wrap: on
line diff
--- a/src/conversation.c Wed Dec 04 01:36:43 2002 +0000 +++ b/src/conversation.c Wed Dec 04 05:12:06 2002 +0000 @@ -79,7 +79,6 @@ static void update_checkbox(struct conversation *); static void remove_checkbox(struct conversation *); -static void update_smilies(struct conversation *c); /*------------------------------------------------------------------------*/ @@ -254,7 +253,6 @@ show_conv(c); update_icon(c); update_checkbox(c); - update_smilies(c); plugin_event(event_new_conversation, name); /*gtk_imhtml_to_bottom(c->text);*/ return c; @@ -2382,7 +2380,6 @@ update_icon(cnv); update_checkbox(cnv); - update_smilies(cnv); gaim_setup_imhtml_smileys(cnv->text); } @@ -2543,7 +2540,6 @@ update_icon(c); update_checkbox(c); - update_smilies(c); gaim_setup_imhtml_smileys(c->text); } @@ -3618,32 +3614,6 @@ g_object_unref(G_OBJECT(c->iter)); } -void update_smilies(struct conversation *c) -{ - GSList *smilies; - - if (!c) - return; - - if (!c->gc) - return; - - if (c->gc->prpl->smiley_list) { - gtk_imhtml_remove_smileys(GTK_IMHTML(c->text)); - smilies = c->gc->prpl->smiley_list(); - - while (smilies) { - struct _prpl_smiley *smile = - (struct _prpl_smiley *)smilies->data; - - //gtk_imhtml_associate_smiley(GTK_IMHTML(c->text), smile->key, smile->xpm); - smilies = g_slist_next(smilies); - } - } else { - gtk_imhtml_reset_smileys(GTK_IMHTML(c->text)); - } -} - void update_icon(struct conversation *c) { char filename[256];