Sun, 28 Aug 2005 22:16:17 +0000
[gaim-migrate @ 13579]
Image field added to the request API.
| 4862 | 1 | /* |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
2 | * gaim |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
3 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
4 | * File: wspell.c |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
5 | * Date: March, 2003 |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
6 | * Description: Windows Gaim gtkspell interface. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
7 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
8 | * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com> |
| 4862 | 9 | * |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
10 | * This program is free software; you can redistribute it and/or modify |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
11 | * it under the terms of the GNU General Public License as published by |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
12 | * the Free Software Foundation; either version 2 of the License, or |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
13 | * (at your option) any later version. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
14 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
15 | * This program is distributed in the hope that it will be useful, |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
18 | * GNU General Public License for more details. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
19 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
20 | * You should have received a copy of the GNU General Public License |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
21 | * along with this program; if not, write to the Free Software |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
23 | * |
| 4862 | 24 | */ |
| 25 | #include <windows.h> | |
| 26 | #include <string.h> | |
| 27 | #include <stdlib.h> | |
| 28 | #include <glib.h> | |
| 29 | #include <gtk/gtk.h> | |
| 30 | #include <gtkspell/gtkspell.h> | |
|
6425
3e86c949c98a
[gaim-migrate @ 6933]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
31 | #include "debug.h" |
| 4862 | 32 | #include "win32dep.h" |
| 33 | ||
| 34 | /* GTKSPELL DUMMY FUNCS */ | |
| 35 | GtkSpell* wgtkspell_new_attach(GtkTextView *view, | |
| 36 | const gchar *lang, | |
| 37 | GError **error) {return NULL;} | |
| 38 | GtkSpell* wgtkspell_get_from_text_view(GtkTextView *view) {return NULL;} | |
| 39 | void wgtkspell_detach(GtkSpell *spell) {} | |
| 40 | gboolean wgtkspell_set_language(GtkSpell *spell, | |
| 41 | const gchar *lang, | |
| 42 | GError **error) {return 0;} | |
| 43 | void wgtkspell_recheck_all(GtkSpell *spell) {} | |
| 44 | ||
| 45 | /* GTKSPELL PROTOS */ | |
| 46 | GtkSpell* (*wgaim_gtkspell_new_attach) (GtkTextView *, | |
| 47 | const gchar *, | |
| 48 | GError **) = wgtkspell_new_attach; | |
| 49 | ||
| 50 | GtkSpell* (*wgaim_gtkspell_get_from_text_view) (GtkTextView*) = wgtkspell_get_from_text_view; | |
| 51 | ||
| 52 | void (*wgaim_gtkspell_detach) (GtkSpell*) = wgtkspell_detach; | |
| 53 | ||
| 54 | gboolean (*wgaim_gtkspell_set_language) (GtkSpell*, | |
| 55 | const gchar*, | |
| 56 | GError**) = wgtkspell_set_language; | |
| 57 | ||
| 58 | void (*wgaim_gtkspell_recheck_all) (GtkSpell*) = wgtkspell_recheck_all; | |
| 59 | ||
| 60 | static void load_gtkspell() { | |
| 61 | wgaim_gtkspell_new_attach = (void*)wgaim_find_and_loadproc("libgtkspell.dll", "gtkspell_new_attach" ); | |
| 62 | wgaim_gtkspell_get_from_text_view = (void*)wgaim_find_and_loadproc("libgtkspell.dll", "gtkspell_get_from_text_view"); | |
| 63 | wgaim_gtkspell_detach = (void*)wgaim_find_and_loadproc("libgtkspell.dll", "gtkspell_detach"); | |
| 64 | wgaim_gtkspell_set_language = (void*)wgaim_find_and_loadproc("libgtkspell.dll", "gtkspell_set_language"); | |
| 65 | wgaim_gtkspell_recheck_all = (void*)wgaim_find_and_loadproc("libgtkspell.dll", "gtkspell_recheck_all"); | |
| 66 | } | |
| 67 | ||
|
10878
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
68 | static char* lookup_aspell_path() { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
69 | char *path = NULL; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
70 | HKEY reg_key; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
71 | DWORD type; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
72 | DWORD nbytes; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
73 | gboolean found_reg_key; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
74 | LPCTSTR subkey = NULL; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
75 | if (G_WIN32_HAVE_WIDECHAR_API ()) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
76 | if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Aspell", 0, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
77 | KEY_QUERY_VALUE, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
78 | ®_key) == ERROR_SUCCESS) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
79 | subkey = (LPCTSTR) L"Path"; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
80 | if (!(found_reg_key = RegQueryValueExW(reg_key, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
81 | (WCHAR*) subkey, NULL, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
82 | &type, NULL, &nbytes |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
83 | ) == ERROR_SUCCESS)) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
84 | subkey = NULL; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
85 | found_reg_key = (RegQueryValueExW(reg_key, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
86 | (WCHAR*) subkey, NULL, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
87 | &type, NULL, &nbytes |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
88 | ) == ERROR_SUCCESS); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
89 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
90 | if (found_reg_key) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
91 | wchar_t *wc_temp = g_new (wchar_t, (nbytes + 1) / 2 + 1); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
92 | RegQueryValueExW(reg_key, (WCHAR*) subkey, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
93 | NULL, &type, (LPBYTE) wc_temp, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
94 | &nbytes); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
95 | wc_temp[nbytes / 2] = '\0'; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
96 | path = g_utf16_to_utf8( |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
97 | wc_temp, -1, NULL, NULL, NULL); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
98 | g_free (wc_temp); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
99 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
100 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
101 | } else { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
102 | if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Aspell", 0, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
103 | KEY_QUERY_VALUE, ®_key |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
104 | ) == ERROR_SUCCESS) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
105 | subkey = "Path"; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
106 | if (!(found_reg_key = RegQueryValueExA(reg_key, subkey, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
107 | NULL, &type, NULL, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
108 | &nbytes |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
109 | ) == ERROR_SUCCESS)) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
110 | subkey = NULL; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
111 | found_reg_key = (RegQueryValueExA(reg_key, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
112 | subkey, NULL, &type, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
113 | NULL, &nbytes |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
114 | ) == ERROR_SUCCESS); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
115 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
116 | if (found_reg_key) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
117 | char *cp_temp = g_malloc (nbytes + 1); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
118 | RegQueryValueExA(reg_key, subkey, NULL, &type, |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
119 | cp_temp, &nbytes); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
120 | cp_temp[nbytes] = '\0'; |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
121 | path = g_locale_to_utf8( |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
122 | cp_temp, -1, NULL, NULL, NULL); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
123 | g_free (cp_temp); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
124 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
125 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
126 | } |
| 4862 | 127 | |
|
10878
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
128 | if (reg_key != NULL) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
129 | RegCloseKey(reg_key); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
130 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
131 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
132 | return path; |
| 4862 | 133 | } |
|
10878
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
134 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
135 | void wgaim_gtkspell_init() { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
136 | char *aspell_path = lookup_aspell_path(); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
137 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
138 | if (aspell_path != NULL) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
139 | char *tmp = g_strconcat(aspell_path, "\\aspell-15.dll", NULL); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
140 | if (g_file_test(tmp, G_FILE_TEST_EXISTS)) { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
141 | const char *path = g_getenv("PATH"); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
142 | gaim_debug_info("wspell", "Found Aspell in %s\n", aspell_path); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
143 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
144 | g_free(tmp); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
145 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
146 | tmp = g_strdup_printf("%s%s%s", (path ? path : ""), |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
147 | (path ? G_SEARCHPATH_SEPARATOR_S : ""), |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
148 | aspell_path); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
149 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
150 | g_setenv("PATH", tmp, TRUE); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
151 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
152 | load_gtkspell(); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
153 | } else { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
154 | gaim_debug_warning("wspell", "Couldn't find aspell-15.dll\n"); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
155 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
156 | |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
157 | g_free(tmp); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
158 | g_free(aspell_path); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
159 | } else { |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
160 | gaim_debug_warning("wspell", "Couldn't find path for Aspell\n"); |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
161 | } |
|
b6489f938a86
[gaim-migrate @ 12571]
Daniel Atallah <datallah@pidgin.im>
parents:
6425
diff
changeset
|
162 | } |