Mercurial > pidgin.yaz
changeset 11288:a4ce03725025
[gaim-migrate @ 13486]
Die g_assert() and let Gaim live.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 17 Aug 2005 14:36:15 +0000 |
parents | fb6e85c55fb8 |
children | b633879e23f9 |
files | plugins/spellchk.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/spellchk.c Wed Aug 17 04:25:57 2005 +0000 +++ b/plugins/spellchk.c Wed Aug 17 14:36:15 2005 +0000 @@ -448,7 +448,7 @@ spell->word = NULL; } -spellchk* +void spellchk_new_attach(GaimConversation *c) { spellchk *spell; GtkTextBuffer *buffer; @@ -461,7 +461,8 @@ view = GTK_TEXT_VIEW(gtkconv->entry); spell = g_object_get_data(G_OBJECT(view), SPELLCHK_OBJECT_KEY); - g_assert(spell == NULL); + if (spell == NULL) + return; /* attach to the widget */ spell = g_new0(spellchk, 1); @@ -494,7 +495,7 @@ "insert-text", G_CALLBACK(insert_text_after), spell); - return spell; + return; } static int buf_get_line(char *ibuf, char **buf, int *position, int len)