Merge lp:~zartan/cairo-dock-plug-ins/wikipedia into lp:~cairo-dock-team/cairo-dock-plug-ins/plug-ins

Proposed by zartan
Status: Needs review
Proposed branch: lp:~zartan/cairo-dock-plug-ins/wikipedia
Merge into: lp:~cairo-dock-team/cairo-dock-plug-ins/plug-ins
Diff against target: 2142 lines (+2047/-0)
17 files modified
wikipedia/Makefile.am (+3/-0)
wikipedia/configure.ac (+34/-0)
wikipedia/data/Gnome-dictionary.svg (+296/-0)
wikipedia/data/Makefile.am (+15/-0)
wikipedia/data/langues.dat (+267/-0)
wikipedia/data/loading.html (+2/-0)
wikipedia/data/wikipedia.conf.in (+140/-0)
wikipedia/src/Makefile.am (+43/-0)
wikipedia/src/applet-config.c (+91/-0)
wikipedia/src/applet-config.h (+30/-0)
wikipedia/src/applet-init.c (+104/-0)
wikipedia/src/applet-init.h (+31/-0)
wikipedia/src/applet-notifications.c (+47/-0)
wikipedia/src/applet-notifications.h (+34/-0)
wikipedia/src/applet-struct.h (+75/-0)
wikipedia/src/applet-wikipedia.c (+791/-0)
wikipedia/src/applet-wikipedia.h (+44/-0)
To merge this branch: bzr merge lp:~zartan/cairo-dock-plug-ins/wikipedia
Reviewer Review Type Date Requested Status
Cairo-Dock Devs Pending
Review via email: mp+16195@code.launchpad.net
To post a comment you must log in.
Revision history for this message
zartan (zartan) wrote :

mise à dispo pour test

1449. By Fabounet (Fabrice Rey) - http://cairo-dock.org

start to use CD_APPLET_ENTER and CD_APPLET_LEAVE

1450. By Fabounet (Fabrice Rey) - http://cairo-dock.org

show-desktop : added the ability to change the screen resolution + use the debug macro i some applets + Network-Monitor : added the netspeed default backend (in progress)

1451. By Matth <mbaerts@Matth>

mtasaka: patch needed to enable showDesklets | Added RssReader in copyright

1452. By Fabounet (Fabrice Rey) - http://cairo-dock.org

wifi : fix to retrieve the ESSID and Access Point

1453. By Fabounet (Fabrice Rey) - http://cairo-dock.org

merged wifi and netspeed, scroll on the icon switches from one to the other

1454. By Matth <mbaerts@Matth>

ShowDesktop : little correction in config panel + updated the version

1455. By Matth <mbaerts@Matth>

DND2SHARE : added a 'Paste' button + icons for 'Clean History'

1456. By Fabounet (Fabrice Rey) - http://cairo-dock.org

got SSID and the list of access point

1457. By Matth <mbaerts@Matth>

Updated translations : Thanks to all contributors !

1458. By Fabounet (Fabrice Rey) - http://cairo-dock.org

I'm back :-)

1459. By Fabounet (Fabrice Rey) - http://cairo-dock.org

fixed the internet caracters that appeared with some crazy sites

1460. By Fabounet (Fabrice Rey) - http://cairo-dock.org

smoother cube rotation

1461. By Fabounet (Fabrice Rey) - http://cairo-dock.org

weather : decreased the connection timeout

1462. By zartan

corrections

1463. By zartan

corections bugs

1464. By zartan

ctrl F9

1465. By zartan

corections bugs

1466. By zartan

shortkey ctrl-F9 par defaut

Unmerged revisions

1466. By zartan

shortkey ctrl-F9 par defaut

1465. By zartan

corections bugs

1464. By zartan

ctrl F9

1463. By zartan

corections bugs

1462. By zartan

