1
diff -u -r1.58 gtkutils.c
2
--- pidgin-2.0.0+beta6/pidgin/gtkutils.c 4 Jan 2004 06:59:09 -0000 1.58
3
+++ pidgin-2.0.0+beta6/pidgin/gtkutils.c 5 Jan 2004 01:38:19 -0000
5
g_return_if_fail(textview != NULL);
6
g_return_if_fail(GTK_IS_TEXT_VIEW(textview));
9
+ /* don't try and override the dictionary on windows */
12
+ locale = setlocale(LC_MESSAGES, NULL);
14
+ /* don't try and override the dictionary on default locales */
15
+ if (!strcmp(locale, "C"))
19
if (gtkspell_new_attach(textview, locale, &error) == NULL && error)
21
gaim_debug_warning("gtkspell", "Failed to setup GtkSpell: %s\n",
22
--- pidgin-2.0.0+beta6/pidgin/gtkutils.h 29 Dec 2003 09:03:43 -0000 1.24
23
+++ pidgin-2.0.0+beta6/pidgin/gtkutils.h 5 Jan 2004 01:38:19 -0000
25
void gaim_gtk_find_images(const char *message, GSList **list);
28
- * Sets up GtkSpell for the given GtkTextView, reporting errors
29
+ * Sets up GtkSpell for the given GtkTextView, selecting the appropriate
30
+ * dictionary for the locale on *nix systems, and reporting errors
33
* This does nothing if Gaim is not compiled with GtkSpell support.