Mercurial > pidgin.yaz
changeset 3040:910fbed99c2e
[gaim-migrate @ 3053]
I cant code for shit.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Wed, 13 Mar 2002 04:25:32 +0000 |
parents | 186279d1be2d |
children | 9fa577253b56 |
files | src/dialogs.c |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dialogs.c Wed Mar 13 04:19:14 2002 +0000 +++ b/src/dialogs.c Wed Mar 13 04:25:32 2002 +0000 @@ -3372,16 +3372,20 @@ smilies = c->gc->prpl->smiley_list(); + smiley_box = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS); + gtk_box_pack_start(GTK_BOX(vbox), smiley_box, TRUE, TRUE, 0); + while (smilies) { struct _prpl_smiley *smile = (struct _prpl_smiley *)smilies->data; - if ((!(smiley_count % 4)) && (smiley_count > 0)) { - smiley_box = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS); - gtk_box_pack_start(GTK_BOX(vbox), smiley_box, TRUE, TRUE, 0); - } + if (smile->show) { + + if ((!(smiley_count % 4)) && (smiley_count > 0)) { + smiley_box = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS); + gtk_box_pack_start(GTK_BOX(vbox), smiley_box, TRUE, TRUE, 0); + } - if (smile->show) { toolbar_add_smiley(c, smiley_box, smile->xpm, win, smile->key); smiley_count++; }