corrections

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'wikipedia'
2=== added file 'wikipedia/Makefile.am'
3--- wikipedia/Makefile.am 1970-01-01 00:00:00 +0000
4+++ wikipedia/Makefile.am 2010-01-02 11:50:25 +0000
5@@ -0,0 +1,3 @@
6+#dnl Process this file with automake to produce Makefile.in
7+
8+SUBDIRS = . src data
9
10=== added file 'wikipedia/configure.ac'
11--- wikipedia/configure.ac 1970-01-01 00:00:00 +0000
12+++ wikipedia/configure.ac 2010-01-02 11:50:25 +0000
13@@ -0,0 +1,34 @@
14+# -*- Autoconf -*-
15+# Process this file with autoconf to produce a configure script.
16+
17+AC_PREREQ(2.59)
18+AC_INIT([cd-wikipedia],[0.0.18],[zartan (alain.laclef@free.fr)])
19+AC_CONFIG_SRCDIR([config.h.in])
20+AC_CONFIG_HEADER([config.h])
21+
22+AM_INIT_AUTOMAKE([foreign])
23+AC_DISABLE_STATIC
24+AC_PROG_LIBTOOL
25+
26+
27+AC_SUBST(VERSION_WIKIPEDIA, "$VERSION")
28+AC_SUBST(PACKAGE_WIKIPEDIA, "$PACKAGE")
29+
30+wikipediauserdirname="wikipedia"
31+AC_SUBST(wikipediauserdirname)
32+wikipediadatadir=[`pkg-config cairo-dock --variable=pluginsdatadir`/wikipedia]
33+AC_SUBST(wikipediadatadir)
34+libdir=[`pkg-config cairo-dock --variable=pluginsdir`]
35+AC_SUBST(libdir)
36+
37+PKG_CHECK_MODULES(PACKAGE, cairo-dock)
38+
39+PKG_CHECK_MODULES(WEBKIT,webkit-1.0, [webkit_detected=true], [ webkit_detected=false; AC_MSG_ERROR(Could not find webkit-1.0; Wikipedia plugin requires webkit to be installed.) ])
40+AC_SUBST(WEBKIT_CFLAGS)
41+AC_SUBST(WEBKIT_LIBS)
42+
43+AC_CONFIG_FILES([Makefile
44+ src/Makefile
45+ data/Makefile
46+ data/wikipedia.conf])
47+AC_OUTPUT
48
49=== added directory 'wikipedia/data'
50=== added file 'wikipedia/data/Gnome-dictionary.svg'
51--- wikipedia/data/Gnome-dictionary.svg 1970-01-01 00:00:00 +0000
52+++ wikipedia/data/Gnome-dictionary.svg 2010-01-02 11:50:25 +0000
53@@ -0,0 +1,296 @@
54+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
55+<!-- Created with Inkscape (http://www.inkscape.org/) -->
56+<svg
57+ xmlns:dc="http://purl.org/dc/elements/1.1/"
58+ xmlns:cc="http://web.resource.org/cc/"
59+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
60+ xmlns:svg="http://www.w3.org/2000/svg"
61+ xmlns="http://www.w3.org/2000/svg"
62+ xmlns:xlink="http://www.w3.org/1999/xlink"
63+ xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
64+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
65+ width="48px"
66+ height="48px"
67+ id="svg1307"
68+ sodipodi:version="0.32"
69+ inkscape:version="0.43"
70+ sodipodi:docname="gnome-dictionary.svg"
71+ inkscape:export-xdpi="90"
72+ inkscape:export-ydpi="90">
73+ <defs
74+ id="defs1309">
75+ <linearGradient
76+ inkscape:collect="always"
77+ id="linearGradient15424">
78+ <stop
79+ style="stop-color:#729fcf;stop-opacity:1;"
80+ offset="0"
81+ id="stop15426" />
82+ <stop
83+ style="stop-color:#729fcf;stop-opacity:0;"
84+ offset="1"
85+ id="stop15428" />
86+ </linearGradient>
87+ <linearGradient
88+ id="linearGradient11002">
89+ <stop
90+ style="stop-color:#eeeeee;stop-opacity:1;"
91+ offset="0"
92+ id="stop11004" />
93+ <stop
94+ style="stop-color:#d3d7cf;stop-opacity:1;"
95+ offset="1"
96+ id="stop11006" />
97+ </linearGradient>
98+ <linearGradient
99+ id="linearGradient7492">
100+ <stop
101+ style="stop-color:#a40000;stop-opacity:1;"
102+ offset="0"
103+ id="stop7494" />
104+ <stop
105+ style="stop-color:#cc0000;stop-opacity:0.74509805;"
106+ offset="1"
107+ id="stop7496" />
108+ </linearGradient>
109+ <linearGradient
110+ id="linearGradient7484">
111+ <stop
112+ style="stop-color:#cc0000;stop-opacity:1;"
113+ offset="0"
114+ id="stop7486" />
115+ <stop
116+ style="stop-color:#cc0000;stop-opacity:1;"
117+ offset="1"
118+ id="stop7488" />
119+ </linearGradient>
120+ <linearGradient
121+ inkscape:collect="always"
122+ id="linearGradient5722">
123+ <stop
124+ style="stop-color:#729fcf;stop-opacity:1;"
125+ offset="0"
126+ id="stop5724" />
127+ <stop
128+ style="stop-color:#729fcf;stop-opacity:0;"
129+ offset="1"
130+ id="stop5726" />
131+ </linearGradient>
132+ <linearGradient
133+ id="linearGradient3077">
134+ <stop
135+ style="stop-color:#3465a4;stop-opacity:1;"
136+ offset="0"
137+ id="stop3079" />
138+ <stop
139+ style="stop-color:#3465a4;stop-opacity:0;"
140+ offset="1"
141+ id="stop3081" />
142+ </linearGradient>
143+ <linearGradient
144+ inkscape:collect="always"
145+ xlink:href="#linearGradient5722"
146+ id="linearGradient5728"
147+ x1="45"
148+ y1="34.184055"
149+ x2="7.8263865"
150+ y2="5.1271901"
151+ gradientUnits="userSpaceOnUse"
152+ gradientTransform="matrix(1,0,0,0.963894,0,1.234246)" />
153+ <linearGradient
154+ inkscape:collect="always"
155+ xlink:href="#linearGradient7492"
156+ id="linearGradient7498"
157+ x1="45.402073"
158+ y1="32.607113"
159+ x2="8.1801958"
160+ y2="7"
161+ gradientUnits="userSpaceOnUse"
162+ gradientTransform="matrix(0.92971,0,0,1,2.031898,1)" />
163+ <linearGradient
164+ inkscape:collect="always"
165+ xlink:href="#linearGradient11002"
166+ id="linearGradient12780"
167+ gradientUnits="userSpaceOnUse"
168+ gradientTransform="matrix(1,0,0,0.800658,-1.049033e-8,7.880118)"
169+ x1="3.6162441"
170+ y1="43.778091"
171+ x2="43.494923"
172+ y2="35.142323" />
173+ <linearGradient
174+ inkscape:collect="always"
175+ xlink:href="#linearGradient15424"
176+ id="linearGradient15430"
177+ x1="42.706234"
178+ y1="32.362251"
179+ x2="3.0072398"
180+ y2="2.8657963"
181+ gradientUnits="userSpaceOnUse" />
182+ <linearGradient
183+ inkscape:collect="always"
184+ xlink:href="#linearGradient11002"
185+ id="linearGradient15455"
186+ gradientUnits="userSpaceOnUse"
187+ gradientTransform="matrix(1,0,0,0.800658,-1.049033e-8,7.880118)"
188+ x1="3.6162441"
189+ y1="43.778091"
190+ x2="43.494923"
191+ y2="35.142323" />
192+ <linearGradient
193+ inkscape:collect="always"
194+ xlink:href="#linearGradient15424"
195+ id="linearGradient15457"
196+ gradientUnits="userSpaceOnUse"
197+ x1="42.706234"
198+ y1="32.362251"
199+ x2="3.0072398"
200+ y2="2.8657963" />
201+ <linearGradient
202+ inkscape:collect="always"
203+ xlink:href="#linearGradient5722"
204+ id="linearGradient15459"
205+ gradientUnits="userSpaceOnUse"
206+ gradientTransform="matrix(1,0,0,0.963894,3.261281e-16,1.234246)"
207+ x1="45"
208+ y1="34.184055"
209+ x2="7.8263865"
210+ y2="5.1271901" />
211+ <linearGradient
212+ inkscape:collect="always"
213+ xlink:href="#linearGradient7492"
214+ id="linearGradient15461"
215+ gradientUnits="userSpaceOnUse"
216+ gradientTransform="matrix(0.92971,0,0,1,2.031898,1)"
217+ x1="45.402073"
218+ y1="32.607113"
219+ x2="8.1801958"
220+ y2="7" />
221+ </defs>
222+ <sodipodi:namedview
223+ id="base"
224+ pagecolor="#ffffff"
225+ bordercolor="#666666"
226+ borderopacity="1.0"
227+ inkscape:pageopacity="0.0"
228+ inkscape:pageshadow="2"
229+ inkscape:zoom="9.8994949"
230+ inkscape:cx="24.295867"
231+ inkscape:cy="23.945596"
232+ inkscape:current-layer="layer5"
233+ showgrid="true"
234+ inkscape:grid-bbox="true"
235+ inkscape:document-units="px"
236+ fill="#d3d7cf"
237+ inkscape:window-width="1014"
238+ inkscape:window-height="668"
239+ inkscape:window-x="0"
240+ inkscape:window-y="25" />
241+ <metadata
242+ id="metadata1312">
243+ <rdf:RDF>
244+ <cc:Work
245+ rdf:about="">
246+ <dc:format>image/svg+xml</dc:format>
247+ <dc:type
248+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
249+ </cc:Work>
250+ </rdf:RDF>
251+ </metadata>
252+ <g
253+ id="layer1"
254+ inkscape:label="back-cover"
255+ inkscape:groupmode="layer"
256+ style="display:inline" />
257+ <g
258+ inkscape:groupmode="layer"
259+ id="layer6"
260+ inkscape:label="pages" />
261+ <g
262+ inkscape:groupmode="layer"
263+ id="layer7"
264+ inkscape:label="spine" />
265+ <g
266+ inkscape:groupmode="layer"
267+ id="layer2"
268+ inkscape:label="front-cover"
269+ style="display:inline" />
270+ <g
271+ inkscape:groupmode="layer"
272+ id="layer8"
273+ inkscape:label="highlight"
274+ style="display:inline" />
275+ <g
276+ inkscape:groupmode="layer"
277+ id="layer3"
278+ inkscape:label="glow"
279+ style="display:inline" />
280+ <g
281+ inkscape:groupmode="layer"
282+ id="layer4"
283+ inkscape:label="title-1"
284+ style="display:inline" />
285+ <g
286+ inkscape:groupmode="layer"
287+ id="layer5"
288+ inkscape:label="title-2"
289+ style="display:inline">
290+ <g
291+ id="g15442"
292+ transform="matrix(0.931943,0,0,0.949698,2.176413,0.278207)">
293+ <path
294+ sodipodi:nodetypes="ccccccccc"
295+ id="rect1315"
296+ d="M 7.8124859,4.4639581 L 40.133422,4.4639581 C 40.500078,4.4639581 40.795256,4.7537407 40.795256,5.113695 L 45.428097,43.832455 C 45.428097,44.192408 45.13292,44.482191 44.766264,44.482191 L 3.1796434,44.482191 C 2.8129871,44.482191 2.5178087,44.192408 2.5178087,43.832455 L 7.1506509,5.113695 C 7.1506509,4.7537407 7.4458289,4.4639581 7.8124859,4.4639581 z "
297+ style="fill:#204a87;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.03561747;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;display:inline" />
298+ <path
299+ sodipodi:nodetypes="ccccccssc"
300+ id="rect7505"
301+ d="M 3.1303047,34.301823 L 43.422336,34.301823 C 43.742362,34.301823 44,34.505877 44,34.759343 L 44,42.65154 C 44,42.905005 43.641347,43.614135 43.321321,43.614135 L 3.0292894,43.715151 C 2.7092638,43.715151 2.1246122,43.8866 1.9465496,42.5723 C 1.5635805,39.745563 1.1606217,37.880413 2.1485801,34.860358 C 2.580254,33.54079 2.8102791,34.301823 3.1303047,34.301823 z "
302+ style="fill:url(#linearGradient15455);fill-opacity:1;fill-rule:evenodd;stroke:#babdb6;stroke-width:0.73400003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
303+ <path
304+ sodipodi:nodetypes="czzcc"
305+ id="path8381"
306+ d="M 2.5,34.5 C 2.5,34.5 1.75,35.712694 1.5,37.429953 C 1.25,39.147212 1.25,39.869037 1.5,41.369037 C 1.75,42.869037 2.5,43.935029 2.5,43.935029 L 2.8030458,44.440105"
307+ style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
308+ <path
309+ sodipodi:nodetypes="czzcc"
310+ id="path11030"
311+ d="M 7.4707316,4.5027374 C 7.4707316,4.5027374 6.5990531,5.7220707 6.3084936,7.4487313 C 6.0179341,9.175392 6.0179341,9.9011689 6.3084936,11.409381 C 6.5990531,12.917593 7.4707316,13.989421 7.4707316,13.989421 L 7.822942,14.497263"
312+ style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1.08101857;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
313+ <path
314+ id="path11032"
315+ d="M 1.5,37.5 L 6.3529412,6.6997504 L 6.3529412,7.1285302 L 6.3529412,7.1285302"
316+ style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
317+ <path
318+ sodipodi:nodetypes="ccccccccc"
319+ id="path2195"
320+ d="M 7.7443838,4.4497066 L 40.065319,4.4497066 C 40.431975,4.4497066 40.727153,4.6682776 40.727153,4.9397756 L 45.359994,34.143693 C 45.359994,34.41519 45.064817,34.633762 44.698161,34.633762 L 3.1115412,34.633762 C 2.744885,34.633762 2.4497066,34.41519 2.4497066,34.143693 L 7.0825488,4.9397756 C 7.0825488,4.6682776 7.3777268,4.4497066 7.7443838,4.4497066 z "
321+ style="fill:#3465a4;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.89941311;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;display:inline" />
322+ <path
323+ sodipodi:nodetypes="ccccccccc"
324+ id="path12801"
325+ d="M 7.7443838,4.3662384 L 40.065319,4.3662384 C 40.431975,4.3662384 40.727153,4.5848094 40.727153,4.8563074 L 45.359994,34.060224 C 45.359994,34.331721 45.064817,34.550293 44.698161,34.550293 L 3.1115412,34.550293 C 2.744885,34.550293 2.4497066,34.331721 2.4497066,34.060224 L 7.0825488,4.8563074 C 7.0825488,4.5848094 7.3777268,4.3662384 7.7443838,4.3662384 z "
326+ style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#729fcf;stroke-width:0.89941311;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0;display:inline" />
327+ <path
328+ sodipodi:nodetypes="ccccccccc"
329+ id="path13676"
330+ d="M 8.5112104,5.4251519 L 39.492597,5.4251519 C 39.844057,5.4251519 40.127001,5.6323999 40.127001,5.8898331 L 44.567833,33.580854 C 44.567833,33.838287 44.284889,34.045536 43.93343,34.045536 L 4.0703777,34.045536 C 3.7189179,34.045536 3.4359725,33.838287 3.4359725,33.580854 L 7.8768053,5.8898331 C 7.8768053,5.6323999 8.1597495,5.4251519 8.5112104,5.4251519 z "
331+ style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient15457);stroke-width:0.85746539;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.74509804;display:inline" />
332+ <path
333+ sodipodi:nodetypes="czcccccccc"
334+ id="path3092"
335+ d="M 5.2529148,23.677326 C 5.2529148,23.677326 12.909199,18.7359 24.000001,18.61419 C 34.989788,18.49248 40.827798,14.135261 40.827798,14.135261 C 41.186676,14.135261 41.778638,13.953136 41.778638,14.206161 L 45,33.72733 C 45,33.980354 44.711085,34.184055 44.352207,34.184055 L 3.647794,34.184055 C 3.2889162,34.184055 3,33.980354 3,33.72733 L 4.6051198,24.134051 C 4.6051198,23.881026 4.8940359,23.677326 5.2529148,23.677326 z "
336+ style="fill:url(#linearGradient15459);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.89941311;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;display:inline" />
337+ <path
338+ sodipodi:nodetypes="ccccc"
339+ id="path7500"
340+ d="M 9.3745694,7.0981816 C 9.3745694,7.0981816 32.719444,7 39.12471,7 L 40,13.901819 L 8.5050763,14 L 9.3745694,7.0981816 z "
341+ style="fill:#d3d7cf;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;display:inline" />
342+ <path
343+ sodipodi:nodetypes="ccccc"
344+ id="path6609"
345+ d="M 9.5794982,8 C 9.5794982,8 32.641961,8 38.919858,8 L 39.595939,13 L 9,13 L 9.5794982,8 z "
346+ style="fill:url(#linearGradient15461);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;display:inline" />
347+ </g>
348+ </g>
349+</svg>
350
351=== added file 'wikipedia/data/Makefile.am'
352--- wikipedia/data/Makefile.am 1970-01-01 00:00:00 +0000
353+++ wikipedia/data/Makefile.am 2010-01-02 11:50:25 +0000
354@@ -0,0 +1,15 @@
355+
356+SUBDIRS = .
357+
358+moduledir = $(wikipediadatadir)
359+
360+module_DATA = \
361+ wikipedia.conf\
362+ preview.jpg\
363+ langues.dat\
364+ loading.html\
365+ loading.gif\
366+ Gnome-dictionary.svg\
367+ icon.png
368+
369+EXTRA_DIST = $(module_DATA)
370
371=== added file 'wikipedia/data/icon.png'
372Binary files wikipedia/data/icon.png 1970-01-01 00:00:00 +0000 and wikipedia/data/icon.png 2010-01-02 11:50:25 +0000 differ
373=== added file 'wikipedia/data/icone_dictionnaire1.gif'
374Binary files wikipedia/data/icone_dictionnaire1.gif 1970-01-01 00:00:00 +0000 and wikipedia/data/icone_dictionnaire1.gif 2010-01-02 11:50:25 +0000 differ
375=== added file 'wikipedia/data/langues.dat'
376--- wikipedia/data/langues.dat 1970-01-01 00:00:00 +0000
377+++ wikipedia/data/langues.dat 2010-01-02 11:50:25 +0000
378@@ -0,0 +1,267 @@
379+0,Acèh,ace,ace,ace,ace,ace,ace,ace,,
380+1,Afrikaans,af,af,af,af,af,af,af,,
381+0,Akan,ak,ak,ak,ak,ak,ak,ak,,
382+0,Alemannisch,als,als,als,als,als,als,als,,
383+0,Anglo-Saxon,ang,ang,ang,ang,ang,ang,ang,,
384+0,Aragonés,an,an,an,an,an,an,an,,
385+0,Armãneashce,roa-rup,roa-rup,roa-rup,roa-rup,roa-rup,roa-rup,roa-rup,,
386+0,Arpetan,frp,frp,frp,frp,frp,frp,frp,,
387+0,Asturianu,ast,ast,ast,ast,ast,ast,ast,,
388+0,Avañe'ẽ,gn,gn,gn,gn,gn,gn,gn,,
389+0,Aymar,aru,ay,ay,ay,ay,ay,ay,ay,
390+0,Azərbaycan,az,az,az,az,az,az,az,,
391+1,Bahasa,Indonesia,id,id,id,id,id,id,id,
392+1,Bahasa,Melayu,ms,ms,ms,ms,ms,ms,ms,
393+0,Bamanankan,bm,bm,bm,bm,bm,bm,bm,,
394+0,Bân-lâm-gú,nan,nan,nan,nan,nan,nan,nan,,
395+0,Bân-lâm-gú,zh-min-nan,zh-min-nan,zh-min-nan,zh-min-nan,zh-min-nan,zh-min-nan,zh-min-nan,,
396+0,Basa,Jawa,jv,jv,jv,jv,jv,jv,jv,
397+0,Basa,Banyumasan,map-bms,map-bms,map-bms,map-bms,map-bms,map-bms,map-bms,
398+0,Basa,Sunda,su,su,su,su,su,su,su,
399+Bikol,Central,bcl,bcl,bcl,bcl,bcl,bcl,bcl,
400+0,Bislama,bi,bi,bi,bi,bi,bi,bi,,
401+0,Boarisch,bar,bar,bar,bar,bar,bar,bar,,
402+0,Bosanski,bs,bs,bs,bs,bs,bs,bs,,
403+0,Brezhoneg,br,br,br,br,br,br,br,,
404+1,Català,ca,ca,ca,ca,ca,ca,ca,,
405+0,Cebuano,ceb,ceb,ceb,ceb,ceb,ceb,ceb,,
406+1,Česky,cs,cs,cs,cs,cs,cs,cs,,
407+0,Chamoru,ch,ch,ch,ch,ch,ch,ch,,
408+0,Chavacano,de,Zamboanga,cbk-zam,cbk-zam,cbk-zam,cbk-zam,cbk-zam,cbk-zam,cbk-zam
409+0,Chi-Chewa,ny,ny,ny,ny,ny,ny,ny,,
410+0,chiShona,sn,sn,sn,sn,sn,sn,sn,,
411+0,chiTumbuka,tum,tum,tum,tum,tum,tum,tum,,
412+0,Choctaw,cho,cho,cho,cho,cho,cho,cho,,
413+0,Corsu,co,co,co,co,co,co,co,,
414+1,Cymraeg,cy,cy,cy,cy,cy,cy,cy,,
415+0,cz,cz,cz,cz,cz,cz,cz,,,
416+1,Dansk,da,da,da,da,da,da,da,,
417+0,Deitsch,pdc,pdc,pdc,pdc,pdc,pdc,pdc,,
418+1,Deutsch,de,de,de,de,de,de,de,,
419+0,Diné,bizaad,nv,nv,nv,nv,nv,nv,nv,
420+0,Dolnoserbski,dsb,dsb,dsb,dsb,dsb,dsb,dsb,,
421+0,Dorerin,Naoero,na,na,na,na,na,na,na,
422+0,Ebon,mh,mh,mh,mh,mh,mh,mh,,
423+1,Eesti,et,et,et,et,et,et,et,,
424+0,Emiliàn,eml,rumagnòl,eml,eml,eml,eml,eml,eml,eml
425+1,English,en,en,en,en,en,en,en,,
426+0,epo,epo,epo,epo,epo,epo,epo,,,
427+1,Español,es,es,es,es,es,es,es,,
428+0,Esperanto,eo,eo,eo,eo,eo,eo,eo,,
429+0,Estremeñu,ext,ext,ext,ext,ext,ext,ext,,
430+0,Euskara,eu,eu,eu,eu,eu,eu,eu,,
431+0,Eʋegbe,ee,ee,ee,ee,ee,ee,ee,,
432+0,Fiji,Hindi,hif,hif,hif,hif,hif,hif,hif,
433+0,Føroyskt,fo,fo,fo,fo,fo,fo,fo,,
434+1,Français,fr,fr,fr,fr,fr,fr,fr,,
435+0,Frysk,fy,fy,fy,fy,fy,fy,fy,,
436+0,Fulfulde,ff,ff,ff,ff,ff,ff,ff,,
437+0,Furlan,fur,fur,fur,fur,fur,fur,fur,,
438+1,Gaeilge,ga,ga,ga,ga,ga,ga,ga,,
439+0,Gaelg,gv,gv,gv,gv,gv,gv,gv,,
440+0,Gagana,Samoa,sm,sm,sm,sm,sm,sm,sm,
441+0,Gàidhlig,gd,gd,gd,gd,gd,gd,gd,,
442+1,Galego,gl,gl,gl,gl,gl,gl,gl,,
443+0,Gĩkũyũ,ki,ki,ki,ki,ki,ki,ki,,
444+0,Hak-kâ-fa,hak,hak,hak,hak,hak,hak,hak,,
445+0,Hawai`i,haw,haw,haw,haw,haw,haw,haw,,
446+0,Hiri,Motu,ho,ho,ho,ho,ho,ho,ho,
447+0,Hornjoserbsce,hsb,hsb,hsb,hsb,hsb,hsb,hsb,,
448+1,Hrvatski,hr,hr,hr,hr,hr,hr,hr,,
449+0,Ido,io,io,io,io,io,io,io,,
450+0,Igbo,ig,ig,ig,ig,ig,ig,ig,,
451+0,Ilokano,ilo,ilo,ilo,ilo,ilo,ilo,ilo,,
452+0,Interlingua,ia,ia,ia,ia,ia,ia,ia,,
453+0,Interlingue,ie,ie,ie,ie,ie,ie,ie,,
454+0,Iñupiak,ik,ik,ik,ik,ik,ik,ik,,
455+0,isiXhosa,xh,xh,xh,xh,xh,xh,xh,,
456+0,isiZulu,zu,zu,zu,zu,zu,zu,zu,,
457+1,Íslenska,is,is,is,is,is,is,is,,
458+1,Italiano,it,it,it,it,it,it,it,,
459+0,jp,jp,jp,jp,jp,jp,jp,,,
460+0,Kalaallisut,kl,kl,kl,kl,kl,kl,kl,,
461+0,Kanuri,kr,kr,kr,kr,kr,kr,kr,,
462+0,Kapampangan,pam,pam,pam,pam,pam,pam,pam,,
463+0,Kaszëbsczi,csb,csb,csb,csb,csb,csb,csb,,
464+0,Kernowek,kw,kw,kw,kw,kw,kw,kw,,
465+0,Kinyarwanda,rw,rw,rw,rw,rw,rw,rw,,
466+0,Kirundi,rn,rn,rn,rn,rn,rn,rn,,
467+1,Kiswahili,sw,sw,sw,sw,sw,sw,sw,,
468+0,Kongo,kg,kg,kg,kg,kg,kg,kg,,
469+0,Kreyòl,ayisyen,ht,ht,ht,ht,ht,ht,ht,
470+0,Kurdî,ku,كوردی,ku,ku,ku,ku,ku,ku,ku
471+0,Kwanyama,kj,kj,kj,kj,kj,kj,kj,,
472+0,Ladino,lad,lad,lad,lad,lad,lad,lad,,
473+0,Latina,la,la,la,la,la,la,la,,
474+1,Latviešu,lv,lv,lv,lv,lv,lv,lv,,
475+0,lea,faka-Tonga,to,to,to,to,to,to,to,
476+0,Lëtzebuergesch,lb,lb,lb,lb,lb,lb,lb,,
477+1,Lietuvių,lt,lt,lt,lt,lt,lt,lt,,
478+0,Líguru,lij,lij,lij,lij,lij,lij,lij,,
479+0,Limburgs,li,li,li,li,li,li,li,,
480+0,Lingála,ln,ln,ln,ln,ln,ln,ln,,
481+0,Lojban,jbo,jbo,jbo,jbo,jbo,jbo,jbo,,
482+0,Luganda,lg,lg,lg,lg,lg,lg,lg,,
483+0,Lumbaart,lmo,lmo,lmo,lmo,lmo,lmo,lmo,,
484+1,Magyar,hu,hu,hu,hu,hu,hu,hu,,
485+0,Malagasy,mg,mg,mg,mg,mg,mg,mg,,
486+1,Malti,mt,mt,mt,mt,mt,mt,mt,,
487+0,Māori,mi,mi,mi,mi,mi,mi,mi,,
488+0,Mìng-dĕ̤ng-ngṳ̄,cdo,cdo,cdo,cdo,cdo,cdo,cdo,,
489+0,minnan,minnan,minnan,minnan,minnan,minnan,minnan,,,
490+0,Mirandés,mwl,mwl,mwl,mwl,mwl,mwl,mwl,,
491+0,Mvskoke,mus,mus,mus,mus,mus,mus,mus,,
492+0,Na,Vosa,Vakaviti,fj,fj,fj,fj,fj,fj,fj
493+0,Nāhuatl,nah,nah,nah,nah,nah,nah,nah,,
494+1,Nederlands,nl,nl,nl,nl,nl,nl,nl,,
495+0,Nedersaksisch,nds-nl,nds-nl,nds-nl,nds-nl,nds-nl,nds-nl,nds-nl,,
496+0,Nnapulitano,nap,nap,nap,nap,nap,nap,nap,,
497+0,nomcom,nomcom,nomcom,nomcom,nomcom,nomcom,nomcom,,,
498+0,‪Norsk,(bokmål)‬,nb,nb,nb,nb,nb,nb,nb,
499+0,‪Norsk,(nynorsk)‬,nn,nn,nn,nn,nn,nn,nn,
500+‪1,Norsk,(bokmål)‬,no,no,no,no,no,no,no,
501+0,Nouormand,nrm,nrm,nrm,nrm,nrm,nrm,nrm,,
502+0,Novial,nov,nov,nov,nov,nov,nov,nov,,
503+0,O'zbek,uz,uz,uz,uz,uz,uz,uz,,
504+0,Occitan,oc,oc,oc,oc,oc,oc,oc,,
505+0,Oromoo,om,om,om,om,om,om,om,,
506+0,Oshiwambo,ng,ng,ng,ng,ng,ng,ng,,
507+0,Otsiherero,hz,hz,hz,hz,hz,hz,hz,,
508+0,Pangasinan,pag,pag,pag,pag,pag,pag,pag,,
509+0,Papiamentu,pap,pap,pap,pap,pap,pap,pap,,
510+0,Piemontèis,pms,pms,pms,pms,pms,pms,pms,,
511+0,Plattdüütsch,nds,nds,nds,nds,nds,nds,nds,,
512+1,Polski,pl,pl,pl,pl,pl,pl,pl,,
513+1,Português,pt,pt,pt,pt,pt,pt,pt,,
514+0,Qafár,af,aa,aa,aa,aa,aa,aa,aa,
515+0,Qaraqalpaqsha,kaa,kaa,kaa,kaa,kaa,kaa,kaa,,
516+0,Qırımtatarca,crh,crh,crh,crh,crh,crh,crh,,
517+0,Reo,Mā`ohi,ty,ty,ty,ty,ty,ty,ty,
518+0,Ripoarisch,ksh,ksh,ksh,ksh,ksh,ksh,ksh,,
519+1,Română,ro,ro,ro,ro,ro,ro,ro,,
520+0,Romani,rmy,rmy,rmy,rmy,rmy,rmy,rmy,,
521+0,Rumantsch,rm,rm,rm,rm,rm,rm,rm,,
522+0,Runa,Simi,qu,qu,qu,qu,qu,qu,qu,
523+0,Sámegiella,se,se,se,se,se,se,se,,
524+0,Sängö,sg,sg,sg,sg,sg,sg,sg,,
525+0,Sardu,sc,sc,sc,sc,sc,sc,sc,,
526+0,Scots,sco,sco,sco,sco,sco,sco,sco,,
527+0,Seeltersk,stq,stq,stq,stq,stq,stq,stq,,
528+0,Sesotho,st,st,st,st,st,st,st,,
529+0,Setswana,tn,tn,tn,tn,tn,tn,tn,,
530+1,Shqip,sq,sq,sq,sq,sq,sq,sq,,
531+0,Sicilianu,scn,scn,scn,scn,scn,scn,scn,,
532+0,Simple,English,simple,simple,simple,simple,simple,simple,simple,
533+0,SiSwati,ss,ss,ss,ss,ss,ss,ss,,
534+1,Slovenčina,sk,sk,sk,sk,sk,sk,sk,,
535+1,Slovenščina,sl,sl,sl,sl,sl,sl,sl,,
536+0,Ślůnski,szl,szl,szl,szl,szl,szl,szl,,
537+0,Soomaaliga,so,so,so,so,so,so,so,,
538+0,Sranantongo,srn,srn,srn,srn,srn,srn,srn,,
539+1,Suomi,fi,fi,fi,fi,fi,fi,fi,,
540+1,Svenska,sv,sv,sv,sv,sv,sv,sv,,
541+0,Tagalog,tl,tl,tl,tl,tl,tl,tl,,
542+0,Taqbaylit,kab,kab,kab,kab,kab,kab,kab,,
543+0,Tarandíne,roa-tara,roa-tara,roa-tara,roa-tara,roa-tara,roa-tara,roa-tara,,
544+0,Tetun,tet,tet,tet,tet,tet,tet,tet,,
545+1,Tiếng,Việt,vi,vi,vi,vi,vi,vi,vi,
546+0,Tok,Pisin,tpi,tpi,tpi,tpi,tpi,tpi,tpi,
547+0,Toki,Pona,tokipona,tokipona,tokipona,tokipona,tokipona,tokipona,tokipona,
548+0,Toki,Pona,(deprecated:tokipona),tp,tp,tp,tp,tp,tp,tp
549+0,Tsetsêhestâhese,chy,chy,chy,chy,chy,chy,chy,,
550+0,Tshivenda,ve,ve,ve,ve,ve,ve,ve,,
551+1,Türkçe,tr,tr,tr,tr,tr,tr,tr,,
552+0,Türkmençe,tk,tk,tk,tk,tk,tk,tk,,
553+0,Twi,tw,tw,tw,tw,tw,tw,tw,,
554+0,Vahcuengh,za,za,za,za,za,za,za,,
555+0,Vèneto,vec,vec,vec,vec,vec,vec,vec,,
556+0,Volapük,vo,vo,vo,vo,vo,vo,vo,,
557+0,Võro,fiu-vro,fiu-vro,fiu-vro,fiu-vro,fiu-vro,fiu-vro,fiu-vro,,
558+0,Walon,wa,wa,wa,wa,wa,wa,wa,,
559+0,West-Vlams,vls,vls,vls,vls,vls,vls,vls,,
560+0,Winaray,war,war,war,war,war,war,war,,
561+0,Wolof,wo,wo,wo,wo,wo,wo,wo,,
562+0,Xitsonga,ts,ts,ts,ts,ts,ts,ts,,
563+0,Yorùbá,yo,yo,yo,yo,yo,yo,yo,,
564+0,Zazaki,diq,diq,diq,diq,diq,diq,diq,,
565+0,Zeêuws,zea,zea,zea,zea,zea,zea,zea,,
566+0,Žemaitėška,bat-smg,bat-smg,bat-smg,bat-smg,bat-smg,bat-smg,bat-smg,,
567+0,zh-cfr,zh-cfr,zh-cfr,zh-cfr,zh-cfr,zh-cfr,zh-cfr,,,
568+1,Ελληνικά,el,el,el,el,el,el,el,,
569+0,Ποντιακά,pnt,pnt,pnt,pnt,pnt,pnt,pnt,,
570+0,Авар,av,av,av,av,av,av,av,,
571+0,Аҧсуа,ab,ab,ab,ab,ab,ab,ab,,
572+0,Башҡорт,ba,ba,ba,ba,ba,ba,ba,,
573+1,Беларуская,be,be,be,be,be,be,be,,
574+0,Буряад,bxr,bxr,bxr,bxr,bxr,bxr,bxr,,
575+1,Български,bg,bg,bg,bg,bg,bg,bg,,
576+0,Иронау,os,os,os,os,os,os,os,,
577+0,Коми,kv,kv,kv,kv,kv,kv,kv,,
578+0,Кыргызча,ky,ky,ky,ky,ky,ky,ky,,
579+0,Қазақша,kk,kk,kk,kk,kk,kk,kk,,
580+0,Лакку,lbe,lbe,lbe,lbe,lbe,lbe,lbe,,
581+1,Македонски,mk,mk,mk,mk,mk,mk,mk,,
582+0,Мокшень,mdf,mdf,mdf,mdf,mdf,mdf,mdf,,
583+0,Молдовеняскэ,mo,mo,mo,mo,mo,mo,mo,,
584+0,Монгол,mn,mn,mn,mn,mn,mn,mn,,
585+0,Нохчийн,ce,ce,ce,ce,ce,ce,ce,,
586+0,Олык,Марий,mhr,mhr,mhr,mhr,mhr,mhr,mhr,
587+1,Русский,ru,ru,ru,ru,ru,ru,ru,,
588+0,Саха,тыла,sah,sah,sah,sah,sah,sah,sah,
589+0,Словѣ́ньскъ,cu,cu,cu,cu,cu,cu,cu,,
590+1,Српски,sr,Srpski,sr,sr,sr,sr,sr,sr,sr
591+0,Татарча/Tatarça,tt,tt,tt,tt,tt,tt,tt,,
592+0,Тоҷикӣ,tg,tg,tg,tg,tg,tg,tg,,
593+0,Удмурт,udm,udm,udm,udm,udm,udm,udm,,
594+1,Українська,uk,uk,uk,uk,uk,uk,uk,,
595+0,Хальмг,xal,xal,xal,xal,xal,xal,xal,,
596+0,Чӑвашла,cv,cv,cv,cv,cv,cv,cv,,
597+0,Эрзянь,myv,myv,myv,myv,myv,myv,myv,,
598+0,ქართული,ka,ka,ka,ka,ka,ka,ka,,
599+0,Հայերեն,hy,hy,hy,hy,hy,hy,hy,,
600+1,ייִדיש,yi,yi,yi,yi,yi,yi,yi,,
601+1,עברית,he,he,he,he,he,he,he,,
602+0,اردو,ur,ur,ur,ur,ur,ur,ur,,
603+1,العربية,ar,ar,ar,ar,ar,ar,ar,,
604+0,پښتو,ps,ps,ps,ps,ps,ps,ps,,
605+0,پنجابی,pnb,pnb,pnb,pnb,pnb,pnb,pnb,,
606+0,سنڌي,sd,sd,sd,sd,sd,sd,sd,,
607+1,فارسی,fa,fa,fa,fa,fa,fa,fa,,
608+0,گیلکی,glk,glk,glk,glk,glk,glk,glk,,
609+0,مَزِروني,mzn,mzn,mzn,mzn,mzn,mzn,mzn,,
610+0,مصرى,arz,arz,arz,arz,arz,arz,arz,,
611+0,هَوُسَ,ha,ha,ha,ha,ha,ha,ha,,
612+0,ܐܪܡܝܐ,arc,arc,arc,arc,arc,arc,arc,,
613+0,ދިވެހިބަސް,dv,dv,dv,dv,dv,dv,dv,,
614+1,ትግርኛ,ti,ti,ti,ti,ti,ti,ti,,
615+0,አማርኛ,am,am,am,am,am,am,am,,
616+0,कश्मीरी,ks,ks,ks,ks,ks,ks,ks,,
617+0,नेपाल,भाषा,new,new,new,new,new,new,new,
618+0,नेपाली,ne,ne,ne,ne,ne,ne,ne,,
619+0,पािऴ,pi,pi,pi,pi,pi,pi,pi,,
620+0,भोजपुरी,bh,bh,bh,bh,bh,bh,bh,,
621+0,मराठी,mr,mr,mr,mr,mr,mr,mr,,
622+0,संस्कृत,sa,sa,sa,sa,sa,sa,sa,,
623+1,हिन्दी,hi,hi,hi,hi,hi,hi,hi,,
624+0,অসমীয়া,as,as,as,as,as,as,as,,
625+0,ইমার,bpy,bpy,bpy,bpy,bpy,bpy,bpy,,
626+0,বাংলা,bn,bn,bn,bn,bn,bn,bn,,
627+0,ਪੰਜਾਬੀ,pa,pa,pa,pa,pa,pa,pa,,
628+0,ગુજરાતી,gu,gu,gu,gu,gu,gu,gu,,
629+0,ଓଡ଼ିଆ,or,or,or,or,or,or,or,,
630+0,தமிழ்,ta,ta,ta,ta,ta,ta,ta,,
631+0,తెలుగు,te,te,te,te,te,te,te,,
632+0,ಕನ್ನಡ,kn,kn,kn,kn,kn,kn,kn,,
633+0,മലയാളം,ml,ml,ml,ml,ml,ml,ml,,
634+0,සිංහල,si,si,si,si,si,si,si,,
635+1,ไทย,th,th,th,th,th,th,th,,
636+0,ລາວ,lo,lo,lo,lo,lo,lo,lo,,
637+0,ᏣᎳᎩ,chr,chr,chr,chr,chr,chr,chr,,
638+0,ᐃᓄᒃᑎᑐᑦ/inuktitut,iu,iu,iu,iu,iu,iu,iu,,
639+1,한국어,ko,ko,ko,ko,ko,ko,ko,,
640+0,𐌲𐌿𐍄𐌹𐍃𐌺,got,got,got,got,got,got,got,,
641+1,中文,zh,zh,zh,zh,zh,zh,zh,,
642+0,吴语,wuu,wuu,wuu,wuu,wuu,wuu,wuu,,
643+1,日本語,ja,ja,ja,ja,ja,ja,ja,,
644+0,粵語,zh-yue,zh-yue,zh-yue,zh-yue,zh-yue,zh-yue,zh-yue,,
645+0,贛語,gan,gan,gan,gan,gan,gan,gan,,
646
647=== added file 'wikipedia/data/loading.gif'
648Binary files wikipedia/data/loading.gif 1970-01-01 00:00:00 +0000 and wikipedia/data/loading.gif 2010-01-02 11:50:25 +0000 differ
649=== added file 'wikipedia/data/loading.html'
650--- wikipedia/data/loading.html 1970-01-01 00:00:00 +0000
651+++ wikipedia/data/loading.html 2010-01-02 11:50:25 +0000
652@@ -0,0 +1,2 @@
653+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
654+<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Loading .....</title></head><body><img style="width: 204px; height: 204px;" alt="" src="loading.gif"></body></html>
655
656=== added file 'wikipedia/data/preview.jpg'
657Binary files wikipedia/data/preview.jpg 1970-01-01 00:00:00 +0000 and wikipedia/data/preview.jpg 2010-01-02 11:50:25 +0000 differ
658=== added file 'wikipedia/data/wikipedia.conf.in'
659--- wikipedia/data/wikipedia.conf.in 1970-01-01 00:00:00 +0000
660+++ wikipedia/data/wikipedia.conf.in 2010-01-02 11:50:25 +0000
661@@ -0,0 +1,140 @@
662+#!en;@VERSION_WIKIPEDIA@
663+
664+#[gtk-about]
665+[Icon]
666+
667+#j[0;128] Desired icon size for this applet
668+#{Set to 0 to use the default applet size}
669+icon size = 0;0
670+
671+#s Name of the icon as it will appear in its label in the dock :
672+name = wikipedia
673+
674+#S+ Image's filename :
675+#{Let empty to use the default one.}
676+icon =
677+
678+#d Name of the dock it belongs to:
679+dock name =
680+
681+order=
682+
683+#[gtk-convert]
684+[Desklet]
685+
686+#X[Position]
687+frame_pos =
688+
689+#b Lock position ?
690+#{If locked, the desklet can't be moved by simply dragging it with the left mouse button. Of course you can still move it with ALT + left_click.}
691+locked = false
692+
693+#j+[48;512] Desklet's dimension (width x height) :
694+#{Depending on your WindowManager, you can resize it with ALT + middle_click or ALT + left_click for exemple.}
695+size = 96;96
696+
697+#i[-2048;2048] Desklet's position (x ; y) :
698+#{Depending on your WindowManager, you can move it with ALT + left_click}
699+x position=0
700+#i[-2048;2048] ...
701+y position=0
702+
703+#I[-180;180] Rotation :
704+#{You can quickly rotate the desklet with the mouse, by dragging the little buttons on its left and top sides.}
705+rotation = 0
706+
707+#X[Visibility]
708+frame_visi =
709+
710+#b Is detached from the dock ?
711+initially detached=false
712+#l[Normal;Keep above;Keep below;On Widget Layer;Reserve space] Visibility :
713+#{for CompizFusion's "widget layer", set behaviour in Compiz to: (class=Cairo-dock & type=utility)}
714+accessibility=0
715+#b Should be visible on all desktops ?
716+sticky=true
717+
718+
719+
720+#use size=true
721+
722+#F[Decorations;gtk-orientation-portrait]
723+frame_deco=
724+
725+#o+ Choose a decoration theme for this desklet :
726+#{Choose 'Custom decorations' to define your own decorations below.}
727+decorations = default
728+
729+#v
730+sep_deco =
731+
732+#S+ Background image :
733+#{It's an image that will be displayed below the drawings, like a frame for exemple. Let empty to not use any.}
734+bg desklet =
735+#e+[0;1] Background tansparency :
736+bg alpha = 1
737+#i+[0;256] Left offset :
738+#{in pixels. Use this to adjust the left position of the drawings.}
739+left offset = 0
740+#i+[0;256] Top offset :
741+#{in pixels. Use this to adjust the top position of the drawings.}
742+top offset = 0
743+#i+[0;256] Right offset :
744+#{in pixels. Use this to adjust the right position of the drawings.}
745+right offset = 0
746+#i+[0;256] Bottom offset :
747+#{in pixels. Use this to adjust the bottom position of the drawings.}
748+bottom offset = 0
749+#S+ Foreground image :
750+#{It's an image that will be displayed above the drawings, like a reflect for exemple. Let empty to not use any.}
751+fg desklet =
752+#e+[0;1] Foreground tansparency :
753+fg alpha = 1
754+
755+
756+#[gtk-preferences]
757+[Configuration]
758+
759+#s specific browser :
760+#{If you use a specific browser}
761+specific_web_browser =
762+
763+#s langues_favorites
764+#{Sasir le code international des langues favorites séparés par des virgules}
765+langues_favorites=
766+
767+#s traduction : langue source par défaut :
768+#{Sasir le code international de la langue}
769+langue_src=
770+
771+#s traduction : langue destination par défaut :
772+#{Sasir le code international de la langue}
773+langue_dst=
774+
775+#b Ouverture du navigateur ?
776+#{Affichage dans un navigateur ou dans boite de dialogue}
777+open_browser = false
778+
779+#b Show scrollbars ?
780+show_scrollbars = true
781+
782+#i Position of horizontal scrollbar
783+#{Horizontal scroll of the browser in pixel}
784+scroll x = 0
785+#i Position of vertical scrollbar in pixel
786+#{Vertical scroll of the browser in pixel}
787+scroll y = 0
788+
789+#j+[100;2048] Desklet's dimension (width x height) :
790+#{Depending on your WindowManager, you can resize it with ALT + middle_click or ALT + left_click for exemple.}
791+size2 = 600;442
792+
793+#i[-2048;2048] Desklet's position (x ; y) :
794+#{Depending on your WindowManager, you can move it with ALT + left_click}
795+x position2=0
796+#i[-2048;2048] ...
797+y position2=0
798+
799+#k Shortkey to show/hide the sound control dialog :
800+shortkey = <Control>F9
801+
802
803=== added directory 'wikipedia/src'
804=== added file 'wikipedia/src/Makefile.am'
805--- wikipedia/src/Makefile.am 1970-01-01 00:00:00 +0000
806+++ wikipedia/src/Makefile.am 2010-01-02 11:50:25 +0000
807@@ -0,0 +1,43 @@
808+ #dnl Process this file with automake to produce Makefile.in
809+
810+lib_LTLIBRARIES = \
811+ libcd-wikipedia.la
812+
813+
814+libcd_wikipedia_la_SOURCES = \
815+ applet-init.c\
816+ applet-init.h\
817+ applet-config.c\
818+ applet-config.h\
819+ applet-notifications.c\
820+ applet-notifications.h\
821+ applet-wikipedia.c\
822+ applet-wikipedia.h\
823+ applet-struct.h
824+
825+
826+dock_version = `pkg-config --modversion cairo-dock`
827+
828+libcd_wikipedia_la_CFLAGS = \
829+ -I$(top_srcdir)/src\
830+ $(PACKAGE_CFLAGS) $(WEBKIT_CFLAGS)\
831+ -DMY_APPLET_SHARE_DATA_DIR=\""$(wikipediadatadir)"\"\
832+ -DMY_APPLET_PREVIEW_FILE=\""preview.jpg"\"\
833+ -DMY_APPLET_CONF_FILE=\""wikipedia.conf"\"\
834+ -DMY_APPLET_USER_DATA_DIR=\""wikipedia"\"\
835+ -DMY_APPLET_VERSION=\""$(VERSION_WIKIPEDIA)"\"\
836+ -DMY_APPLET_GETTEXT_DOMAIN=\""$(GETTEXT_WIKIPEDIA)"\"\
837+ -DMY_APPLET_DOCK_VERSION=\""$(dock_version)"\"\
838+ -DMY_APPLET_ICON_FILE=\""icon.png"\"\
839+ -std=c99\
840+ -Werror-implicit-function-declaration\
841+ -O3
842+# -g -ggdb -W -Wall
843+
844+
845+libcd_wikipedia_la_LIBADD = \
846+ $(PACKAGE_LIBS) $(WEBKIT_LIBS) -lm
847+
848+
849+libcd_wikipedia_la_LDFLAGS =\
850+ -avoid-version -module
851
852=== added file 'wikipedia/src/applet-config.c'
853--- wikipedia/src/applet-config.c 1970-01-01 00:00:00 +0000
854+++ wikipedia/src/applet-config.c 2010-01-02 11:50:25 +0000
855@@ -0,0 +1,91 @@
856+/**
857+* This file is a part of the Cairo-Dock project
858+*
859+* Copyright : (C) see the 'copyright' file.
860+* E-mail : see the 'copyright' file.
861+*
862+* This program is free software; you can redistribute it and/or
863+* modify it under the terms of the GNU General Public License
864+* as published by the Free Software Foundation; either version 3
865+* of the License, or (at your option) any later version.
866+*
867+* This program is distributed in the hope that it will be useful,
868+* but WITHOUT ANY WARRANTY; without even the implied warranty of
869+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
870+* GNU General Public License for more details.
871+* You should have received a copy of the GNU General Public License
872+* along with this program. If not, see <http://www.gnu.org/licenses/>.
873+*/
874+
875+//\________________ Add your name in the copyright file (and / or modify your name here)
876+
877+#include <string.h>
878+#include <cairo-dock.h>
879+
880+#include "applet-struct.h"
881+#include "applet-config.h"
882+#include "applet-wikipedia.h"
883+#include <gtk/gtk.h>
884+//\_________________ Here you have to get all your parameters from the conf file. Use the macros CD_CONFIG_GET_BOOLEAN, CD_CONFIG_GET_INTEGER, CD_CONFIG_GET_STRING, etc. myConfig has been reseted to 0 at this point. This function is called at the beginning of init and reload.
885+CD_APPLET_GET_CONFIG_BEGIN
886+ //printf("%s\n","++++++++config+++++++");
887+ gchar **langue_system;
888+
889+ myConfig.specific_web_browser = CD_CONFIG_GET_STRING ("Configuration", "specific_web_browser"); // si NULL, on ouvrira l'URL avec les fonctions du dock, xdg-open est loin d'etre installe partout.
890+ myConfig.langues_favorites = CD_CONFIG_GET_STRING ("Configuration", "langues_favorites");
891+
892+ if (myConfig.langues_favorites == NULL)//initialise les langues par défaut
893+ {
894+ const gchar* const * cMyLang = g_get_language_names (); //récupère le code langue
895+ myConfig.langues_favorites = strtok(cMyLang[1],"_");
896+ strcat(myConfig.langues_favorites,",ru,ar");
897+ cairo_dock_update_conf_file (CD_APPLET_MY_CONF_FILE,G_TYPE_STRING,"Configuration","langues_favorites",myConfig.langues_favorites,G_TYPE_INVALID);
898+ }
899+ myConfig.langue_src = CD_CONFIG_GET_STRING ("Configuration", "langue_src");
900+ if (myConfig.langue_src == NULL)//initialise la langue de traduction par défaut
901+ {
902+// myConfig.langue_src = langue_system;
903+ const gchar* const * cMyLang = g_get_language_names (); //récupère le code langue
904+ myConfig.langue_src = strtok(cMyLang[1],"_");
905+ cairo_dock_update_conf_file (CD_APPLET_MY_CONF_FILE,G_TYPE_STRING,"Configuration","langue_src",myConfig.langue_src,G_TYPE_INVALID);
906+ }
907+ myConfig.langue_dst = CD_CONFIG_GET_STRING ("Configuration", "langue_dst");
908+ if (myConfig.langue_dst == NULL)//initialise la langue de traduction par défaut
909+ {
910+// myConfig.langue_dst = langue_system;
911+ const gchar* const * cMyLang = g_get_language_names (); //récupère le code langue
912+ myConfig.langue_dst = strtok(cMyLang[1],"_");
913+ cairo_dock_update_conf_file (CD_APPLET_MY_CONF_FILE,G_TYPE_STRING,"Configuration","langue_dst",myConfig.langue_dst,G_TYPE_INVALID);
914+ }
915+ myConfig.open_browser = CD_CONFIG_GET_BOOLEAN ("Configuration", "open_browser");
916+ myConfig.bShowScrollbars = CD_CONFIG_GET_BOOLEAN ("Configuration", "show_scrollbars");
917+ myConfig.iPosScrollX = CD_CONFIG_GET_INTEGER ("Configuration", "scroll x");
918+ myConfig.iPosScrollY = CD_CONFIG_GET_INTEGER ("Configuration", "scroll y");
919+ CD_CONFIG_GET_INTEGER_LIST ("Configuration", "size2",2,myData.size2);
920+ myConfig.cShortCut = CD_CONFIG_GET_STRING ("Configuration", "shortkey");
921+ cd_keybinder_bind (myConfig.cShortCut, (CDBindkeyHandler)cd_wikipedia_on_keybinding_pull, (gpointer)NULL);
922+CD_APPLET_GET_CONFIG_END
923+
924+//\_________________ Here you have to free all ressources allocated for myConfig. This one will be reseted to 0 at the end of this function. This function is called right before you get the applet's config, and when your applet is stopped, in the end.
925+CD_APPLET_RESET_CONFIG_BEGIN
926+//g_free (myConfig.cSomeStringValue);
927+ if (myConfig.cShortCut)
928+ {
929+ cd_keybinder_unbind(myConfig.cShortCut, (CDBindkeyHandler)cd_wikipedia_on_keybinding_pull);
930+ g_free (myConfig.cShortCut);
931+ }
932+CD_APPLET_RESET_CONFIG_END
933+
934+
935+//\_________________ Here you have to free all ressources allocated for myData. This one will be reseted to 0 at the end of this function. This function is called when your applet is stopped, in the very end.
936+CD_APPLET_RESET_DATA_BEGIN
937+g_free(myData.pQuickLaunchDialog);
938+//g_free(myData.is_window_load);
939+g_free(myData.code_nom_langues);
940+g_free(myData.pointeur_sav);
941+//g_free(myData.flip_flop);
942+g_free(myData.moteurs);
943+g_free(myData.langues_traduites);
944+//g_free(myData.langues_dst);
945+
946+CD_APPLET_RESET_DATA_END
947
948=== added file 'wikipedia/src/applet-config.h'
949--- wikipedia/src/applet-config.h 1970-01-01 00:00:00 +0000
950+++ wikipedia/src/applet-config.h 2010-01-02 11:50:25 +0000
951@@ -0,0 +1,30 @@
952+/**
953+* This file is a part of the Cairo-Dock project
954+*
955+* Copyright : (C) see the 'copyright' file.
956+* E-mail : see the 'copyright' file.
957+*
958+* This program is free software; you can redistribute it and/or
959+* modify it under the terms of the GNU General Public License
960+* as published by the Free Software Foundation; either version 3
961+* of the License, or (at your option) any later version.
962+*
963+* This program is distributed in the hope that it will be useful,
964+* but WITHOUT ANY WARRANTY; without even the implied warranty of
965+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
966+* GNU General Public License for more details.
967+* You should have received a copy of the GNU General Public License
968+* along with this program. If not, see <http://www.gnu.org/licenses/>.
969+*/
970+
971+
972+#ifndef __APPLET_CONFIG__
973+#define __APPLET_CONFIG__
974+
975+#include <cairo-dock.h>
976+
977+
978+CD_APPLET_CONFIG_H
979+
980+
981+#endif
982
983=== added file 'wikipedia/src/applet-init.c'
984--- wikipedia/src/applet-init.c 1970-01-01 00:00:00 +0000
985+++ wikipedia/src/applet-init.c 2010-01-02 11:50:25 +0000
986@@ -0,0 +1,104 @@
987+/**
988+* This file is a part of the Cairo-Dock project
989+*
990+* Copyright : (C) see the 'copyright' file.
991+* E-mail : see the 'copyright' file.
992+*
993+* This program is free software; you can redistribute it and/or
994+* modify it under the terms of the GNU General Public License
995+* as published by the Free Software Foundation; either version 3
996+* of the License, or (at your option) any later version.
997+*
998+* This program is distributed in the hope that it will be useful,
999+* but WITHOUT ANY WARRANTY; without even the implied warranty of
1000+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1001+* GNU General Public License for more details.
1002+* You should have received a copy of the GNU General Public License
1003+* along with this program. If not, see <http://www.gnu.org/licenses/>.
1004+*/
1005+
1006+//\________________ Add your name in the copyright file (and / or modify your name here)
1007+
1008+#include "stdlib.h"
1009+
1010+#include "applet-config.h"
1011+#include "applet-notifications.h"
1012+#include "applet-struct.h"
1013+#include "applet-init.h"
1014+#include "applet-wikipedia.h"
1015+#include <glib/gprintf.h>
1016+//#include <gtk/gtk.h>
1017+
1018+
1019+
1020+
1021+CD_APPLET_DEFINITION (N_("wikipedia"),
1022+ 2, 0, 0,
1023+ CAIRO_DOCK_CATEGORY_ACCESSORY,
1024+ N_("Useful description\n"
1025+ "and manual"),
1026+ "zartan")
1027+
1028+
1029+//\___________ Here is where you initiate your applet. myConfig is already set at this point, and also myIcon, myContainer, myDock, myDesklet (and myDrawContext if you're in dock mode). The macro CD_APPLET_MY_CONF_FILE and CD_APPLET_MY_KEY_FILE can give you access to the applet's conf-file and its corresponding key-file (also available during reload). If you're in desklet mode, myDrawContext is still NULL, and myIcon's buffers has not been filled, because you may not need them then (idem when reloading).
1030+CD_APPLET_INIT_BEGIN
1031+ if (myDesklet)
1032+ {
1033+ CD_APPLET_SET_DESKLET_RENDERER ("Simple"); // set a desklet renderer.
1034+ cd_wikipedia_update_my_icon (myApplet);
1035+ }
1036+
1037+ if (myIcon->cFileName == NULL) // set a default icon if none is specified.
1038+ {
1039+ CD_APPLET_SET_LOCAL_IMAGE_ON_MY_ICON (MY_APPLET_ICON_FILE);
1040+ }
1041+
1042+ /// To be continued ...
1043+ cd_wikipedia_load_moteurs();
1044+ cd_wikipedia_load_langues();
1045+ cd_wikipedia_update_my_icon (myApplet);
1046+ /// fin mes modifs
1047+// if (myDesklet)
1048+ {
1049+
1050+ }
1051+
1052+
1053+
1054+ CD_APPLET_REGISTER_FOR_CLICK_EVENT;
1055+ CD_APPLET_REGISTER_FOR_BUILD_MENU_EVENT;
1056+CD_APPLET_INIT_END
1057+
1058+
1059+//\___________ Here is where you stop your applet. myConfig and myData are still valid, but will be reseted to 0 at the end of the function. In the end, your applet will go back to its original state, as if it had never been activated.
1060+CD_APPLET_STOP_BEGIN
1061+ CD_APPLET_UNREGISTER_FOR_CLICK_EVENT;
1062+ CD_APPLET_UNREGISTER_FOR_BUILD_MENU_EVENT;
1063+
1064+ /// To be continued ...
1065+
1066+
1067+CD_APPLET_STOP_END
1068+
1069+
1070+//\___________ The reload occurs in 2 occasions : when the user changes the applet's config, and when the user reload the cairo-dock's config or modify the desklet's size. The macro CD_APPLET_MY_CONFIG_CHANGED can tell you this. myConfig has already been reloaded at this point if you're in the first case, myData is untouched. You also have the macro CD_APPLET_MY_CONTAINER_TYPE_CHANGED that can tell you if you switched from dock/desklet to desklet/dock mode.
1071+CD_APPLET_RELOAD_BEGIN
1072+ cd_wikipedia_update_my_icon (myApplet);
1073+
1074+ if (myDesklet)
1075+ {
1076+ CD_APPLET_SET_DESKLET_RENDERER ("Simple"); // set a desklet renderer.
1077+ }
1078+
1079+ if (CD_APPLET_MY_CONFIG_CHANGED)
1080+ {
1081+ if (myIcon->cFileName == NULL)
1082+ {
1083+ CD_APPLET_SET_LOCAL_IMAGE_ON_MY_ICON (MY_APPLET_ICON_FILE); // set a default icon if none is specified.
1084+ }
1085+
1086+ /// To be continued ...
1087+
1088+ }
1089+CD_APPLET_RELOAD_END
1090+
1091
1092=== added file 'wikipedia/src/applet-init.h'
1093--- wikipedia/src/applet-init.h 1970-01-01 00:00:00 +0000
1094+++ wikipedia/src/applet-init.h 2010-01-02 11:50:25 +0000
1095@@ -0,0 +1,31 @@
1096+/**
1097+* This file is a part of the Cairo-Dock project
1098+*
1099+* Copyright : (C) see the 'copyright' file.
1100+* E-mail : see the 'copyright' file.
1101+*
1102+* This program is free software; you can redistribute it and/or
1103+* modify it under the terms of the GNU General Public License
1104+* as published by the Free Software Foundation; either version 3
1105+* of the License, or (at your option) any later version.
1106+*
1107+* This program is distributed in the hope that it will be useful,
1108+* but WITHOUT ANY WARRANTY; without even the implied warranty of
1109+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1110+* GNU General Public License for more details.
1111+* You should have received a copy of the GNU General Public License
1112+* along with this program. If not, see <http://www.gnu.org/licenses/>.
1113+*/
1114+
1115+
1116+#ifndef __APPLET_INIT__
1117+#define __APPLET_INIT__
1118+
1119+
1120+#include <cairo-dock.h>
1121+
1122+
1123+CD_APPLET_H
1124+
1125+
1126+#endif
1127
1128=== added file 'wikipedia/src/applet-notifications.c'
1129--- wikipedia/src/applet-notifications.c 1970-01-01 00:00:00 +0000
1130+++ wikipedia/src/applet-notifications.c 2010-01-02 11:50:25 +0000
1131@@ -0,0 +1,47 @@
1132+/**
1133+* This file is a part of the Cairo-Dock project
1134+*
1135+* Copyright : (C) see the 'copyright' file.
1136+* E-mail : see the 'copyright' file.
1137+*
1138+* This program is free software; you can redistribute it and/or
1139+* modify it under the terms of the GNU General Public License
1140+* as published by the Free Software Foundation; either version 3
1141+* of the License, or (at your option) any later version.
1142+*
1143+* This program is distributed in the hope that it will be useful,
1144+* but WITHOUT ANY WARRANTY; without even the implied warranty of
1145+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1146+* GNU General Public License for more details.
1147+* You should have received a copy of the GNU General Public License
1148+* along with this program. If not, see <http://www.gnu.org/licenses/>.
1149+*/
1150+
1151+//\________________ Add your name in the copyright file (and / or modify your name here)
1152+
1153+#include <stdlib.h>
1154+#include <string.h>
1155+
1156+#include "applet-struct.h"
1157+#include "applet-notifications.h"
1158+#include "applet-wikipedia.h"
1159+
1160+
1161+
1162+//\___________ Define here the action to be taken when the user left-clicks on your icon or on its subdock or your desklet. The icon and the container that were clicked are available through the macros CD_APPLET_CLICKED_ICON and CD_APPLET_CLICKED_CONTAINER. CD_APPLET_CLICKED_ICON may be NULL if the user clicked in the container but out of icons.
1163+CD_APPLET_ON_CLICK_BEGIN
1164+//printf("%s","je clique !!!!!!!!!!!!!!!!!!!!!!!!!");
1165+cd_wikipedia_on_clic_icon();
1166+//cd_wikipedia_show_hide_saisie();
1167+CD_APPLET_ON_CLICK_END
1168+
1169+
1170+//\___________ Define here the entries you want to add to the menu when the user right-clicks on your icon or on its subdock or your desklet. The icon and the container that were clicked are available through the macros CD_APPLET_CLICKED_ICON and CD_APPLET_CLICKED_CONTAINER. CD_APPLET_CLICKED_ICON may be NULL if the user clicked in the container but out of icons. The menu where you can add your entries is available throught the macro CD_APPLET_MY_MENU; you can add sub-menu to it if you want.
1171+CD_APPLET_ON_BUILD_MENU_BEGIN
1172+
1173+ GtkWidget *pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();
1174+ CD_APPLET_ADD_ABOUT_IN_MENU (pSubMenu);
1175+ //CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Open with your web browser"), GTK_STOCK_EXECUTE, cd_wikipedia_start_browser, CD_APPLET_MY_MENU);
1176+
1177+CD_APPLET_ON_BUILD_MENU_END
1178+
1179
1180=== added file 'wikipedia/src/applet-notifications.h'
1181--- wikipedia/src/applet-notifications.h 1970-01-01 00:00:00 +0000
1182+++ wikipedia/src/applet-notifications.h 2010-01-02 11:50:25 +0000
1183@@ -0,0 +1,34 @@
1184+/**
1185+* This file is a part of the Cairo-Dock project
1186+*
1187+* Copyright : (C) see the 'copyright' file.
1188+* E-mail : see the 'copyright' file.
1189+*
1190+* This program is free software; you can redistribute it and/or
1191+* modify it under the terms of the GNU General Public License
1192+* as published by the Free Software Foundation; either version 3
1193+* of the License, or (at your option) any later version.
1194+*
1195+* This program is distributed in the hope that it will be useful,
1196+* but WITHOUT ANY WARRANTY; without even the implied warranty of
1197+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1198+* GNU General Public License for more details.
1199+* You should have received a copy of the GNU General Public License
1200+* along with this program. If not, see <http://www.gnu.org/licenses/>.
1201+*/
1202+
1203+
1204+#ifndef __APPLET_NOTIFICATIONS__
1205+#define __APPLET_NOTIFICATIONS__
1206+
1207+
1208+#include <cairo-dock.h>
1209+
1210+
1211+
1212+CD_APPLET_ON_CLICK_H
1213+
1214+CD_APPLET_ON_BUILD_MENU_H
1215+
1216+void cd_wikipedia_on_clic_icon(void);
1217+#endif
1218
1219=== added file 'wikipedia/src/applet-struct.h'
1220--- wikipedia/src/applet-struct.h 1970-01-01 00:00:00 +0000
1221+++ wikipedia/src/applet-struct.h 2010-01-02 11:50:25 +0000
1222@@ -0,0 +1,75 @@
1223+/**
1224+* This file is a part of the Cairo-Dock project
1225+*
1226+* Copyright : (C) see the 'copyright' file.
1227+* E-mail : see the 'copyright' file.
1228+*
1229+* This program is free software; you can redistribute it and/or
1230+* modify it under the terms of the GNU General Public License
1231+* as published by the Free Software Foundation; either version 3
1232+* of the License, or (at your option) any later version.
1233+*
1234+* This program is distributed in the hope that it will be useful,
1235+* but WITHOUT ANY WARRANTY; without even the implied warranty of
1236+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1237+* GNU General Public License for more details.
1238+* You should have received a copy of the GNU General Public License
1239+* along with this program. If not, see <http://www.gnu.org/licenses/>.
1240+*/
1241+
1242+
1243+#ifndef __CD_APPLET_STRUCT__
1244+#define __CD_APPLET_STRUCT__
1245+
1246+#include <cairo-dock.h>
1247+#include <glib.h>
1248+#include <webkit/webkit.h>
1249+//\___________ structure containing the applet's configuration parameters.
1250+struct _AppletConfig {
1251+ // comportement
1252+gchar *langues_favorites;
1253+gchar *specific_web_browser;
1254+gchar *langue_src;
1255+gchar *langue_dst;
1256+gboolean open_browser;
1257+gchar *cShortCut;
1258+gboolean bShowScrollbars;
1259+
1260+//window_size =
1261+//gint window_x_position;
1262+//gint window_y_position;
1263+ gint iPosScrollX;
1264+ gint iPosScrollY;
1265+// guint iReloadTimeout;
1266+// gchar **cListURI;
1267+ gint iRightMargin;
1268+} ;
1269+
1270+//\___________ structure containing the applet's data, like surfaces, dialogs, results of calculus, etc.
1271+struct _AppletData {
1272+//CairoDialog *pdialog;
1273+CairoDialog *pDialog2;
1274+CairoDockTask *pTask; // tache pour recuperer le flux.
1275+gchar *cTaskBridge;
1276+CairoDialog *pQuickLaunchDialog;
1277+gint is_window_load;
1278+GList* code_nom_langues;
1279+GList* moteurs;
1280+GList*langues_traduites;
1281+//GList*langues_dst;
1282+gint *pointeur_sav;
1283+gint flip_flop;
1284+gint indice_defaut_langues_dst;
1285+gint indice_defaut_langues_src;
1286+//GList* nom_langues;
1287+GtkWidget *pGtkMozEmbed;
1288+WebKitWebView *pWebKitView;
1289+CairoDockTask *pRefreshTimer;
1290+gchar *cUrl;
1291+gchar *cCommand;
1292+gint size2[2];
1293+//gchar *pDialog2;
1294+} ;
1295+
1296+
1297+#endif
1298
1299=== added file 'wikipedia/src/applet-wikipedia.c'
1300--- wikipedia/src/applet-wikipedia.c 1970-01-01 00:00:00 +0000
1301+++ wikipedia/src/applet-wikipedia.c 2010-01-02 11:50:25 +0000
1302@@ -0,0 +1,791 @@
1303+/**
1304+* This file is a part of the Cairo-Dock project
1305+*
1306+* Copyright : (C) see the 'copyright' file.
1307+* E-mail : see the 'copyright' file.
1308+*
1309+* This program is free software; you can redistribute it and/or
1310+* modify it under the terms of the GNU General Public License
1311+* as published by the Free Software Foundation; either version 3
1312+* of the License, or (at your option) any later version.
1313+*
1314+* This program is distributed in the hope that it will be useful,
1315+* but WITHOUT ANY WARRANTY; without even the implied warranty of
1316+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1317+* GNU General Public License for more details.
1318+* You should have received a copy of the GNU General Public License
1319+* along with this program. If not, see <http://www.gnu.org/licenses/>.
1320+*/
1321+
1322+//\________________ Add your name in the copyright file (and / or modify your name here)
1323+//
1324+#include <stdio.h>
1325+#include <math.h>
1326+#include <string.h>
1327+#include <stdlib.h>
1328+#include <applet-wikipedia.h>
1329+#include <glib.h>
1330+#include <glib/gi18n.h>
1331+
1332+#include <glib/gprintf.h>
1333+#include "applet-struct.h"
1334+//#define GTK_STOCK_FIND "gtk-find"
1335+
1336+/*
1337+ * La structure concue poru contenir toutes les donnees de
1338+ * l'element courant de notre GtkComboBox d'apres le model
1339+ * que nous lui avons cree.
1340+ */
1341+typedef struct
1342+{
1343+ gchar * p_text0; //colonne 1
1344+ gchar * p_text1; //colonne 2
1345+ gchar * texte_recherche ;
1346+ gchar * moteur;
1347+// gchar * texte_translate;
1348+ gchar * code_langue_src;
1349+ gchar * code_langue_dst;
1350+ gchar * nom_langue_src;
1351+ gchar * nom_langue_dst;
1352+}
1353+combo_data_st;
1354+
1355+ GtkWidget * p_win = NULL;
1356+ GtkWidget * pDialog = NULL;
1357+ GtkWidget * p_vbox = NULL;
1358+ GtkWidget * p_hbox = NULL;
1359+ GtkWidget * p_button[2];
1360+ GtkWidget * p_combo = NULL;
1361+ GtkWidget * p_combo_langues_src = NULL;
1362+ GtkWidget * p_combo_langues_dst = NULL;
1363+ GtkWidget * p_combo_moteurs = NULL;
1364+ GtkWidget * p_entry = NULL;
1365+// GtkWidget * p_entry_translate = NULL;
1366+ GtkWidget * p_fixed;
1367+ GtkWidget * p_table;
1368+ GtkListStore * p_model = NULL;
1369+ GtkCellRenderer * p_cell = NULL;
1370+ GtkListStore * p_model_langues_src = NULL;
1371+ GtkCellRenderer * p_cell_langues_src = NULL;
1372+ GtkListStore * p_model_langues_dst = NULL;
1373+ GtkCellRenderer * p_cell_langues_dst = NULL;
1374+ GtkListStore * p_model_moteurs = NULL;
1375+ GtkCellRenderer * p_cell_moteurs = NULL;
1376+ GtkTreeIter iter;
1377+ GtkTreeIter iter_moteurs;
1378+ GtkTreeIter iter_langues_src;
1379+ GtkTreeIter iter_langues_dst;
1380+
1381+void cd_wikipedia_on_keybinding_pull (const char *keystring, gpointer user_data)
1382+{
1383+ if (myData.is_window_load==1)
1384+ {
1385+// cd_wikipedia_gtk_main_quit();
1386+ return;
1387+ }
1388+ else
1389+ {
1390+ cd_wikipedia_on_clic_icon();
1391+ myData.is_window_load=1;
1392+ }
1393+ return;
1394+}
1395+
1396+
1397+//////////////////////////////////////////////////////////////////////////
1398+void cd_wikipedia_load_moteurs()
1399+//////////////////////////////////////////////////////////////////////////
1400+{
1401+ myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("google", 0));
1402+ myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("wikipedia", 1));
1403+// myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("", 2));
1404+ myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("google translate", 2));
1405+ myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("google images", 3));
1406+ myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("google videos", 4));
1407+ myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("google maps", 5));
1408+ myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("sytadin", 6));
1409+ //myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("google", 6));
1410+ //myData.moteurs = g_list_append(myData.moteurs , g_strdup_printf("google", 7));
1411+}
1412+
1413+//////////////////////////////////////////////////////////////////////////
1414+void cd_wikipedia_update_my_icon (CairoDockModuleInstance *myApplet)
1415+//////////////////////////////////////////////////////////////////////////
1416+{
1417+ printf("%s\n","++++++++++++++++++++++++++++++++++++++++++");
1418+ printf("%s\n","cd_wikipedia_update_my_icon");
1419+
1420+ //if (myDesklet)
1421+ {
1422+ // taille de la texture.
1423+ int iWidth, iHeight;
1424+ CD_APPLET_GET_MY_ICON_EXTENT (&iWidth, &iHeight);
1425+
1426+ cd_wikipedia_draw_my_desklet (myApplet, iWidth, iHeight);
1427+
1428+ CD_APPLET_REDRAW_MY_ICON;
1429+ }
1430+}
1431+/*
1432+ * Fonction qui recupere les donnees de l'element courant affiche.
1433+ */
1434+//////////////////////////////////////////////////////////////////////////
1435+static combo_data_st get_active_data (GtkComboBox * p_combo)
1436+//////////////////////////////////////////////////////////////////////////
1437+{
1438+ GtkTreeModel * p_model = NULL;
1439+ GtkTreeIter iter;
1440+ combo_data_st p_st;
1441+
1442+
1443+ /* On recupere le model qu'on a cree. */
1444+ p_model = gtk_combo_box_get_model (p_combo);
1445+
1446+ /* On recupere le GtkTreeIter de l'element courant. */
1447+ if (gtk_combo_box_get_active_iter (p_combo, & iter))
1448+ {
1449+ gtk_tree_model_get (p_model,& iter,0, & p_st.p_text0,1, & p_st.p_text1,-1);
1450+ }
1451+ if (gtk_combo_box_get_active_iter (p_combo_moteurs, & iter_moteurs))
1452+ {
1453+ gtk_tree_model_get (p_model_moteurs,& iter_moteurs,0, & p_st.moteur,-1);
1454+ }
1455+ if (gtk_combo_box_get_active_iter (p_combo_langues_src, & iter_langues_src))
1456+ {
1457+ gtk_tree_model_get (p_model_langues_src,& iter_langues_src,0,& p_st.nom_langue_src,1,& p_st.code_langue_src,-1);
1458+ }
1459+ if (gtk_combo_box_get_active_iter (p_combo_langues_dst, & iter_langues_dst))
1460+ {
1461+ gtk_tree_model_get (p_model_langues_dst,& iter_langues_dst,0,& p_st.nom_langue_dst,1,& p_st.code_langue_dst,-1);
1462+ }
1463+ /* Recuperation du texte contenu dans le GtkEntry */
1464+ p_st.texte_recherche = gtk_entry_get_text(GTK_ENTRY(p_entry));
1465+// p_st.texte_translate = gtk_entry_get_text(GTK_ENTRY(p_entry_translate));
1466+ return p_st;
1467+}
1468+
1469+
1470+/*
1471+ * Fonction qui supprime l'element courant du GtkComboBox.
1472+ */
1473+//////////////////////////////////////////////////////////////////////////
1474+static void remove_active_item (GtkComboBox * p_combo)
1475+//////////////////////////////////////////////////////////////////////////
1476+{
1477+ GtkTreeModel * p_model = NULL;
1478+ GtkTreeIter iter;
1479+
1480+
1481+ /* On recupere le model qu'on a cree. */
1482+ p_model = gtk_combo_box_get_model (p_combo);
1483+
1484+
1485+ /* On recupere le GtkTreeIter de l'element courant. */
1486+ if (gtk_combo_box_get_active_iter (p_combo, & iter))
1487+ {
1488+ /* On supprime l'element courant. */
1489+ gtk_list_store_remove (GTK_LIST_STORE (p_model), & iter);
1490+ }
1491+}
1492+//////////////////////////////////////////////////////////////////////////
1493+void cd_wikipedia_load_langues() //on charge les tables des langues;
1494+//////////////////////////////////////////////////////////////////////////
1495+
1496+{
1497+ //return;
1498+ char sep_underscore[] ="_";
1499+ char sep_virgule[] =",";
1500+ char *langue_par_defaut;
1501+ char src[FILENAME_MAX];
1502+ char pBuffer[100];
1503+ //char sep_virgule[] =",";
1504+ //char *ptr char FileLangueName[100];
1505+ char *langue_favorite;
1506+ gint i,j,k,l;
1507+ char *nom_langue;
1508+ char * top_translate;
1509+ char *code_langue;
1510+ char *wcode_langue;
1511+ char FileLangueName[100];
1512+ FILE * flangue;
1513+ strcpy(FileLangueName,MY_APPLET_SHARE_DATA_DIR);
1514+ strcat(FileLangueName,"/langues.dat");
1515+ flangue = fopen(FileLangueName, "r");
1516+ //printf("%s\n","*************************************************");
1517+ if (flangue == NULL)
1518+ {
1519+ //printf("%s\n","++++++++++++++++++++++++++++++++++++++++++++++");
1520+ printf("%s\n","erreur ouverture");
1521+ perror("configuration");
1522+ }
1523+ //printf("%s\n",myConfig.langues_favorites);
1524+
1525+ gchar **tab_str;
1526+ tab_str = g_strsplit (myConfig.langues_favorites,",",10 );
1527+ i=0;
1528+ j=0;
1529+ k=0;
1530+ l=0;
1531+ while (fgets(pBuffer, 100, flangue ) != NULL)// on boucle sur les langues
1532+ {
1533+ gchar **extract_buffer;
1534+ extract_buffer=g_strsplit (pBuffer,",",4 );
1535+ top_translate = extract_buffer[0];
1536+ nom_langue = extract_buffer[1];
1537+ code_langue = extract_buffer[2];
1538+ i=0;
1539+ while (tab_str[i] !=NULL) // on boucle sur les langues favorites
1540+ {
1541+ if (strcmp(tab_str[i],code_langue) == 0) //on alimente la table des langues favorites
1542+ {
1543+ myData.code_nom_langues = g_list_append(myData.code_nom_langues , g_strdup_printf(nom_langue, j));
1544+ myData.code_nom_langues = g_list_append(myData.code_nom_langues , g_strdup_printf(code_langue, j+1));
1545+ j=j+2;
1546+ }
1547+ i++;
1548+ }
1549+// printf("%s",top_translate);
1550+// printf("%s%s\n","---------------",nom_langue);
1551+ if (strcmp(top_translate,"1") == 0) //on alimente la table des langues traduites par google
1552+ {
1553+// printf("%s%s\n","+++++++++++++++++",nom_langue);
1554+ myData.langues_traduites = g_list_append(myData.langues_traduites , g_strdup_printf(nom_langue, k));
1555+ myData.langues_traduites = g_list_append(myData.langues_traduites , g_strdup_printf(code_langue, k+1));
1556+ l=k/2;//on mémorise l'item de la table
1557+ k=k+2;
1558+ }
1559+ //on recherche les valeurs par défaut
1560+ if (strcmp(code_langue,myConfig.langue_src)==0)
1561+ {
1562+ myData.indice_defaut_langues_src=l;
1563+ }
1564+ if (strcmp(code_langue,myConfig.langue_dst)==0)
1565+ {
1566+ myData.indice_defaut_langues_dst=l;
1567+ }
1568+ l++;
1569+ }
1570+}
1571+//////////////////////////////////////////////////////////////////////////
1572+void cd_wikipedia_create_url ()
1573+//////////////////////////////////////////////////////////////////////////
1574+{
1575+ // GtkComboBox * p_combo = p_data;
1576+ combo_data_st p_st;
1577+//mon code
1578+// char cUrl[1024];
1579+ char sep_recherche[] =" ,|>";
1580+ char sep_underscore[] ="_";
1581+ char *ptr;
1582+ int cpt_mot = 1;
1583+ p_st = get_active_data (p_combo);
1584+
1585+ // on reconstitue l'url
1586+// strcpy(myData.cUrl,"http://");
1587+ myData.cUrl=g_strdup_printf("%s","http://") ;
1588+// switch(p_st.moteur)
1589+ printf("%s\n","444444444444444444444444444444");
1590+// {
1591+ if (myConfig.open_browser)
1592+ {
1593+ }
1594+ else
1595+ {
1596+ cd_wikipedia_build_and_show (myApplet);
1597+
1598+ }
1599+ if (strcmp(p_st.moteur, "wikipedia") ==0)
1600+ {
1601+ strcat(myData.cUrl,p_st.p_text1); //code langue
1602+ strcat(myData.cUrl,".wikipedia.org/w/index.php?title=Sp%C3%A9cial%3ARecherche&search=");
1603+ ptr = NULL;
1604+ cpt_mot=1;
1605+ gchar ** extr_recherche;
1606+ gint i= 0;
1607+ extr_recherche = g_strsplit (p_st.texte_recherche,",",10 );
1608+ //ptr = strtok(p_st.texte_recherche," ");// boucle pour traiter les demandes de plusieurs mots
1609+ while ( extr_recherche[cpt_mot - 1] != NULL )
1610+ {
1611+ if (cpt_mot != 1)
1612+ strcat(myData.cUrl,"+");
1613+ ;
1614+ strcat(myData.cUrl,extr_recherche[cpt_mot - 1]);
1615+ cpt_mot++;
1616+// printf("token: %s\n", ptr);
1617+// ptr = strtok(NULL, sep_recherche);
1618+ }
1619+ strcat(myData.cUrl,"&go=Lire"); //fin de l'url
1620+ }
1621+ if (strcmp(p_st.moteur, "google") ==0)
1622+ {
1623+ printf("%s\n","++++++++++++++++++++++++++");
1624+ printf("%s\n","11111111111111111111111111");
1625+ printf("%s\n","++++++++++++++++++++++++++"); //http://www.google.com/search?hl=fr&source=hp&q=aaa+bbbbbbbb+cccccccc&btnG=Recherche+Google&meta=&aq=f&oq=
1626+ strcat(myData.cUrl,"www.google.com/search?hl=");
1627+ strcat(myData.cUrl,p_st.p_text1); //code langue
1628+ strcat(myData.cUrl,"&source=hp&q=");
1629+ ptr = NULL;
1630+ cpt_mot=1;
1631+ gchar ** extr_recherche;
1632+ gint i= 0;
1633+ extr_recherche = g_strsplit (p_st.texte_recherche,",",10 );
1634+ //ptr = strtok(p_st.texte_recherche," ");// boucle pour traiter les demandes de plusieurs mots
1635+ while ( extr_recherche[cpt_mot - 1] != NULL )
1636+ {
1637+ if (cpt_mot != 1)
1638+ strcat(myData.cUrl,"+");
1639+ ;
1640+ strcat(myData.cUrl,extr_recherche[cpt_mot - 1]);
1641+ cpt_mot++;
1642+// printf("token: %s\n", ptr);
1643+// ptr = strtok(NULL, sep_recherche);
1644+ }
1645+ strcat(myData.cUrl,""); //fin de l'url
1646+ }
1647+ if (strcmp(p_st.moteur, "google images") ==0)
1648+ {
1649+ //http://images.google.com/images?hl=fr&source=hp&q=dddddddd
1650+ strcat(myData.cUrl,"images.google.com/images?hl=");
1651+ strcat(myData.cUrl,p_st.p_text1); //code langue
1652+ strcat(myData.cUrl,"&source=hp&q=");
1653+ ptr = NULL;
1654+ cpt_mot=1;
1655+ gchar ** extr_recherche;
1656+ gint i= 0;
1657+ extr_recherche = g_strsplit (p_st.texte_recherche,",",10 );
1658+ //ptr = strtok(p_st.texte_recherche," ");// boucle pour traiter les demandes de plusieurs mots
1659+ while ( extr_recherche[cpt_mot - 1] != NULL )
1660+ {
1661+ if (cpt_mot != 1)
1662+ strcat(myData.cUrl,"+");
1663+ ;
1664+ strcat(myData.cUrl,extr_recherche[cpt_mot - 1]);
1665+ cpt_mot++;
1666+// printf("token: %s\n", ptr);
1667+// ptr = strtok(NULL, sep_recherche);
1668+ }
1669+ strcat(myData.cUrl,""); //fin de l'url
1670+ }
1671+ if (strcmp(p_st.moteur, "google videos") ==0)
1672+ {
1673+ //http://video.google.com/videosearch?hl=fr&num=100&q=ded%20qsqsq&um=1&ie=UTF-8&sa=N&tab=wv#emb=0&hl=fr&q=aaaaaaaaa+bbbbbbbbbbb&view=3
1674+ strcat(myData.cUrl,"video.google.com/videosearch?hl=");
1675+ strcat(myData.cUrl,p_st.p_text1); //code langue
1676+ strcat(myData.cUrl,"&num=100&q=ded%20qsqsq&um=1&ie=UTF-8&sa=N&tab=wv#emb=0&hl=fr&q=");
1677+ ptr = NULL;
1678+ cpt_mot=1;
1679+ gchar ** extr_recherche;
1680+ gint i= 0;
1681+ extr_recherche = g_strsplit (p_st.texte_recherche,",",10 );
1682+ //ptr = strtok(p_st.texte_recherche," ");// boucle pour traiter les demandes de plusieurs mots
1683+ while ( extr_recherche[cpt_mot - 1] != NULL )
1684+ {
1685+ if (cpt_mot != 1)
1686+ strcat(myData.cUrl,"+");
1687+ ;
1688+ strcat(myData.cUrl,extr_recherche[cpt_mot - 1]);
1689+ cpt_mot++;
1690+// printf("token: %s\n", ptr);
1691+// ptr = strtok(NULL, sep_recherche);
1692+ }
1693+ strcat(myData.cUrl,""); //fin de l'url
1694+ }
1695+ if (strcmp(p_st.moteur, "google translate") ==0)
1696+ {
1697+ strcat(myData.cUrl,"translate.google.com/?hl=");
1698+ strcat(myData.cUrl,p_st.p_text1);
1699+ strcat(myData.cUrl,"&tab=wT#");
1700+ strcat(myData.cUrl,p_st.code_langue_src);
1701+ strcat(myData.cUrl,"|");
1702+ strcat(myData.cUrl,p_st.code_langue_dst);
1703+ strcat(myData.cUrl,"|");
1704+ strcat(myData.cUrl,p_st.texte_recherche);
1705+ ptr = NULL;
1706+ cpt_mot=1;
1707+ gchar ** extr_recherche;
1708+ gint i= 0;
1709+ extr_recherche = g_strsplit (p_st.texte_recherche,",",10 );
1710+ //ptr = strtok(p_st.texte_recherche," ");// boucle pour traiter les demandes de plusieurs mots
1711+ while ( extr_recherche[cpt_mot - 1] != NULL )
1712+ {
1713+ if (cpt_mot != 1)
1714+ strcat(myData.cUrl,"+");
1715+ ;
1716+ strcat(myData.cUrl,extr_recherche[cpt_mot - 1]);
1717+ cpt_mot++;
1718+// printf("token: %s\n", ptr);
1719+// ptr = strtok(NULL, sep_recherche);
1720+ }
1721+ strcat(myData.cUrl,""); //fin de l'url
1722+ }
1723+ if (strcmp(p_st.moteur, "google maps") ==0)
1724+ {
1725+ //http://maps.google.com/maps?q=paris%20concorde&hl=fr
1726+ strcat(myData.cUrl,"maps.google.com/maps?q=");
1727+
1728+// strcat(myData.cUrl,"&source=hp&q=");
1729+ ptr = NULL;
1730+ cpt_mot=1;
1731+ gchar ** extr_recherche;
1732+ gint i= 0;
1733+ extr_recherche = g_strsplit (p_st.texte_recherche,",",10 );
1734+ while ( extr_recherche[cpt_mot - 1] != NULL )
1735+ {
1736+ if (cpt_mot != 1)
1737+ strcat(myData.cUrl,"+");
1738+ ;
1739+ strcat(myData.cUrl,extr_recherche[cpt_mot - 1]);
1740+ cpt_mot++;
1741+ }
1742+ strcat(myData.cUrl,"&hl="); //fin de l'url
1743+ strcat(myData.cUrl,p_st.p_text1); //code langue
1744+
1745+ }
1746+ if (strcmp(p_st.moteur, "sytadin") ==0)
1747+ {
1748+ strcat(myData.cUrl,"www.sytadin.fr/opencms/sites/sytadin/sys/raster.jsp.html_470577407.html");
1749+ }
1750+
1751+ if (myConfig.open_browser)
1752+ {
1753+ cd_wikipedia_launch_browser();
1754+ }
1755+ else//sinon on affiche par webkit
1756+ {
1757+ printf("%s\n","webkit+++++++++++++++++++++++++++++++++++++++");
1758+ gchar tmp[100];
1759+// strcpy(tmp,'file://');
1760+// strcat(tmp,MY_APPLET_SHARE_DATA_DIR);
1761+ strcpy(tmp,MY_APPLET_SHARE_DATA_DIR);
1762+ strcat(tmp,"/loading.html");
1763+ webkit_web_view_open(WEBKIT_WEB_VIEW(myData.pWebKitView),tmp);
1764+// gchar *cCommand = g_strdup_printf ("curl -s --connect-timeout 3 \"%s\"", myData.cUrl);
1765+// myData.cTaskBridge = cairo_dock_launch_command_sync (cCommand);
1766+// char FiletmpName[100];
1767+// strcpy(FiletmpName,g_cCairoDockDataDir);
1768+// strcat(FiletmpName,"/tmp.html");
1769+// FILE * ftmp;
1770+// ftmp = fopen(FiletmpName, "w");
1771+ //fwrite(myData.cTaskBridge, sizeof myData.cTaskBridge, 1, ftmp);
1772+// fprintf(ftmp,myData.cTaskBridge);
1773+// fclose(ftmp);
1774+ webkit_web_view_load_uri(WEBKIT_WEB_VIEW(myData.pWebKitView), myData.cUrl);
1775+ //webkit_web_view_load_uri(WEBKIT_WEB_VIEW(myData.pWebKitView), FiletmpName);
1776+ }
1777+
1778+ return;
1779+}
1780+//////////////////////////////////////////////////////////////////////////
1781+void cd_wikipedia_launch_browser ()
1782+//////////////////////////////////////////////////////////////////////////
1783+{
1784+ if (myConfig.specific_web_browser != NULL) // on lance le navigateur
1785+ {
1786+ cairo_dock_launch_command_printf ("%s %s", NULL, myConfig.specific_web_browser, myData.cUrl);
1787+ }
1788+ else // sinon on utilise la commande par defaut.
1789+ {
1790+ cairo_dock_fm_launch_uri (myData.cUrl);
1791+ }
1792+ return;
1793+
1794+}
1795+//////////////////////////////////////////////////////////////////////////
1796+static void cd_wikipedia_gtk_main_quit()
1797+//////////////////////////////////////////////////////////////////////////
1798+{
1799+ myData.is_window_load=0;
1800+ //gtk_main_quit();
1801+}
1802+//////////////////////////////////////////////////////////////////////////
1803+static void cb_remove (GtkWidget * p_wid, gpointer p_data)
1804+//////////////////////////////////////////////////////////////////////////
1805+{
1806+ GtkComboBox * p_combo = p_data;
1807+
1808+
1809+ remove_active_item (p_combo);
1810+ (void) p_wid;
1811+}
1812+//////////////////////////////////////////////////////////////////////////
1813+GdkPixbuf *cd_wikipedia_create_pixbuf(void)
1814+//////////////////////////////////////////////////////////////////////////
1815+{
1816+ GdkPixbuf *pixbuf;
1817+ GError *error = NULL;
1818+ pixbuf = gdk_pixbuf_new_from_file(MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE, &error);
1819+ if(!pixbuf) {
1820+ fprintf(stderr, "%s\n", error->message);
1821+ g_error_free(error);
1822+ }
1823+
1824+ return pixbuf;
1825+}
1826+//////////////////////////////////////////////////////////////////////////
1827+GdkPixbuf *cd_wikipedia_create_pixbuf_dict(void)
1828+//////////////////////////////////////////////////////////////////////////
1829+{
1830+ GdkPixbuf *pixbuf;
1831+ GError *error = NULL;
1832+ pixbuf = gdk_pixbuf_new_from_file(MY_APPLET_SHARE_DATA_DIR"/icone_dictionnaire1.gif", &error);
1833+ if(!pixbuf) {
1834+ fprintf(stderr, "%s\n", error->message);
1835+ g_error_free(error);
1836+ }
1837+
1838+ return pixbuf;
1839+}
1840+//////////////////////////////////////////////////////////////////////////
1841+void cd_wikipedia_alim_combo(item, dummy)
1842+//////////////////////////////////////////////////////////////////////////
1843+{
1844+// gtk_list_store_append (p_model, & iter);
1845+// gtk_list_store_set (p_model, & iter,0,item,1,item,-1);
1846+// return;
1847+//printf("%d\n",myData.flip_flop);
1848+ if (myData.flip_flop == 0)
1849+ {
1850+ //printf("%s\n","***0***");
1851+ myData.flip_flop =1;
1852+ myData.pointeur_sav=item;
1853+ gtk_list_store_append (p_model, & iter);
1854+
1855+ }
1856+ else
1857+ {
1858+ //printf("%s\n","***1***");
1859+ myData.flip_flop =0;
1860+ gtk_list_store_set (p_model, & iter,0,myData.pointeur_sav,1,item,-1);
1861+ }
1862+ // gtk_list_store_append (p_model, & iter);
1863+ // gtk_list_store_set (p_model, & iter,0,item,1,item2,-1);
1864+
1865+ }
1866+//////////////////////////////////////////////////////////////////////////
1867+void cd_wikipedia_alim_combo_langues_src_dst(item, dummy)
1868+//////////////////////////////////////////////////////////////////////////
1869+ {
1870+ if (myData.flip_flop == 0)
1871+ {
1872+ // printf("%s\n","***0***");
1873+ myData.flip_flop =1;
1874+ myData.pointeur_sav=item;
1875+ gtk_list_store_append (p_model_langues_src, & iter_langues_src);
1876+ gtk_list_store_append (p_model_langues_dst, & iter_langues_dst);
1877+
1878+ }
1879+ else
1880+ {
1881+ // printf("%s\n","***1***");
1882+ myData.flip_flop =0;
1883+ gtk_list_store_set (p_model_langues_src, & iter_langues_src,0,myData.pointeur_sav,1,item,-1);
1884+ gtk_list_store_set (p_model_langues_dst, & iter_langues_dst,0,myData.pointeur_sav,1,item,-1);
1885+ }
1886+ }
1887+//////////////////////////////////////////////////////////////////////////
1888+void cd_wikipedia_alim_combo_moteurs(item, dummy)
1889+//////////////////////////////////////////////////////////////////////////
1890+ {
1891+ gtk_list_store_append (p_model_moteurs, & iter_moteurs);
1892+ gtk_list_store_set (p_model_moteurs, & iter_moteurs,0,item,-1);
1893+ }
1894+//////////////////////////////////////////////////////////////////////////
1895+void cd_wikipedia_on_clic_icon()
1896+//////////////////////////////////////////////////////////////////////////
1897+{ if (myData.is_window_load==1)
1898+ {
1899+// cd_wikipedia_gtk_main_quit();
1900+ return;
1901+ }
1902+ else
1903+ {
1904+ cd_wikipedia_update_my_icon (myApplet);
1905+
1906+ //printf("%s\n","++++++++++++++++++++++++++++++++++++++++++");
1907+ //printf("%s\n","cd_wikipedia_on_clic_icon()");
1908+ pDialog = cairo_dock_show_dialog_full ("SuperSearch", // titre
1909+ myIcon, myContainer,
1910+ 0, // durée infinie
1911+ MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE, // image à côté du titre, identique à celle de l'icône
1912+ p_table,
1913+ cd_wikipedia_action_on_click, myApplet, NULL);
1914+ myData.is_window_load=1;
1915+ }
1916+
1917+}
1918+//dessin
1919+//////////////////////////////////////////////////////////////////////////
1920+void cd_wikipedia_draw_my_desklet (CairoDockModuleInstance *myApplet, int iWidth, int iHeight)
1921+//////////////////////////////////////////////////////////////////////////
1922+ {
1923+ int c;
1924+ //Creation de la fenetre principale.
1925+ //p_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
1926+ //gtk_window_set_title (GTK_WINDOW (p_win), "multisearch");
1927+ //gtk_window_set_icon (GTK_WINDOW(p_win), cd_wikipedia_create_pixbuf());
1928+ //gtk_window_set_default_size (GTK_WINDOW (p_win), 300, 300);
1929+ //gtk_container_set_border_width (GTK_CONTAINER (p_win), 5);
1930+ //gtk_window_set_position (GTK_WINDOW (p_win), GTK_WIN_POS_CENTER);
1931+ // gtk_window_move (GTK_WINDOW (p_win),myConfig.window_x_position ,myConfig.window_y_position);
1932+
1933+ //gtk_window_set_resizable (GTK_WINDOW(p_win), FALSE);
1934+ /* Ajout du conteneur principal et des boutons. */
1935+ p_table=gtk_table_new(3,40,TRUE);
1936+ // gtk_container_add(GTK_CONTAINER(p_win), GTK_WIDGET(p_table));
1937+ p_entry = gtk_entry_new();
1938+ // p_entry_translate = gtk_entry_new();
1939+ // gtk_box_pack_start(GTK_BOX(p_hbox), p_entry, TRUE, FALSE, 0);
1940+ p_button[0] = gtk_button_new();
1941+ gtk_button_set_image(GTK_BUTTON(p_button[0]),gtk_image_new_from_pixbuf(cd_wikipedia_create_pixbuf_dict()));
1942+ // GTK_WIDGET_SET_FLAGS (p_button[0], GTK_CAN_DEFAULT);
1943+ // gtk_widget_grab_default(p_button[0]);
1944+ // gtk_box_pack_start (GTK_BOX (p_hbox), p_button[0], FALSE, TRUE, 2);
1945+
1946+ //gtk_fixed_put(GTK_FIXED(p_fixed), p_button[0], 150, 50);
1947+ //gtk_widget_set_size_request(p_button[0], 80, 35);
1948+ //gtk_widget_set_size_request(p_button[0], 70, 30);
1949+ //*Creation d'un GtkComboBox avec un GtkTreeModel personnalise.
1950+
1951+ gint i = 0;
1952+ //Creation d'un model pour le GtkComboBox.
1953+ p_model = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
1954+ p_model_langues_src = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
1955+ p_model_langues_dst = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
1956+ p_model_moteurs = gtk_list_store_new (1, G_TYPE_STRING);
1957+ // Creation d'un GtkComboBox avec son model.
1958+ p_combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (p_model));
1959+ p_combo_moteurs = gtk_combo_box_new_with_model (GTK_TREE_MODEL (p_model_moteurs));
1960+ p_combo_langues_src = gtk_combo_box_new_with_model (GTK_TREE_MODEL (p_model_langues_src));
1961+ p_combo_langues_dst = gtk_combo_box_new_with_model (GTK_TREE_MODEL (p_model_langues_dst));
1962+
1963+ // rendu des cellules
1964+ p_cell_langues_src = gtk_cell_renderer_text_new ();
1965+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (p_combo_langues_src), p_cell_langues_src, FALSE);
1966+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (p_combo_langues_src),p_cell_langues_src, "text", 0,NULL);
1967+ p_cell_langues_src = gtk_cell_renderer_text_new ();
1968+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (p_combo_langues_src), p_cell_langues_src, FALSE);
1969+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (p_combo_langues_src),p_cell_langues_src, "text", 1,NULL);
1970+
1971+ p_cell_langues_dst = gtk_cell_renderer_text_new ();
1972+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (p_combo_langues_dst), p_cell_langues_dst, FALSE);
1973+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (p_combo_langues_dst),p_cell_langues_dst, "text", 0,NULL);
1974+ p_cell_langues_dst = gtk_cell_renderer_text_new ();
1975+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (p_combo_langues_dst), p_cell_langues_dst, FALSE);
1976+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (p_combo_langues_dst),p_cell_langues_dst, "text", 1,NULL);
1977+
1978+ p_cell = gtk_cell_renderer_text_new ();
1979+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (p_combo), p_cell, FALSE);
1980+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (p_combo),p_cell, "text", 0,NULL);
1981+ p_cell = gtk_cell_renderer_text_new ();
1982+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (p_combo), p_cell, FALSE);
1983+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (p_combo),p_cell, "text", 1,NULL);
1984+
1985+ p_cell_moteurs = gtk_cell_renderer_text_new ();
1986+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (p_combo_moteurs), p_cell_moteurs, FALSE);
1987+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (p_combo_moteurs),p_cell_moteurs, "text", 0,NULL);
1988+
1989+ //alim de la combo
1990+ myData.flip_flop=0;
1991+ g_list_foreach(myData.code_nom_langues,cd_wikipedia_alim_combo,NULL);
1992+ //gtk_combo_set_popdown_strings( GTK_COMBO(p_combo), myData.code_code_nom_langues) ; // met la liste dans la conbo box
1993+ gtk_combo_box_set_active (GTK_COMBO_BOX (p_combo), 0); //On affiche un element par defaut. L'index commence à zero.
1994+ g_list_foreach(myData.moteurs,cd_wikipedia_alim_combo_moteurs,NULL);
1995+ gtk_combo_box_set_active (GTK_COMBO_BOX (p_combo_moteurs), 0); //On affiche un element par defaut. L'index commence à zero.
1996+ myData.flip_flop = 0;
1997+ g_list_foreach(myData.langues_traduites,cd_wikipedia_alim_combo_langues_src_dst,NULL);
1998+ gtk_combo_box_set_active (GTK_COMBO_BOX (p_combo_langues_src), myData.indice_defaut_langues_src); //On affiche un element par defaut. L'index commence à zero.
1999+ // g_list_foreach(myData.langues_traduites,cd_wikipedia_alim_combo_langues_dst,NULL);
2000+ gtk_combo_box_set_active (GTK_COMBO_BOX (p_combo_langues_dst), myData.indice_defaut_langues_dst); //On affiche un element par defaut. L'index commence à zero.
2001+ //g_signal_connect (G_OBJECT (p_win), "destroy", G_CALLBACK (cd_wikipedia_gtk_main_quit), NULL);
2002+
2003+ // on dessine la grille
2004+ gtk_table_attach(GTK_TABLE(p_table), p_entry, 0,35,0,1,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0,0);
2005+ gtk_table_attach(GTK_TABLE(p_table), p_button[0], 36,40,0,1,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0,0);
2006+ gtk_table_attach(GTK_TABLE(p_table), p_combo, 0,19,1,2,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0,0);
2007+ gtk_table_attach(GTK_TABLE(p_table), p_combo_moteurs, 20,40,1,2,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0,0);
2008+// gtk_table_attach(GTK_TABLE(p_table), p_entry_translate, 0,2,3,4,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0,0);
2009+ gtk_table_attach(GTK_TABLE(p_table), p_combo_langues_src,0,19,2,3,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0,0);
2010+ gtk_table_attach(GTK_TABLE(p_table), p_combo_langues_dst,20,40,2,3,GTK_EXPAND | GTK_FILL, GTK_EXPAND,0,0);
2011+ //gtk_widget_show_all (p_win);
2012+ //gtk_main ();
2013+ return ;
2014+ }
2015+//////////////////////////////////////////////////////////////////////////
2016+void cd_wikipedia_action_on_click (int iNumButton, GtkWidget *pInteractiveWidget, CairoDockModuleInstance *myApplet, CairoDialog *pDialog)
2017+//////////////////////////////////////////////////////////////////////////
2018+{
2019+ printf("%s\n","++++++++++++++++++++++++++++++++++++++++++");
2020+ printf("%s\n","cd_wikipedia_action_on_clic()");
2021+
2022+if (iNumButton == 0 || iNumButton == -1) // clic sur OK ou appui sur Entree
2023+{
2024+ printf("%s\n","444444444444444444444444444444");
2025+ cd_wikipedia_create_url();
2026+}
2027+ //cairo_dock_dialog_unreference (pDialog);
2028+ myData.is_window_load=0;
2029+}
2030+ //////////////////////////////////////////////////////////////////////////
2031+ void cd_wikipedia_action_on_click2 (int iNumButton, GtkWidget *pInteractiveWidget, CairoDockModuleInstance *myApplet, CairoDialog *pDialog2)
2032+ //void cd_wikipedia_action_on_click (int iNumButton, GtkWidget *pInteractiveWidget, CairoDockModuleInstance *myApplet, CairoDialog *pDialog)
2033+ //////////////////////////////////////////////////////////////////////////
2034+
2035+ {
2036+ // cairo_dock_remove_dialog_if_any (myIcon);
2037+ if (iNumButton == 0 || iNumButton == -1) // clic sur OK ou appui sur Entree
2038+ {
2039+ cd_wikipedia_launch_browser();
2040+ //cd_wikipedia_launch_browser();
2041+ }
2042+
2043+ // myData.is_window_load=0;
2044+ // cairo_dock_dialog_unreference (myData.pDialog2);
2045+ return;
2046+ }
2047+/////////////////////////////////////////////////////////
2048+void cd_wikipedia_build_and_show (CairoDockModuleInstance *myApplet)
2049+/////////////////////////////////////////////////////////
2050+{
2051+ printf("%s\n","cd_wikipedia_build_and_show");
2052+// cairo_dock_remove_dialog_if_any (myIcon);
2053+ myData.pGtkMozEmbed = gtk_scrolled_window_new (NULL, NULL);
2054+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (myData.pGtkMozEmbed), myConfig.bShowScrollbars?GTK_POLICY_AUTOMATIC:GTK_POLICY_NEVER, myConfig.bShowScrollbars?GTK_POLICY_AUTOMATIC:GTK_POLICY_NEVER);
2055+ printf("%s\n","1111111111111111111111111111111&");
2056+ myData.pWebKitView = WEBKIT_WEB_VIEW (webkit_web_view_new ());
2057+ //myData.cUrl="http://www.cairo-dock.org";
2058+
2059+
2060+// webkit_web_view_load_uri(WEBKIT_WEB_VIEW(myData.pWebKitView),tmp);
2061+ printf("%s\n","*************************************************");
2062+
2063+ //printf("%s\n",myData.cUrl);
2064+
2065+// webkit_web_view_set_transparent(myData.pWebKitView, TRUE);
2066+
2067+ gtk_container_add (GTK_CONTAINER (myData.pGtkMozEmbed), GTK_WIDGET (myData.pWebKitView));
2068+// gtk_signal_connect(GTK_OBJECT(myData.pWebKitView),
2069+// "load_finished",
2070+// GTK_SIGNAL_FUNC(cd_wikipedia_load_finished_cb),
2071+// myApplet);
2072+// gtk_widget_show_all (myData.pGtkMozEmbed);
2073+ printf("%s\n","++++++++++++++++++++dialog2");
2074+ gtk_widget_set (GTK_WIDGET (myData.pWebKitView), "width-request", myData.size2[0], "height-request", myData.size2[1], NULL);
2075+ myData.pDialog2 = cairo_dock_show_dialog_full ("SuperSearch", // titre
2076+ myIcon, myContainer,
2077+ 0, // durée infinie
2078+ MY_APPLET_SHARE_DATA_DIR"/"MY_APPLET_ICON_FILE, // image à côté du titre, identique à celle de l'icône
2079+ myData.pGtkMozEmbed,
2080+ cd_wikipedia_action_on_click2, myApplet, NULL);
2081+// webkit_web_view_load_uri(WEBKIT_WEB_VIEW(myData.pWebKitView), tmp);
2082+
2083+// webkit_web_view_load_uri(WEBKIT_WEB_VIEW(myData.pWebKitView), myData.cUrl);
2084+// myData.is_window_load=1;
2085+
2086+
2087+
2088+return;
2089+}
2090+
2091+
2092+
2093+
2094
2095=== added file 'wikipedia/src/applet-wikipedia.h'
2096--- wikipedia/src/applet-wikipedia.h 1970-01-01 00:00:00 +0000
2097+++ wikipedia/src/applet-wikipedia.h 2010-01-02 11:50:25 +0000
2098@@ -0,0 +1,44 @@
2099+/**
2100+* This file is a part of the Cairo-Dock project
2101+*
2102+* Copyright : (C) see the 'copyright' file.
2103+* E-mail : see the 'copyright' file.
2104+*
2105+* This program is free software; you can redistribute it and/or
2106+* modify it under the terms of the GNU General Public License
2107+* as published by the Free Software Foundation; either version 3
2108+* of the License, or (at your option) any later version.
2109+*
2110+* This program is distributed in the hope that it will be useful,
2111+* but WITHOUT ANY WARRANTY; without even the implied warranty of
2112+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2113+* GNU General Public License for more details.
2114+* You should have received a copy of the GNU General Public License
2115+* along with this program. If not, see <http://www.gnu.org/licenses/>.
2116+*/
2117+
2118+
2119+#ifndef __APPLET_WIKIPEDIA__
2120+#define __APPLET_WIKIPEDIA__
2121+
2122+#include <cairo-dock.h>
2123+#include "applet-struct.h"
2124+#include <stdio.h>
2125+#include <gtk/gtk.h>
2126+#include <webkit/webkit.h>
2127+void cd_wikipedia_on_clic_icon();
2128+void cd_wikipedia_load_moteurs();
2129+void cd_wikipedia_load_langues();
2130+void cd_wikipedia_action_on_click (int iNumButton, GtkWidget *pInteractiveWidget, CairoDockModuleInstance *myApplet, CairoDialog *pDialog);
2131+void cd_wikipedia_action_on_click2 (int iNumButton, GtkWidget *pInteractiveWidget, CairoDockModuleInstance *myApplet, CairoDialog *pDialog);
2132+//void cd_wikipedia_action_on_click2 (void);
2133+void cd_wikipedia_draw_my_desklet (CairoDockModuleInstance *myApplet, int iWidth, int iHeight);
2134+void cd_wikipedia_update_my_icon (CairoDockModuleInstance *myApplet);
2135+//void cd_wikipedia_on_clic_icon(void);
2136+void cd_wikipedia_build_and_show (CairoDockModuleInstance *myApplet);
2137+void cd_wikipedia_create_url ();
2138+void cd_wikipedia_launch_browser ();
2139+void cd_wikipedia_on_keybinding_pull(const char *keystring, gpointer user_data);
2140+#endif
2141+
2142+

Subscribers

People subscribed via source and target branches