Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/stardict/files: stardict-3.0.1-gcc44.patch stardict-3.0.1-changelog-minor-typo-fixes.patch stardict-3.0.1-gcc43.patch stardict-3.0.1-configure.in-EST.diff stardict-2.4.8-ClipboardReceivedCallback.patch stardict-3.0.1-gconf-m4.diff stardict-3.0.1-gucharmap2.patch stardict-3.0.1-transparent_trayicon.patch stardict-2.4.8-floatwin-disappear.patch
Date: Wed, 03 Feb 2010 07:54:30
Message-Id: E1Nca48-0001Z7-KK@stork.gentoo.org
1 pva 10/02/03 07:54:24
2
3 Added: stardict-3.0.1-gcc44.patch
4 stardict-3.0.1-changelog-minor-typo-fixes.patch
5 stardict-3.0.1-gcc43.patch
6 stardict-3.0.1-configure.in-EST.diff
7 stardict-2.4.8-ClipboardReceivedCallback.patch
8 stardict-3.0.1-gconf-m4.diff
9 stardict-3.0.1-gucharmap2.patch
10 stardict-3.0.1-transparent_trayicon.patch
11 stardict-2.4.8-floatwin-disappear.patch
12 Log:
13 Moved from app-dicts/stardict, bug #289475, thank Ihar Hrachyshka for report.
14 (Portage version: 2.2_rc61/cvs/Linux x86_64, RepoMan options: --force)
15
16 Revision Changes Path
17 1.1 app-text/stardict/files/stardict-3.0.1-gcc44.patch
18
19 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gcc44.patch?rev=1.1&view=markup
20 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gcc44.patch?rev=1.1&content-type=text/plain
21
22 Index: stardict-3.0.1-gcc44.patch
23 ===================================================================
24 --- src/lib/data.cpp
25 +++ src/lib/data.cpp
26 @@ -22,6 +22,8 @@
27 # include "config.h"
28 #endif
29
30 +#include <cstdio>
31 +
32 #include "kmp.h"
33
34 #include "data.hpp"
35 --- src/lib/stardict_client.cpp
36 +++ src/lib/stardict_client.cpp
37 @@ -22,6 +22,8 @@
38 # include "config.h"
39 #endif
40
41 +#include <cstdio>
42 +
43 #include <glib.h>
44 #include <glib/gi18n.h>
45
46
47
48
49 1.1 app-text/stardict/files/stardict-3.0.1-changelog-minor-typo-fixes.patch
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-changelog-minor-typo-fixes.patch?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-changelog-minor-typo-fixes.patch?rev=1.1&content-type=text/plain
53
54 Index: stardict-3.0.1-changelog-minor-typo-fixes.patch
55 ===================================================================
56 #! /bin/sh /usr/share/dpatch/dpatch-run
57 ## 04_changelog-minor-typo-fixes.dpatch by Anthony Fok <foka@××××××.org>
58 ##
59 ## All lines beginning with `## DP:' are a description of the patch.
60 ## DP: Minor typo fixes to upstream ChangeLog.
61
62 @DPATCH@
63
64 --- stardict-3.0.1.orig/ChangeLog
65 +++ stardict-3.0.1/ChangeLog
66 @@ -12,7 +12,7 @@
67
68 2007.8.13
69 StarDict-3.0.0 (RedHat) released.
70 -http://www.StarDict.org on-line dictionries website is out in 2006.9.25. We have developed the stardictd dictionary server for it.
71 +http://www.StarDict.org on-line dictionaries website is out in 2006.9.25. We have developed the stardictd dictionary server for it.
72 StarDict's total download count reached two millions in 2007.3.8.
73 Network dictionaries support.
74 Plugin system.
75 @@ -38,14 +38,14 @@
76 KingSoft PowerWord support. This added 158 dictionaries. The data is cracked by Dwing(http://free5.ys168.com/?dwing).
77 Synonym support.
78 Sort word list by collate function support.
79 -XDXF project(http://xdxf.sourceforge.net) has port its dictionaries to StarDict format, some dictionries are come from Sdictionary. This added 615 dictionries.
80 +XDXF project (http://xdxf.sourceforge.net) has port its dictionaries to StarDict format, some dictionaries are come from Sdictionary. This added 615 dictionaries.
81 French translation, thanks Christophe Durville <cdurpp@×××××××.com>.
82 Brazilian Portuguese translation, thanks Ernesto <ernesto_mor@×××××××××.ar>.
83 Add cfdict dictionary, thanks Gilles Vigner <xiaogil@×××××.fr>.
84 Add English-Thai Lexitron Dictionary and Thai-English Lexitron Dictionary, thanks Suphanut Thanyaboon <suphanut@××××××.org>.
85 Add many Japanese dictionaries.
86 Add some Chinese dictionaries, data comes from KDic.
87 -Add two Germany dictionries: ldaf, xindehan.
88 +Add two Germany dictionaries: ldaf, xindehan.
89 Add duden Germany dictionary, thanks Liu Guizhu <zhuzi813@×××××.com> for providing data file.
90 Add fundset dictionary, thanks Lin Fanshun <fundset@×××××××.com> for providing data file.
91 Add DrEye4in1 dictionary, thanks Lilian <fairyland@×××××.com> for providing data file.
92 @@ -54,7 +54,7 @@
93
94 2006.4.18
95 StarDict-2.4.7 (complete) released.
96 -Port to GPE(http://gpe.handhelds.org).
97 +Port to GPE (http://gpe.handhelds.org).
98 Full-text search.
99 Acrobat plug-in in Win32, thanks Dewolf Xue <dewolf_matri_x@×××.com>.
100 Evgeniy's patches for special character search and other changes.
101 @@ -94,14 +94,14 @@
102
103 2005.7.20
104 StarDict-2.4.5 (final) released.
105 -Source code optimize and many changes, thanks Evgeney <dushistov@××××.ru>.
106 +Source code optimize and many changes, thanks Evgeniy <dushistov@××××.ru>.
107 Dutch translation and help document translation, thanks Ruud Slaats <ruudslaats@×××××××××××××.nl>.
108
109 2004.11.28
110 StarDict-2.4.4 (fine) released.
111 -sdcv-0.1(StarDict command line version) is out, developed by Evgeney <dushistov@××××.ru>.
112 +sdcv-0.1(StarDict command line version) is out, developed by Evgeniy <dushistov@××××.ru>.
113 Try to create .idx.oft file to speed up the interpretation of the .idx file. This feature is especially useful to sdcv.
114 -Mueller7 optimized, thanks Evgeney.
115 +Mueller7 optimized, thanks Evgeniy.
116 quick_eng-gre, quick_gre-eng dictionary encoding fix, thanks Christophe Combelles <ccomb@××××.fr> for bug reporting.
117 Add Hanzi Master dictionary, thanks Michael Robinson <robinson@××××××××××.com>.
118 zh_TW help document translation and a small bug fix, thanks Roy Chan <roy.chan@××××××××××.hk>.
119
120
121
122 1.1 app-text/stardict/files/stardict-3.0.1-gcc43.patch
123
124 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gcc43.patch?rev=1.1&view=markup
125 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gcc43.patch?rev=1.1&content-type=text/plain
126
127 Index: stardict-3.0.1-gcc43.patch
128 ===================================================================
129 === modified file 'src/config_file.hpp'
130 --- src/config_file.hpp 2008-04-26 21:05:23 +0000
131 +++ src/config_file.hpp 2008-04-26 21:05:29 +0000
132 @@ -5,7 +5,7 @@
133 #include <list>
134 #include <string>
135
136 -#include "sigc++/sigc++.h"
137 +#include <sigc++/sigc++.h>
138
139 class config_file;
140
141
142 === modified file 'src/gconf_file.cpp'
143 --- src/gconf_file.cpp 2008-04-26 21:05:23 +0000
144 +++ src/gconf_file.cpp 2008-04-26 21:05:29 +0000
145 @@ -22,6 +22,7 @@
146 # include "config.h"
147 #endif
148
149 +#include <memory>
150 #include <glib/gi18n.h>
151
152 #include "gconf_file.hpp"
153
154 === modified file 'src/inifile.cpp'
155 --- src/inifile.cpp 2008-04-26 21:05:23 +0000
156 +++ src/inifile.cpp 2008-04-26 21:05:29 +0000
157 @@ -28,6 +28,7 @@
158 #include <cstdio>
159 #include <glib/gi18n.h>
160 #include <glib/gstdio.h>
161 +#include <stdlib.h>
162
163 #include "utils.h"
164
165
166 === modified file 'src/lib/common.cpp'
167 --- src/lib/common.cpp 2008-04-26 21:05:23 +0000
168 +++ src/lib/common.cpp 2008-04-26 21:05:29 +0000
169 @@ -24,6 +24,8 @@
170 # include "config.h"
171 #endif
172
173 +#include <cstring>
174 +#include <stdlib.h>
175 #include "common.hpp"
176
177 static void parse_description(const char *p, long len, std::string &description)
178
179 === modified file 'src/lib/data.cpp'
180 --- src/lib/data.cpp 2008-04-26 21:05:23 +0000
181 +++ src/lib/data.cpp 2008-04-26 21:05:29 +0000
182 @@ -26,6 +26,7 @@
183
184 #include "data.hpp"
185 #include "getuint32.h"
186 +#include <cstring>
187
188
189 DictBase::DictBase()
190
191 === modified file 'src/lib/http_client.cpp'
192 --- src/lib/http_client.cpp 2008-04-26 21:05:23 +0000
193 +++ src/lib/http_client.cpp 2008-04-26 21:05:29 +0000
194 @@ -4,6 +4,7 @@
195
196 #include "http_client.h"
197 #include "sockets.hpp"
198 +#include <cstring>
199
200 sigc::signal<void, HttpClient *, const char *> HttpClient::on_error_;
201 sigc::signal<void, HttpClient *> HttpClient::on_response_;
202
203 === modified file 'src/lib/pluginmanager.cpp'
204 --- src/lib/pluginmanager.cpp 2008-04-26 21:05:23 +0000
205 +++ src/lib/pluginmanager.cpp 2008-04-26 21:05:29 +0000
206 @@ -1,6 +1,7 @@
207 #include "pluginmanager.h"
208 #include "file.hpp"
209 #include <string>
210 +#include <cstring>
211
212 StarDictPluginBaseObject::StarDictPluginBaseObject(const char *filename, GModule *module_, plugin_configure_func_t configure_func_):
213 plugin_filename(filename), module(module_), configure_func(configure_func_)
214
215 === modified file 'src/lib/stardict_client.cpp'
216 --- src/lib/stardict_client.cpp 2008-04-26 21:05:23 +0000
217 +++ src/lib/stardict_client.cpp 2008-04-26 21:05:29 +0000
218 @@ -25,6 +25,8 @@
219 #include <glib.h>
220 #include <glib/gi18n.h>
221
222 +#include <cstring>
223 +#include <stdlib.h>
224 #include "sockets.hpp"
225 #include "md5.h"
226 #include "getuint32.h"
227
228 === modified file 'src/lib/stddict.cpp'
229 --- src/lib/stddict.cpp 2008-04-26 21:05:23 +0000
230 +++ src/lib/stddict.cpp 2008-04-26 21:05:29 +0000
231 @@ -28,6 +28,7 @@
232 # include "config.h"
233 #endif
234
235 +#include <cstring>
236 #include <glib/gi18n.h>
237 #include <glib/gstdio.h>
238
239
240 === modified file 'src/lib/treedict.cpp'
241 --- src/lib/treedict.cpp 2008-04-26 21:05:23 +0000
242 +++ src/lib/treedict.cpp 2008-04-26 21:05:29 +0000
243 @@ -25,6 +25,7 @@
244 # include "config.h"
245 #endif
246
247 +#include <cstring>
248 #include "file.hpp"
249 #include "getuint32.h"
250
251
252 === modified file 'src/pangoview.cpp'
253 --- src/pangoview.cpp 2008-04-26 21:05:23 +0000
254 +++ src/pangoview.cpp 2008-04-26 21:05:29 +0000
255 @@ -22,6 +22,7 @@
256 # include "config.h"
257 #endif
258
259 +#include <cstring>
260 #include "gtktextviewpango.h"
261 #include "utils.h"
262 #include "skin.h"//for SkinCursor definition
263
264 === modified file 'src/prefsdlg.cpp'
265 --- src/prefsdlg.cpp 2008-04-26 21:05:23 +0000
266 +++ src/prefsdlg.cpp 2008-04-26 21:07:58 +0000
267 @@ -34,6 +34,7 @@
268 #include "utils.h"
269 #include "iskeyspressed.hpp"
270 #include "lib/md5.h"
271 +#include <cstdlib>
272
273 #include "prefsdlg.h"
274
275
276 === modified file 'src/readword.cpp'
277 --- src/readword.cpp 2008-04-26 21:05:23 +0000
278 +++ src/readword.cpp 2008-04-26 21:08:42 +0000
279 @@ -4,6 +4,7 @@
280
281 #include <cstring>
282 #include <string>
283 +#include <cstdlib>
284
285 #include <glib/gi18n.h>
286
287
288 === modified file 'src/sigc++/signal.h'
289 --- src/sigc++/signal.h 2008-04-26 21:05:23 +0000
290 +++ src/sigc++/signal.h 2008-04-26 21:06:11 +0000
291 @@ -18,7 +18,7 @@
292 //Compilers, such as older versions of SUN Forte C++, that do not allow this also often
293 //do not allow a typedef to have the same name as a class in the typedef's definition.
294 //For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build.
295 - #define SIGC_TYPEDEF_REDEFINE_ALLOWED 1
296 + //#define SIGC_TYPEDEF_REDEFINE_ALLOWED 1
297 #endif
298
299 namespace sigc {
300
301 === modified file 'src/utils.cpp'
302 --- src/utils.cpp 2008-04-26 21:05:23 +0000
303 +++ src/utils.cpp 2008-04-26 21:05:29 +0000
304 @@ -22,6 +22,7 @@
305 # include "config.h"
306 #endif
307
308 +#include <cstring>
309 #include <glib.h>
310 #include <glib/gi18n.h>
311 #include <cstdlib>
312
313 === modified file 'src/x11_iskeyspressed.hpp'
314 --- src/x11_iskeyspressed.hpp 2008-04-26 21:05:23 +0000
315 +++ src/x11_iskeyspressed.hpp 2008-04-26 21:05:29 +0000
316 @@ -5,6 +5,8 @@
317 #include <X11/keysym.h>
318 #include <gtk/gtk.h>
319
320 +#include <memory>
321 +
322 #include "iskeyspressed.hpp"
323
324 typedef enum { SYM, CODE, BUTTON } KeyType_t;
325
326 === modified file 'stardict-plugins/stardict-advertisement-plugin/advertisement.cpp'
327 --- stardict-plugins/stardict-advertisement-plugin/advertisement.cpp 2008-04-26 21:05:23 +0000
328 +++ stardict-plugins/stardict-advertisement-plugin/advertisement.cpp 2008-04-26 21:05:29 +0000
329 @@ -2,6 +2,7 @@
330 #include <glib.h>
331 #include <glib/gi18n.h>
332 #include <glib/gstdio.h>
333 +#include <cstring>
334 #include <string>
335 #include <map>
336 #include <list>
337
338 === modified file 'stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp'
339 --- stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp 2008-04-26 21:05:23 +0000
340 +++ stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp 2008-04-26 21:05:29 +0000
341 @@ -1,5 +1,6 @@
342 #include "stardict_dictdotcn.h"
343 #include <glib/gi18n.h>
344 +#include <cstring>
345 #include <string>
346 #include <list>
347
348
349 === modified file 'stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp'
350 --- stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2008-04-26 21:05:23 +0000
351 +++ stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2008-04-26 21:05:29 +0000
352 @@ -1,6 +1,7 @@
353 #include "stardict_espeak.h"
354 #include <espeak/speak_lib.h>
355 #include <glib/gi18n.h>
356 +#include <cstring>
357
358 static const StarDictPluginSystemInfo *plugin_info = NULL;
359 static std::string voice_engine;
360
361 === modified file 'stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp'
362 --- stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp 2008-04-26 21:05:23 +0000
363 +++ stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp 2008-04-26 21:05:29 +0000
364 @@ -1,6 +1,8 @@
365 #include "stardict_gucharmap.h"
366 #include <glib/gi18n.h>
367 #include <gucharmap/gucharmap.h>
368 +#include <stdlib.h>
369 +#include <cstring>
370 #include <string>
371
372 static char *build_dictdata(char type, const char *definition)
373
374 === modified file 'stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp'
375 --- stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2008-04-26 21:05:23 +0000
376 +++ stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2008-04-26 21:05:29 +0000
377 @@ -1,5 +1,7 @@
378 #include "stardict_html_parsedata.h"
379 #include <glib/gi18n.h>
380 +#include <cstring>
381 +#include <stdlib.h>
382
383 #ifdef _WIN32
384 #include <windows.h>
385
386 === modified file 'stardict-plugins/stardict-man-plugin/stardict_man.cpp'
387 --- stardict-plugins/stardict-man-plugin/stardict_man.cpp 2008-04-26 21:05:23 +0000
388 +++ stardict-plugins/stardict-man-plugin/stardict_man.cpp 2008-04-26 21:05:29 +0000
389 @@ -1,5 +1,6 @@
390 #include "stardict_man.h"
391 #include <glib/gi18n.h>
392 +#include <cstring>
393 #include <string>
394
395 static const StarDictPluginSystemInfo *plugin_info = NULL;
396
397 === modified file 'stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp'
398 --- stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp 2008-04-26 21:05:23 +0000
399 +++ stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp 2008-04-26 21:05:29 +0000
400 @@ -1,4 +1,5 @@
401 #include "stardict_powerword_parsedata.h"
402 +#include <cstring>
403 #include <glib/gi18n.h>
404
405 #ifdef _WIN32
406
407 === modified file 'stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp'
408 --- stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp 2008-04-26 21:05:23 +0000
409 +++ stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp 2008-04-26 21:05:29 +0000
410 @@ -1,6 +1,8 @@
411 #include "stardict_qqwry.h"
412 #include <glib/gi18n.h>
413 #include <glib/gstdio.h>
414 +#include <cstring>
415 +#include <stdlib.h>
416 #include <string>
417
418 #ifdef _WIN32
419
420 === modified file 'stardict-plugins/stardict-spell-plugin/stardict_spell.cpp'
421 --- stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2008-04-26 21:05:23 +0000
422 +++ stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2008-04-26 21:05:29 +0000
423 @@ -3,6 +3,7 @@
424 #include <glib/gi18n.h>
425 #include <enchant.h>
426 #include <pango/pango.h>
427 +#include <cstring>
428 #include <string>
429 #include <vector>
430
431
432 === modified file 'stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp'
433 --- stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp 2008-04-26 21:05:23 +0000
434 +++ stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp 2008-04-26 21:05:29 +0000
435 @@ -1,5 +1,7 @@
436 #include "stardict_update_info.h"
437 #include <glib/gi18n.h>
438 +#include <cstring>
439 +#include <stdlib.h>
440
441 #ifdef _WIN32
442 #include <windows.h>
443
444 === modified file 'stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp'
445 --- stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp 2008-04-26 21:05:23 +0000
446 +++ stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp 2008-04-26 21:05:29 +0000
447 @@ -1,5 +1,6 @@
448 #include "stardict_wiki2xml.h"
449 #include "WIKI2XML.h"
450 +#include <cstring>
451 #include <glib.h>
452
453 std::string wiki2xml(std::string &str)
454
455 === modified file 'stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp'
456 --- stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp 2008-04-26 21:05:23 +0000
457 +++ stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp 2008-04-26 21:05:29 +0000
458 @@ -1,5 +1,6 @@
459 #include "stardict_wiki_parsedata.h"
460 #include "stardict_wiki2xml.h"
461 +#include <cstring>
462 #include <glib/gi18n.h>
463
464 #ifdef _WIN32
465
466 === modified file 'stardict-plugins/stardict-wordnet-plugin/court_widget.cpp'
467 --- stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2008-04-26 21:05:23 +0000
468 +++ stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2008-04-26 21:05:29 +0000
469 @@ -1,6 +1,7 @@
470 #include "court_widget.h"
471 #include <math.h>
472 #include <list>
473 +#include <cstring>
474
475
476 wnobj::wnobj(partic_t & p, unsigned int t) : _p(p), _t(t), highlight(false)
477
478 === modified file 'stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp'
479 --- stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2008-04-26 21:05:23 +0000
480 +++ stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2008-04-26 21:05:29 +0000
481 @@ -1,6 +1,7 @@
482 #include "stardict_wordnet.h"
483 #include "court_widget.h"
484 #include <glib/gi18n.h>
485 +#include <cstring>
486
487 #ifdef _WIN32
488 #include <windows.h>
489
490 === modified file 'stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp'
491 --- stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp 2008-04-26 21:05:23 +0000
492 +++ stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp 2008-04-26 21:05:29 +0000
493 @@ -1,4 +1,5 @@
494 #include "stardict_wordnet_parsedata.h"
495 +#include <cstring>
496 #include <glib/gi18n.h>
497
498 #ifdef _WIN32
499
500 === modified file 'stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp'
501 --- stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2008-04-26 21:05:23 +0000
502 +++ stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2008-04-26 21:05:29 +0000
503 @@ -1,5 +1,6 @@
504 #include "stardict_xdxf_parsedata.h"
505 #include <glib/gi18n.h>
506 +#include <cstring>
507
508 #ifdef _WIN32
509 #include <windows.h>
510
511 === modified file 'tests/t_config_file.cpp'
512 --- tests/t_config_file.cpp 2008-04-26 21:05:23 +0000
513 +++ tests/t_config_file.cpp 2008-04-26 21:05:29 +0000
514 @@ -2,6 +2,7 @@
515 # include "config.h"
516 #endif
517
518 +#include <memory>
519 #include <cerrno>
520 #include <cstdio>
521 #include <cstdlib>
522
523 === modified file 'tests/t_xml.cpp'
524 --- tests/t_xml.cpp 2008-04-26 21:05:23 +0000
525 +++ tests/t_xml.cpp 2008-04-26 21:05:29 +0000
526 @@ -3,6 +3,7 @@
527 #endif
528
529 #include <glib.h>
530 +#include <cstring>
531 #include <cstdlib>
532 #include <string>
533
534
535
536
537
538 1.1 app-text/stardict/files/stardict-3.0.1-configure.in-EST.diff
539
540 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-configure.in-EST.diff?rev=1.1&view=markup
541 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-configure.in-EST.diff?rev=1.1&content-type=text/plain
542
543 Index: stardict-3.0.1-configure.in-EST.diff
544 ===================================================================
545 --- configure.in.orig 2007-08-13 20:44:31.000000000 +0800
546 +++ configure.in 2007-08-13 22:12:33.000000000 +0800
547 @@ -131,7 +131,7 @@
548 else
549 AC_MSG_RESULT(yes)
550 FESTIVAL_LIBS="-lFestival -lestools -lestbase -leststring"
551 - FESTIVAL_CFLAGS="-I/usr/include/speech-tools/EST -ffriend-injection -Wno-deprecated"
552 + FESTIVAL_CFLAGS="-I/usr/include/speech-tools -ffriend-injection -Wno-deprecated"
553 FESTIVAL_PLUGIN_DIR="stardict-festival-tts-plugin"
554 fi
555 else
556
557
558
559 1.1 app-text/stardict/files/stardict-2.4.8-ClipboardReceivedCallback.patch
560
561 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-2.4.8-ClipboardReceivedCallback.patch?rev=1.1&view=markup
562 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-2.4.8-ClipboardReceivedCallback.patch?rev=1.1&content-type=text/plain
563
564 Index: stardict-2.4.8-ClipboardReceivedCallback.patch
565 ===================================================================
566 --- trunk/src/mainwin.h 2006/08/08 12:44:42 1
567 +++ trunk/src/mainwin.h 2006/08/09 19:00:35 2
568 @@ -68,8 +68,6 @@
569 static void on_main_menu_about_activate(GtkMenuItem *menuitem, TopWin *oTopWin);
570 static void on_main_menu_quit_activate(GtkMenuItem *menuitem, TopWin *oTopWin);
571
572 - static void ClipboardReceivedCallback(GtkClipboard *clipboard, const gchar *text, gpointer data);
573 -
574 void LoadHistory(void);
575 void SaveHistory(void);
576 public:
577 @@ -97,7 +95,7 @@
578 bool HasFocus() {
579 return GTK_WIDGET_HAS_FOCUS(GTK_COMBO(WordCombo)->entry);
580 }
581 -
582 + static void ClipboardReceivedCallback(GtkClipboard *clipboard, const gchar *text, gpointer data);
583 };
584
585 class ListWin
586
587
588
589 1.1 app-text/stardict/files/stardict-3.0.1-gconf-m4.diff
590
591 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gconf-m4.diff?rev=1.1&view=markup
592 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gconf-m4.diff?rev=1.1&content-type=text/plain
593
594 Index: stardict-3.0.1-gconf-m4.diff
595 ===================================================================
596 diff -urN stardict-3.0.0.orig/m4/gconf-2.m4 stardict-3.0.0/m4/gconf-2.m4
597 --- m4/gconf-2.m4 1970-01-01 08:00:00.000000000 +0800
598 +++ m4/gconf-2.m4 2007-11-10 14:48:00.000000000 +0800
599 @@ -0,0 +1,39 @@
600 +dnl AM_GCONF_SOURCE_2
601 +dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
602 +dnl (i.e. pass to gconftool-2
603 +dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
604 +dnl you should install foo.schemas files
605 +dnl
606 +
607 +AC_DEFUN([AM_GCONF_SOURCE_2],
608 +[
609 + if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
610 + GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
611 + else
612 + GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
613 + fi
614 +
615 + AC_ARG_WITH(gconf-source,
616 + [ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
617 +
618 + AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
619 + AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
620 +
621 + if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
622 + GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
623 + fi
624 +
625 + AC_ARG_WITH(gconf-schema-file-dir,
626 + [ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
627 +
628 + AC_SUBST(GCONF_SCHEMA_FILE_DIR)
629 + AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
630 +
631 + AC_ARG_ENABLE(schemas-install,
632 + [ --disable-schemas-install Disable the schemas installation],
633 + [case ${enableval} in
634 + yes|no) ;;
635 + *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
636 + esac])
637 + AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
638 +])
639
640
641
642 1.1 app-text/stardict/files/stardict-3.0.1-gucharmap2.patch
643
644 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gucharmap2.patch?rev=1.1&view=markup
645 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-gucharmap2.patch?rev=1.1&content-type=text/plain
646
647 Index: stardict-3.0.1-gucharmap2.patch
648 ===================================================================
649 Index: configure.in
650 ===================================================================
651 --- configure.in (revision 257)
652 +++ configure.in (working copy)
653 @@ -12,6 +12,7 @@
654
655 AC_PATH_PROG(GCONFTOOL, gconftool-2)
656 AC_PROG_INTLTOOL([0.22])
657 +PKG_PROG_PKG_CONFIG
658
659 AC_CONFIG_MACRO_DIR(m4)
660 AM_PROG_LIBTOOL
661 @@ -72,13 +73,17 @@
662 dnl gucharmap plugin checks.
663 dnl ================================================================
664
665 +GUCHARMAP_REQUIRED=1.4.0
666 AC_ARG_ENABLE([gucharmap],
667 AS_HELP_STRING([--disable-gucharmap],[Disable gucharmap plugin (default: enabled)]),
668 [enable_gucharmap=$enableval],
669 [enable_gucharmap=yes])
670
671 if test "x$enable_gucharmap" = "xyes" ; then
672 - PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0], have_gucharmap=yes, have_gucharmap=no)
673 + PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= $GUCHARMAP_REQUIRED], have_gucharmap=yes, have_gucharmap=no)
674 + if test "x$have_gucharmap" != "xyes"; then
675 + PKG_CHECK_MODULES(GUCHARMAP, [gucharmap-2 >= $GUCHARMAP_REQUIRED], have_gucharmap=yes, have_gucharmap=no)
676 + fi
677 if test "x$have_gucharmap" = "xyes"; then
678 GUCHARMAP_CFLAGS="${GUCHARMAP_CFLAGS}"
679 GUCHARMAP_LIBS="${GUCHARMAP_LIBS}"
680 Index: stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp
681 ===================================================================
682 --- stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp (revision 257)
683 +++ stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp (working copy)
684 @@ -238,7 +238,7 @@
685 /* canonical decomposition */
686 gunichar *decomposition;
687 gsize result_len;
688 - decomposition = gucharmap_unicode_canonical_decomposition (uc, &result_len);
689 + decomposition = g_unicode_canonical_decomposition (uc, &result_len);
690 if (result_len != 1) {
691 definition += _("Canonical decomposition:");
692 definition += " ";
693
694
695
696
697
698 1.1 app-text/stardict/files/stardict-3.0.1-transparent_trayicon.patch
699
700 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-transparent_trayicon.patch?rev=1.1&view=markup
701 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-3.0.1-transparent_trayicon.patch?rev=1.1&content-type=text/plain
702
703 Index: stardict-3.0.1-transparent_trayicon.patch
704 ===================================================================
705 --- stardict-3.0.1/src/docklet.cpp 2007-10-25 10:57:22.000000000 +0400
706 +++ stardict/src/docklet.cpp 2008-02-25 16:32:08.000000000 +0300
707 @@ -25,15 +25,15 @@
708 void DockLet::create_docklet()
709 {
710 docklet_ = egg_tray_icon_new("StarDict");
711 - box_ = gtk_event_box_new();
712 + gtk_widget_add_events (GTK_WIDGET(docklet_), GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
713 if (is_hide_state()) {
714 - gtk_widget_set_tooltip_text(box_, _("StarDict"));
715 + gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict"));
716 image_ = gtk_image_new_from_pixbuf(normal_icon_);
717 } else if (is_scan_on()) {
718 - gtk_widget_set_tooltip_text(box_, _("StarDict - Scanning"));
719 + gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Scanning"));
720 image_ = gtk_image_new_from_pixbuf(scan_icon_);
721 } else {
722 - gtk_widget_set_tooltip_text(box_, _("StarDict - Stopped"));
723 + gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Stopped"));
724 image_ = gtk_image_new_from_pixbuf(stop_icon_);
725 }
726
727 @@ -41,11 +41,10 @@
728 G_CALLBACK(on_embedded), this);
729 g_signal_connect(G_OBJECT(docklet_), "destroy",
730 G_CALLBACK(on_destroyed), this);
731 - g_signal_connect(G_OBJECT(box_), "button-press-event",
732 + g_signal_connect(G_OBJECT(docklet_), "button-press-event",
733 G_CALLBACK(on_btn_press), this);
734
735 - gtk_container_add(GTK_CONTAINER(box_), image_);
736 - gtk_container_add(GTK_CONTAINER(docklet_), box_);
737 + gtk_container_add(GTK_CONTAINER(docklet_), image_);
738 gtk_widget_show_all(GTK_WIDGET(docklet_));
739
740 /* ref the docklet_ before we bandy it about the place */
741 @@ -179,13 +178,13 @@
742
743 void DockLet::scan_on()
744 {
745 - gtk_widget_set_tooltip_text(box_, _("StarDict - Scanning"));
746 + gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Scanning"));
747 gtk_image_set_from_pixbuf(GTK_IMAGE(image_), scan_icon_);
748 }
749
750 void DockLet::scan_off()
751 {
752 - gtk_widget_set_tooltip_text(box_, _("StarDict - Stopped"));
753 + gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Stopped"));
754 gtk_image_set_from_pixbuf(GTK_IMAGE(image_), stop_icon_);
755 }
756
757 @@ -193,7 +192,7 @@
758 {
759 if (!image_)
760 return;
761 - gtk_widget_set_tooltip_text(box_, _("StarDict"));
762 + gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict"));
763 gtk_image_set_from_pixbuf(GTK_IMAGE(image_), normal_icon_);
764 }
765
766 --- stardict-3.0.1/src/docklet.h 2007-10-25 10:53:06.000000000 +0400
767 +++ stardict/src/docklet.h 2008-02-25 16:32:08.000000000 +0300
768 @@ -16,7 +16,6 @@
769 void set_scan_mode(bool);
770 private:
771 EggTrayIcon *docklet_;
772 - GtkWidget *box_;
773 GtkWidget *image_; //icon image.
774 typedef ResourceWrapper<GtkWidget, GtkWidget, gtk_widget_destroy> GMenu;
775 GMenu menu_;
776 --- stardict-3.0.1/src/eggtrayicon.c 2007-07-10 11:16:04.000000000 +0400
777 +++ stardict/src/eggtrayicon.c 2008-02-25 16:32:08.000000000 +0300
778 @@ -66,6 +66,8 @@
779
780 static void egg_tray_icon_realize (GtkWidget *widget);
781 static void egg_tray_icon_unrealize (GtkWidget *widget);
782 +static void egg_tray_icon_add (GtkContainer *container,
783 + GtkWidget *widget);
784
785 #ifdef GDK_WINDOWING_X11
786 static void egg_tray_icon_update_manager_window (EggTrayIcon *icon,
787 @@ -113,6 +115,7 @@
788 {
789 GObjectClass *gobject_class = (GObjectClass *)klass;
790 GtkWidgetClass *widget_class = (GtkWidgetClass *)klass;
791 + GtkContainerClass *container_class = (GtkContainerClass *)klass;
792
793 parent_class = g_type_class_peek_parent (klass);
794
795 @@ -121,6 +124,8 @@
796 widget_class->realize = egg_tray_icon_realize;
797 widget_class->unrealize = egg_tray_icon_unrealize;
798
799 + container_class->add = egg_tray_icon_add;
800 +
801 g_object_class_install_property (gobject_class,
802 PROP_ORIENTATION,
803 g_param_spec_enum ("orientation",
804 @@ -159,6 +164,35 @@
805 }
806
807 #ifdef GDK_WINDOWING_X11
808 +static gboolean
809 +transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
810 +{
811 + gdk_window_clear_area (widget->window, event->area.x, event->area.y,
812 + event->area.width, event->area.height);
813 + return FALSE;
814 +}
815 +
816 +static void
817 +make_transparent_again (GtkWidget *widget, GtkStyle *previous_style,
818 + gpointer user_data)
819 +{
820 + gdk_window_set_back_pixmap(widget->window, NULL, TRUE);
821 +}
822 +
823 +static void
824 +make_transparent (GtkWidget *widget, gpointer user_data)
825 +{
826 + if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget))
827 + return;
828 +
829 + gtk_widget_set_app_paintable (widget, TRUE);
830 + gtk_widget_set_double_buffered (widget, FALSE);
831 + gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
832 + g_signal_connect (widget, "expose_event",
833 + G_CALLBACK (transparent_expose_event), NULL);
834 + g_signal_connect_after (widget, "style_set",
835 + G_CALLBACK (make_transparent_again), NULL);
836 +}
837
838 static void
839 egg_tray_icon_get_orientation_property (EggTrayIcon *icon)
840 @@ -238,10 +272,22 @@
841 }
842 return GDK_FILTER_CONTINUE;
843 }
844 -
845 +#else
846 +static void
847 +make_transparent (GtkWidget *widget, gpointer user_data)
848 +{
849 +}
850 #endif
851
852 static void
853 +egg_tray_icon_add (GtkContainer *container, GtkWidget *widget)
854 +{
855 + g_signal_connect (widget, "realize",
856 + G_CALLBACK (make_transparent), NULL);
857 + GTK_CONTAINER_CLASS (parent_class)->add (container, widget);
858 +}
859 +
860 +static void
861 egg_tray_icon_unrealize (GtkWidget *widget)
862 {
863 #ifdef GDK_WINDOWING_X11
864 @@ -381,6 +427,8 @@
865 if (GTK_WIDGET_CLASS (parent_class)->realize)
866 GTK_WIDGET_CLASS (parent_class)->realize (widget);
867
868 + make_transparent (widget, NULL);
869 +
870 screen = gtk_widget_get_screen (widget);
871 display = gdk_screen_get_display (screen);
872 xdisplay = gdk_x11_display_get_xdisplay (display);
873
874
875
876 1.1 app-text/stardict/files/stardict-2.4.8-floatwin-disappear.patch
877
878 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-2.4.8-floatwin-disappear.patch?rev=1.1&view=markup
879 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/files/stardict-2.4.8-floatwin-disappear.patch?rev=1.1&content-type=text/plain
880
881 Index: stardict-2.4.8-floatwin-disappear.patch
882 ===================================================================
883 Index: stardict-2.4.8/src/floatwin.cpp
884 ===================================================================
885 --- stardict-2.4.8.orig/src/floatwin.cpp
886 +++ stardict-2.4.8/src/floatwin.cpp
887 @@ -788,7 +788,7 @@ gboolean FloatWin::vButtonReleaseCallbac
888
889 gboolean FloatWin::vMotionNotifyCallback (GtkWidget * widget, GdkEventMotion * event , FloatWin *oFloatWin)
890 {
891 - if (event->window == oFloatWin->FloatWindow->window || (event->state & GDK_BUTTON1_MASK))
892 + if (event->state & GDK_BUTTON1_MASK)
893 {
894 gint x,y;
895 x = oFloatWin->press_window_x + (gint)(event->x_root) - oFloatWin->press_x_root;