~didrocks/pidgin/intrepid-update

« back to all changes in this revision

Viewing changes to debian/patches/01_gtkspell-locale3.patch

  • Committer: Didier Roche
  • Date: 2009-03-10 15:58:11 UTC
  • Revision ID: didrocks@ubuntu.com-20090310155811-s6e0maqzs2avzsxi
init release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
4
@@ -1104,6 +1104,17 @@
 
5
        g_return_if_fail(textview != NULL);
 
6
        g_return_if_fail(GTK_IS_TEXT_VIEW(textview));
 
7
 
 
8
+#ifdef _WIN32
 
9
+       /* don't try and override the dictionary on windows */
 
10
+       locale = NULL;
 
11
+#else
 
12
+       locale = setlocale(LC_MESSAGES, NULL);
 
13
+
 
14
+       /* don't try and override the dictionary on default locales */
 
15
+       if (!strcmp(locale, "C"))
 
16
+               locale = NULL;
 
17
+#endif /* _WIN32 */
 
18
+
 
19
        if (gtkspell_new_attach(textview, locale, &error) == NULL && error)
 
20
        {
 
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
 
24
@@ -283,7 +283,8 @@
 
25
 void gaim_gtk_find_images(const char *message, GSList **list);
 
26
 
 
27
 /**
 
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
 
31
  * if encountered.
 
32
  *
 
33
  * This does nothing if Gaim is not compiled with GtkSpell support.