soc.2008.finch: f2932866: Spell check the current word if enter is...

sadrul at pidgin.im sadrul at pidgin.im
Fri Sep 26 14:40:23 EDT 2008


-----------------------------------------------------------------
Revision: f2932866204f3ec23e179fdecca468405fe68ca3
Ancestor: 65e665d09f79c36511ccd9418c20ab3b53bd9033
Author: sadrul at pidgin.im
Date: 2008-09-26T18:50:55
Branch: im.pidgin.soc.2008.finch
URL: http://d.pidgin.im/viewmtn/revision/info/f2932866204f3ec23e179fdecca468405fe68ca3

Modified files:
        finch/gntblist.c finch/libgnt/gntentry.c

ChangeLog: 

Spell check the current word if enter is pressed.

-------------- next part --------------
============================================================
--- finch/gntblist.c	7ef61d46bea4f1ba8303828748ca3ada7f188681
+++ finch/gntblist.c	f8c85c79286ffbab79ef48cd11792c9440ce6152
@@ -2231,7 +2231,7 @@ status_text_changed(GntEntry *entry, con
 	{
 		/* Set the status only after you press 'Enter' */
 		remove_typing_cb(NULL);
-		return TRUE;
+		return FALSE;
 	}
 
 	ggblist->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, NULL);
============================================================
--- finch/libgnt/gntentry.c	7f1384915334e4e39f43f9bac9603ae2fc7a374d
+++ finch/libgnt/gntentry.c	6cd9508ce9d60d238f2af030a69a4a0dc6f2ca9a
@@ -1248,6 +1248,12 @@ gnt_entry_key_pressed(GntWidget *widget,
 	}
 
 	if (text[0] == '\r' || text[0] == '\n') {
+#ifdef USE_ENCHANT
+		if (entry->spell && entry->spell->cursor_word) {
+			check_entry_word(entry, entry->spell->cursor_word);
+			entry_redraw(widget);
+		}
+#endif
 		gnt_widget_activate(widget);
 		return TRUE;
 	}


More information about the Commits mailing list