Mercurial > pidgin
changeset 7371:2ec21bff351b
[gaim-migrate @ 7966]
some 64bit goodness
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 29 Oct 2003 20:09:50 +0000 |
parents | 622359a769bc |
children | 4ce6952d7908 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Wed Oct 29 18:39:35 2003 +0000 +++ b/src/gtkimhtml.c Wed Oct 29 20:09:50 2003 +0000 @@ -693,7 +693,7 @@ pos = strchr (t->values->str, *x); if (pos) - t = t->children [(int) pos - GPOINTER_TO_INT(t->values->str)]; + t = t->children [GPOINTER_TO_INT(pos) - GPOINTER_TO_INT(t->values->str)]; else break; @@ -714,7 +714,7 @@ GtkSmileyTree *tree; g_return_if_fail (imhtml != NULL); g_return_if_fail (GTK_IS_IMHTML (imhtml)); - + if (sml == NULL) tree = imhtml->default_smilies; else if ((tree = g_hash_table_lookup(imhtml->smiley_data, sml))) { @@ -748,7 +748,7 @@ } if (tree == NULL) return FALSE; - + *len = gtk_smiley_tree_lookup (tree, text); return (*len > 0); } @@ -762,9 +762,9 @@ const gchar *x = text; if (sml == NULL) t = imhtml->default_smilies; - else + else t = g_hash_table_lookup(imhtml->smiley_data, sml); - + if (t == NULL) return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; @@ -775,10 +775,10 @@ if (!t->values) { return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; } - + pos = strchr (t->values->str, *x); if (pos) { - t = t->children [(int) pos - GPOINTER_TO_INT(t->values->str)]; + t = t->children [GPOINTER_TO_INT(pos) - GPOINTER_TO_INT(t->values->str)]; } else { return sml ? gtk_smiley_tree_image(imhtml, NULL, text) : NULL; }