Merge lp:~nathandyer/midori/midori-extension-pocket into lp:midori
- midori-extension-pocket
- Merge into trunk
Proposed by
Nathan Dyer
Status: | Needs review |
---|---|
Proposed branch: | lp:~nathandyer/midori/midori-extension-pocket |
Merge into: | lp:midori |
Diff against target: |
615 lines (+592/-0) 4 files modified
extensions/pocket.vala (+122/-0) icons/CMakeLists.txt (+2/-0) icons/scalable/status/pocket-grey.svg (+230/-0) icons/scalable/status/pocket-red.svg (+238/-0) |
To merge this branch: | bzr merge lp:~nathandyer/midori/midori-extension-pocket |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
gue5t gue5t | Needs Fixing | ||
Review via email:
|
Commit message
Description of the change
A new extension that allows users to save web articles, videos, and other content into their Pocket account (https:/
To post a comment you must log in.
Unmerged revisions
- 7087. By Nathan Dyer <email address hidden>
-
Initial commit for the Midori Pocket extension.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'extensions/pocket.vala' | |||
2 | --- extensions/pocket.vala 1970-01-01 00:00:00 +0000 | |||
3 | +++ extensions/pocket.vala 2016-01-11 14:41:25 +0000 | |||
4 | @@ -0,0 +1,122 @@ | |||
5 | 1 | /* | ||
6 | 2 | BEGIN LICENSE | ||
7 | 3 | |||
8 | 4 | Copyright (C) 2015-2016 Nathan Dyer <mail@nathandyer.me> | ||
9 | 5 | |||
10 | 6 | This library is free software; you can redistribute it and/or | ||
11 | 7 | modify it under the terms of the GNU Lesser General Public | ||
12 | 8 | License as published by the Free Software Foundation; either | ||
13 | 9 | version 2.1 of the License, or (at your option) any later version. | ||
14 | 10 | |||
15 | 11 | See the file COPYING for the full license text. | ||
16 | 12 | */ | ||
17 | 13 | |||
18 | 14 | namespace Pocket { | ||
19 | 15 | private class Manager : Midori.Extension { | ||
20 | 16 | |||
21 | 17 | private GLib.List<Midori.View> pocketed_tabs = new GLib.List<Midori.View>(); | ||
22 | 18 | private GLib.List<string> pocketed_uris = new GLib.List<string>(); | ||
23 | 19 | private string previous_uri; | ||
24 | 20 | |||
25 | 21 | public PocketAction pocket_action; | ||
26 | 22 | |||
27 | 23 | internal Manager () { | ||
28 | 24 | GLib.Object (name: _("Pocket"), | ||
29 | 25 | description: _("Save any web page to Pocket"), | ||
30 | 26 | version: "0.1" + Midori.VERSION_SUFFIX, | ||
31 | 27 | authors: "Nathan Dyer <mail@nathandyer.me>"); | ||
32 | 28 | |||
33 | 29 | activate.connect (this.activated); | ||
34 | 30 | deactivate.connect (this.deactivated); | ||
35 | 31 | pocket_action = new PocketAction(); | ||
36 | 32 | } | ||
37 | 33 | |||
38 | 34 | void switch_tab (Midori.View? old_view, Midori.View? new_view) { | ||
39 | 35 | // See if the new view is one that we have pocketed | ||
40 | 36 | if(new_view != null) { | ||
41 | 37 | if(pocketed_tabs.find(new_view) != null) { | ||
42 | 38 | pocket_action.gicon = new GLib.ThemedIcon ("pocket-red"); | ||
43 | 39 | } else { | ||
44 | 40 | pocket_action.gicon = new GLib.ThemedIcon ("pocket-grey"); | ||
45 | 41 | } | ||
46 | 42 | } | ||
47 | 43 | } | ||
48 | 44 | |||
49 | 45 | void remove_tab (Midori.View tab) { | ||
50 | 46 | if(pocketed_tabs.find(tab) != null) { | ||
51 | 47 | pocket_action.gicon = new GLib.ThemedIcon ("pocket-grey"); | ||
52 | 48 | pocketed_tabs.remove(tab); | ||
53 | 49 | } | ||
54 | 50 | } | ||
55 | 51 | |||
56 | 52 | void browser_added (Midori.Browser browser) { | ||
57 | 53 | browser.add_action (pocket_action); | ||
58 | 54 | browser.switch_tab.connect(switch_tab); | ||
59 | 55 | browser.remove_tab.connect(remove_tab); | ||
60 | 56 | |||
61 | 57 | // When the save to pocket button is clicked | ||
62 | 58 | pocket_action.activate.connect(() => { | ||
63 | 59 | |||
64 | 60 | // Set the icon | ||
65 | 61 | pocket_action.gicon = new GLib.ThemedIcon ("pocket-red"); | ||
66 | 62 | |||
67 | 63 | // Store the view | ||
68 | 64 | pocketed_tabs.append(browser.tab as Midori.View); | ||
69 | 65 | |||
70 | 66 | // Save the URI | ||
71 | 67 | pocketed_uris.append(browser.uri); | ||
72 | 68 | previous_uri = browser.uri; | ||
73 | 69 | |||
74 | 70 | var tab = browser.tab as Midori.Tab; | ||
75 | 71 | |||
76 | 72 | // If the user is in the same tab as the page they pocketed, figure out what to do | ||
77 | 73 | // should they decide to navigate | ||
78 | 74 | tab.navigation_requested.connect((new_uri) => { | ||
79 | 75 | |||
80 | 76 | // If the new place we're going is different from the saved page, reset the icon | ||
81 | 77 | if(new_uri != previous_uri) { | ||
82 | 78 | pocket_action.gicon = new GLib.ThemedIcon ("pocket-grey"); | ||
83 | 79 | } | ||
84 | 80 | |||
85 | 81 | return true; | ||
86 | 82 | }); | ||
87 | 83 | |||
88 | 84 | // Activate the javascript add function provided directly by Pocket | ||
89 | 85 | string uri = """javascript:(function(){var e=function(t,n,r,i,s){var o=[2475458,1343461,5459244,3357751,2655528,5695460,5673939,1791235,8752590,4527118];var i=i||0,u=0,n=n||[],r=r||0,s=s||0;var a={'a':97,'b':98,'c':99,'d':100,'e':101,'f':102,'g':103,'h':104,'i':105,'j':106,'k':107,'l':108,'m':109,'n':110,'o':111,'p':112,'q':113,'r':114,'s':115,'t':116,'u':117,'v':118,'w':119,'x':120,'y':121,'z':122,'A':65,'B':66,'C':67,'D':68,'E':69,'F':70,'G':71,'H':72,'I':73,'J':74,'K':75,'L':76,'M':77,'N':78,'O':79,'P':80,'Q':81,'R':82,'S':83,'T':84,'U':85,'V':86,'W':87,'X':88,'Y':89,'Z':90,'0':48,'1':49,'2':50,'3':51,'4':52,'5':53,'6':54,'7':55,'8':56,'9':57,'\/':47,':':58,'?':63,'=':61,'-':45,'_':95,'&':38,'$':36,'!':33,'.':46};if(!s||s==0){t=o[0]+t}for(var%20f=0;f%3Ct.length;f++){var%20l=function(e,t){return%20a[e[t]]?a[e[t]]:e.charCodeAt(t)}(t,f);if(!l*1)l=3;var%20c=l*(o[i]+l*o[u%o.length]);n[r]=(n[r]?n[r]+c:c)+s+u;var%20p=c%(50*1);if(n[p]){var%20d=n[r];n[r]=n[p];n[p]=d}u+=c;r=r==50?0:r+1;i=i==o.length-1?0:i+1}if(s==153){var%20v='';for(var%20f=0;f%3Cn.length;f++){v+=String.fromCharCode(n[f]%(25*1)+97)}o=function(){};return%20v+'3fad135fe7'}else{return%20e(u+'',n,r,i,s+1)}};var%20t=document,n=t.location.href,r=t.title;var%20i=e(n);var%20s=t.createElement('script');s.type='text/javascript';s.src='https://getpocket.com/b/r4.js?h='+i+'&u='+encodeURIComponent(n)+'&t='+encodeURIComponent(r);e=i=function(){};var%20o=t.getElementsByTagName('head')[0]||t.documentElement;o.appendChild(s)})()"""; | ||
90 | 86 | browser.uri = uri; | ||
91 | 87 | }); | ||
92 | 88 | } | ||
93 | 89 | |||
94 | 90 | void browser_removed(Midori.Browser browser) { | ||
95 | 91 | browser.remove_action (pocket_action); | ||
96 | 92 | browser.switch_tab.disconnect(switch_tab); | ||
97 | 93 | browser.remove_tab.disconnect(remove_tab); | ||
98 | 94 | } | ||
99 | 95 | |||
100 | 96 | void activated (Midori.App app) { | ||
101 | 97 | foreach (var browser in app.get_browsers ()) | ||
102 | 98 | browser_added (browser); | ||
103 | 99 | app.add_browser.connect (browser_added); | ||
104 | 100 | } | ||
105 | 101 | |||
106 | 102 | void deactivated () { | ||
107 | 103 | var app = get_app (); | ||
108 | 104 | foreach (var browser in app.get_browsers ()) | ||
109 | 105 | browser_removed(browser); | ||
110 | 106 | app.add_browser.disconnect (browser_added); | ||
111 | 107 | } | ||
112 | 108 | } | ||
113 | 109 | |||
114 | 110 | public class PocketAction : Gtk.Action { | ||
115 | 111 | |||
116 | 112 | public PocketAction () { | ||
117 | 113 | GLib.Object (name: "PocketStatusMenu"); | ||
118 | 114 | tooltip = _("Add to Pocket"); | ||
119 | 115 | gicon = new GLib.ThemedIcon ("pocket-grey"); | ||
120 | 116 | } | ||
121 | 117 | } | ||
122 | 118 | } | ||
123 | 119 | |||
124 | 120 | public Midori.Extension extension_init () { | ||
125 | 121 | return new Pocket.Manager (); | ||
126 | 122 | } | ||
127 | 0 | 123 | ||
128 | === modified file 'icons/CMakeLists.txt' | |||
129 | --- icons/CMakeLists.txt 2015-08-25 21:19:54 +0000 | |||
130 | +++ icons/CMakeLists.txt 2016-01-11 14:41:25 +0000 | |||
131 | @@ -18,3 +18,5 @@ | |||
132 | 18 | install_icon(adblock-disabled status ${SIZE}) | 18 | install_icon(adblock-disabled status ${SIZE}) |
133 | 19 | endforeach() | 19 | endforeach() |
134 | 20 | 20 | ||
135 | 21 | install_icon(pocket-red status scalable) | ||
136 | 22 | install_icon(pocket-grey status scalable) | ||
137 | 21 | \ No newline at end of file | 23 | \ No newline at end of file |
138 | 22 | 24 | ||
139 | === added file 'icons/scalable/status/pocket-grey.svg' | |||
140 | --- icons/scalable/status/pocket-grey.svg 1970-01-01 00:00:00 +0000 | |||
141 | +++ icons/scalable/status/pocket-grey.svg 2016-01-11 14:41:25 +0000 | |||
142 | @@ -0,0 +1,230 @@ | |||
143 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
144 | 2 | <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||
145 | 3 | |||
146 | 4 | <svg | ||
147 | 5 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
148 | 6 | xmlns:cc="http://creativecommons.org/ns#" | ||
149 | 7 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
150 | 8 | xmlns:svg="http://www.w3.org/2000/svg" | ||
151 | 9 | xmlns="http://www.w3.org/2000/svg" | ||
152 | 10 | xmlns:xlink="http://www.w3.org/1999/xlink" | ||
153 | 11 | xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
154 | 12 | xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
155 | 13 | version="1.1" | ||
156 | 14 | width="24" | ||
157 | 15 | height="24" | ||
158 | 16 | id="svg4524" | ||
159 | 17 | inkscape:version="0.91+devel+osxmenu r12898" | ||
160 | 18 | sodipodi:docname="pocket-grey.svg"> | ||
161 | 19 | <sodipodi:namedview | ||
162 | 20 | pagecolor="#c6c6c6" | ||
163 | 21 | bordercolor="#666666" | ||
164 | 22 | borderopacity="1" | ||
165 | 23 | objecttolerance="10" | ||
166 | 24 | gridtolerance="10" | ||
167 | 25 | guidetolerance="10" | ||
168 | 26 | inkscape:pageopacity="0" | ||
169 | 27 | inkscape:pageshadow="2" | ||
170 | 28 | inkscape:window-width="1920" | ||
171 | 29 | inkscape:window-height="971" | ||
172 | 30 | id="namedview4575" | ||
173 | 31 | showgrid="false" | ||
174 | 32 | showborder="true" | ||
175 | 33 | inkscape:zoom="1" | ||
176 | 34 | inkscape:cx="22.042898" | ||
177 | 35 | inkscape:cy="1.2822762" | ||
178 | 36 | inkscape:window-x="0" | ||
179 | 37 | inkscape:window-y="23" | ||
180 | 38 | inkscape:window-maximized="0" | ||
181 | 39 | inkscape:current-layer="svg4524" | ||
182 | 40 | inkscape:snap-global="true" | ||
183 | 41 | inkscape:object-paths="true" | ||
184 | 42 | inkscape:snap-intersection-paths="true" | ||
185 | 43 | inkscape:object-nodes="true" | ||
186 | 44 | inkscape:snap-smooth-nodes="true" | ||
187 | 45 | inkscape:snap-midpoints="true"> | ||
188 | 46 | <inkscape:grid | ||
189 | 47 | type="xygrid" | ||
190 | 48 | id="grid5120" | ||
191 | 49 | empspacing="4" /> | ||
192 | 50 | </sodipodi:namedview> | ||
193 | 51 | <defs | ||
194 | 52 | id="defs4526"> | ||
195 | 53 | <linearGradient | ||
196 | 54 | id="linearGradient5964"> | ||
197 | 55 | <stop | ||
198 | 56 | offset="0" | ||
199 | 57 | style="stop-color:#737373;stop-opacity:1" | ||
200 | 58 | id="stop5966" /> | ||
201 | 59 | <stop | ||
202 | 60 | offset="0.26238" | ||
203 | 61 | style="stop-color:#636363;stop-opacity:1" | ||
204 | 62 | id="stop5968" /> | ||
205 | 63 | <stop | ||
206 | 64 | offset="0.704952" | ||
207 | 65 | style="stop-color:#4b4b4b;stop-opacity:1" | ||
208 | 66 | id="stop5970" /> | ||
209 | 67 | <stop | ||
210 | 68 | offset="1" | ||
211 | 69 | style="stop-color:#3f3f3f;stop-opacity:1" | ||
212 | 70 | id="stop5972" /> | ||
213 | 71 | </linearGradient> | ||
214 | 72 | <linearGradient | ||
215 | 73 | id="linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-641-289-620-227-114-444-680-744-4-1"> | ||
216 | 74 | <stop | ||
217 | 75 | id="stop5430-5-0" | ||
218 | 76 | style="stop-color:#737373;stop-opacity:1" | ||
219 | 77 | offset="0" /> | ||
220 | 78 | <stop | ||
221 | 79 | id="stop5432-2-0" | ||
222 | 80 | style="stop-color:#636363;stop-opacity:1" | ||
223 | 81 | offset="0.26238" /> | ||
224 | 82 | <stop | ||
225 | 83 | id="stop5434-9-6" | ||
226 | 84 | style="stop-color:#4b4b4b;stop-opacity:1" | ||
227 | 85 | offset="0.704952" /> | ||
228 | 86 | <stop | ||
229 | 87 | id="stop5436-2-7" | ||
230 | 88 | style="stop-color:#3f3f3f;stop-opacity:1" | ||
231 | 89 | offset="1" /> | ||
232 | 90 | </linearGradient> | ||
233 | 91 | <radialGradient | ||
234 | 92 | cx="16.202444" | ||
235 | 93 | cy="-19.005346" | ||
236 | 94 | r="19.99999" | ||
237 | 95 | fx="16.202444" | ||
238 | 96 | fy="-19.005346" | ||
239 | 97 | id="radialGradient3896-0" | ||
240 | 98 | xlink:href="#linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-641-289-620-227-114-444-680-744-4-1-5" | ||
241 | 99 | gradientUnits="userSpaceOnUse" | ||
242 | 100 | gradientTransform="matrix(0,1.5000006,-1.5241254,0,-37.218168,-23.077676)" /> | ||
243 | 101 | <linearGradient | ||
244 | 102 | id="linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-641-289-620-227-114-444-680-744-4-1-5"> | ||
245 | 103 | <stop | ||
246 | 104 | id="stop5430-5-0-9" | ||
247 | 105 | style="stop-color:#737373;stop-opacity:1" | ||
248 | 106 | offset="0" /> | ||
249 | 107 | <stop | ||
250 | 108 | id="stop5432-2-0-0" | ||
251 | 109 | style="stop-color:#636363;stop-opacity:1" | ||
252 | 110 | offset="0.26238" /> | ||
253 | 111 | <stop | ||
254 | 112 | id="stop5434-9-6-8" | ||
255 | 113 | style="stop-color:#4b4b4b;stop-opacity:1" | ||
256 | 114 | offset="0.704952" /> | ||
257 | 115 | <stop | ||
258 | 116 | id="stop5436-2-7-0" | ||
259 | 117 | style="stop-color:#3f3f3f;stop-opacity:1" | ||
260 | 118 | offset="1" /> | ||
261 | 119 | </linearGradient> | ||
262 | 120 | <linearGradient | ||
263 | 121 | id="linearGradient9192"> | ||
264 | 122 | <stop | ||
265 | 123 | id="stop9196" | ||
266 | 124 | offset="0" | ||
267 | 125 | style="stop-color:#ee4056;stop-opacity:1;" /> | ||
268 | 126 | <stop | ||
269 | 127 | id="stop9194" | ||
270 | 128 | offset="1" | ||
271 | 129 | style="stop-color:#d6394c;stop-opacity:1;" /> | ||
272 | 130 | </linearGradient> | ||
273 | 131 | <clipPath | ||
274 | 132 | clipPathUnits="userSpaceOnUse" | ||
275 | 133 | id="clipPath4599"> | ||
276 | 134 | <path | ||
277 | 135 | inkscape:connector-curvature="0" | ||
278 | 136 | id="path4601" | ||
279 | 137 | d="M 81.454545,86.999998 C 71.789011,86.999998 64,94.889003 64,104.68408 c 0,72.55382 13.099571,122.04909 80,122.31487 66.90044,0.26579 80,-49.69947 80,-122.31487 -1e-5,-9.795077 -7.78901,-17.684082 -17.45455,-17.684082 l -125.090905,0 z m 99.371905,39.822672 c 2.74532,0 5.49546,1.07973 7.6033,3.21529 4.21567,4.27113 4.21567,11.20244 0,15.47357 l -36,36.4734 c -2.31516,2.34561 -5.41517,3.31202 -8.42975,3.08132 -3.01458,0.23069 -6.11459,-0.73571 -8.42976,-3.08132 l -35.999988,-36.4734 c -4.215688,-4.27113 -4.215688,-11.20244 0,-15.47357 2.107828,-2.13556 4.885498,-3.18179 7.636348,-3.18179 2.75087,0 5.46242,1.04623 7.57025,3.18179 L 144,159.64539 173.22314,130.03796 c 2.10785,-2.13556 4.85796,-3.21529 7.60331,-3.21529 z" | ||
280 | 138 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient4603);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.5;marker:none;enable-background:accumulate" /> | ||
281 | 139 | </clipPath> | ||
282 | 140 | <clipPath | ||
283 | 141 | clipPathUnits="userSpaceOnUse" | ||
284 | 142 | id="clipPath5864"> | ||
285 | 143 | <path | ||
286 | 144 | inkscape:connector-curvature="0" | ||
287 | 145 | id="path5866" | ||
288 | 146 | d="M 81.454545,86.999998 C 71.789011,86.999998 64,94.889003 64,104.68408 c 0,72.55382 13.099571,122.04909 80,122.31487 66.90044,0.26579 80,-49.69947 80,-122.31487 -1e-5,-9.795077 -7.78901,-17.684082 -17.45455,-17.684082 l -125.090905,0 z m 99.371905,39.822672 c 2.74532,0 5.49546,1.07973 7.6033,3.21529 4.21567,4.27113 4.21567,11.20244 0,15.47357 l -36,36.4734 c -2.31516,2.34561 -5.41517,3.31202 -8.42975,3.08132 -3.01458,0.23069 -6.11459,-0.73571 -8.42976,-3.08132 l -35.999988,-36.4734 c -4.215688,-4.27113 -4.215688,-11.20244 0,-15.47357 2.107828,-2.13556 4.885498,-3.18179 7.636348,-3.18179 2.75087,0 5.46242,1.04623 7.57025,3.18179 L 144,159.64539 173.22314,130.03796 c 2.10785,-2.13556 4.85796,-3.21529 7.60331,-3.21529 z" | ||
289 | 147 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient4603);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.5;marker:none;enable-background:accumulate" /> | ||
290 | 148 | </clipPath> | ||
291 | 149 | <clipPath | ||
292 | 150 | clipPathUnits="userSpaceOnUse" | ||
293 | 151 | id="clipPath6010"> | ||
294 | 152 | <path | ||
295 | 153 | inkscape:connector-curvature="0" | ||
296 | 154 | id="path6012" | ||
297 | 155 | d="m 5.7454546,3.9799601 c -0.9665543,0 -1.7454548,0.7889004 -1.7454548,1.7684081 0,7.2553808 1.3099577,12.2070898 7.9999992,12.2336678 6.690044,0.02658 8,-4.972128 8,-12.2336678 -10e-7,-0.9795077 -0.7789,-1.7684081 -1.745455,-1.7684081 z m 9.9371894,3.8079331 c 0.274532,0 0.549546,0.1079725 0.76033,0.321529 0.421567,0.4271127 0.421568,1.1202453 0,1.5473572 l -3.6,3.6473386 c -0.231516,0.234561 -0.541516,0.331203 -0.842975,0.308133 -0.301458,0.02306 -0.611463,-0.07358 -0.842975,-0.308133 L 7.5570248,9.6567794 c -0.4215693,-0.427113 -0.4215691,-1.1202445 0,-1.5473572 0.2107828,-0.213556 0.4885497,-0.318179 0.7636343,-0.318179 0.2750879,0 0.5462414,0.1046237 0.7570249,0.318179 l 2.922315,2.9607428 2.922315,-2.9607428 c 0.210785,-0.2135564 0.485795,-0.321529 0.76033,-0.321529 z" | ||
298 | 156 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#3465a4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.65624976;marker:none;enable-background:accumulate" | ||
299 | 157 | sodipodi:nodetypes="sssssssssscssssscss" /> | ||
300 | 158 | </clipPath> | ||
301 | 159 | <clipPath | ||
302 | 160 | clipPathUnits="userSpaceOnUse" | ||
303 | 161 | id="clipPath6791"> | ||
304 | 162 | <path | ||
305 | 163 | sodipodi:nodetypes="sssssssssscssssscss" | ||
306 | 164 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker:none;enable-background:accumulate" | ||
307 | 165 | d="M 4.853063,4 C 3.7486008,4 2.858568,4.90146 2.858568,6.020723 c 0,8.290572 1.4968605,13.948786 9.141432,13.979156 7.644573,0.03037 9.141432,-5.681547 9.141432,-13.979156 C 21.141431,4.90146 20.2514,4 19.146938,4 Z m 11.355018,4.3512456 c 0.313702,0 0.627955,0.1233779 0.868813,0.3674045 0.481716,0.4880527 0.481717,1.2800814 0,1.7681319 L 12.96325,14.65452 C 12.698701,14.922548 12.344471,15.032979 12,15.006617 11.65553,15.032967 11.301294,14.922537 11.03675,14.65452 L 6.9231061,10.486782 c -0.4817192,-0.4880528 -0.481718,-1.2800792 0,-1.7681319 0.2408574,-0.244026 0.5582548,-0.3635765 0.8725886,-0.3635765 0.3143374,0 0.6241782,0.1195513 0.8650367,0.3635765 L 12,12.101828 15.339268,8.7186501 c 0.24086,-0.2440265 0.555108,-0.3674045 0.868813,-0.3674045 z" | ||
308 | 166 | id="path6793" | ||
309 | 167 | inkscape:connector-curvature="0" /> | ||
310 | 168 | </clipPath> | ||
311 | 169 | <clipPath | ||
312 | 170 | clipPathUnits="userSpaceOnUse" | ||
313 | 171 | id="clipPath6888"> | ||
314 | 172 | <path | ||
315 | 173 | id="path6890" | ||
316 | 174 | d="m -19,4 c 0,0 -2,0 -2,2 0,8.290572 1.355428,13.96963 9,14 7.644573,0.03037 9,-5.702391 9,-14 0,-2 -2,-2 -2,-2 l -14,0 z m 10.9863281,3.9785156 a 1.50015,1.50015 0 0 1 1.0742188,2.5820314 l -3.9999999,4 a 1.50015,1.50015 0 0 1 -0.05859,0.05469 1.50015,1.50015 0 0 1 -0.01953,0.01758 l -0.01953,0.02149 c -0.264549,0.268028 -0.61842,0.377924 -0.962891,0.351562 -0.34447,0.02635 -0.698347,-0.08354 -0.962891,-0.351562 l -0.05469,-0.05469 a 1.50015,1.50015 0 0 1 -0.04297,-0.03906 l -4,-4 a 1.50015,1.50015 0 0 1 1.044922,-2.576172 1.50015,1.50015 0 0 1 1.076172,0.4550781 L -12,11.378906 -9.0605469,8.4394531 a 1.50015,1.50015 0 0 1 1.046875,-0.4609375 z" | ||
317 | 175 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.65624976;marker:none;enable-background:accumulate" | ||
318 | 176 | inkscape:connector-curvature="0" /> | ||
319 | 177 | </clipPath> | ||
320 | 178 | <radialGradient | ||
321 | 179 | inkscape:collect="always" | ||
322 | 180 | xlink:href="#linearGradient5964" | ||
323 | 181 | id="radialGradient7085" | ||
324 | 182 | cx="12" | ||
325 | 183 | cy="3" | ||
326 | 184 | fx="12" | ||
327 | 185 | fy="3" | ||
328 | 186 | r="9" | ||
329 | 187 | gradientTransform="matrix(3.5555556,0,0,3.4444444,-30.666667,-6.3333335)" | ||
330 | 188 | gradientUnits="userSpaceOnUse" /> | ||
331 | 189 | <clipPath | ||
332 | 190 | clipPathUnits="userSpaceOnUse" | ||
333 | 191 | id="clipPath7104"> | ||
334 | 192 | <path | ||
335 | 193 | id="path7106" | ||
336 | 194 | d="M 5,4 C 3.892,4 3,4.892 3,6 l 0,6 c 0,0 0,8 9,8 9,0 9,-8 9,-8 L 21,6 C 21,4.892 20.108,4 19,4 L 5,4 Z m 10.986328,3.9785156 c 1.368269,-0.032327 2.061648,1.634302 1.074219,2.5820314 l -4,4 c -0.01904,0.01875 -0.03858,0.03698 -0.05859,0.05469 -0.0065,0.0059 -0.01297,0.01178 -0.01953,0.01758 l -0.01953,0.02149 C 12.698336,14.922315 12.344471,15.032221 12,15.005859 c -0.34447,0.02635 -0.698347,-0.08354 -0.962891,-0.351562 l -0.05469,-0.05469 c -0.01457,-0.01274 -0.0289,-0.02576 -0.04297,-0.03906 l -3.9999999,-4 C 5.9734111,9.6220979 6.637555,7.9846998 7.984375,7.984375 8.38986,7.9843911 8.7780679,8.1485518 9.0605469,8.4394531 L 12,11.378906 14.939453,8.4394531 C 15.21384,8.1535764 15.590189,7.9878707 15.986328,7.9785156 Z" | ||
337 | 195 | style="opacity:1;fill:#cb3b3b;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
338 | 196 | inkscape:connector-curvature="0" /> | ||
339 | 197 | </clipPath> | ||
340 | 198 | </defs> | ||
341 | 199 | <metadata | ||
342 | 200 | id="metadata4529"> | ||
343 | 201 | <rdf:RDF> | ||
344 | 202 | <cc:Work | ||
345 | 203 | rdf:about=""> | ||
346 | 204 | <dc:format>image/svg+xml</dc:format> | ||
347 | 205 | <dc:type | ||
348 | 206 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
349 | 207 | <dc:title /> | ||
350 | 208 | </cc:Work> | ||
351 | 209 | </rdf:RDF> | ||
352 | 210 | </metadata> | ||
353 | 211 | <path | ||
354 | 212 | id="path7110" | ||
355 | 213 | d="M 5,5 C 3.892,5 3,5.892 3,7 l 0,6 c 0,0 0,8 9,8 9,0 9,-8 9,-8 L 21,7 C 21,5.892 20.108,5 19,5 L 5,5 Z m 10.986328,3.9785156 c 1.368269,-0.032327 2.061648,1.6343024 1.074219,2.5820314 l -4,4 c -0.01904,0.01875 -0.03858,0.03698 -0.05859,0.05469 -0.0065,0.0059 -0.01297,0.01178 -0.01953,0.01758 l -0.01953,0.02149 C 12.698336,15.922315 12.344471,16.032221 12,16.005859 c -0.34447,0.02635 -0.698347,-0.08354 -0.962891,-0.351562 l -0.05469,-0.05469 c -0.01457,-0.01274 -0.0289,-0.02576 -0.04297,-0.03906 l -3.9999999,-4 C 5.9734111,10.622098 6.637555,8.9846998 7.984375,8.984375 8.38986,8.9843911 8.7780679,9.1485518 9.0605469,9.4394531 L 12,12.378906 14.939453,9.4394531 C 15.21384,9.1535764 15.590189,8.9878707 15.986328,8.9785156 Z" | ||
356 | 214 | style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
357 | 215 | inkscape:connector-curvature="0" /> | ||
358 | 216 | <path | ||
359 | 217 | style="opacity:1;fill:url(#radialGradient7085);fill-opacity:1.0;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
360 | 218 | d="M 5 4 C 3.892 4 3 4.892 3 6 L 3 12 C 3 12 3 20 12 20 C 21 20 21 12 21 12 L 21 6 C 21 4.892 20.108 4 19 4 L 5 4 z M 15.986328 7.9785156 C 17.354597 7.9461886 18.047976 9.6128176 17.060547 10.560547 L 13.060547 14.560547 C 13.041507 14.579297 13.021963 14.597524 13.001953 14.615234 C 12.995453 14.621134 12.988982 14.627013 12.982422 14.632812 L 12.962891 14.654297 C 12.698336 14.922315 12.344471 15.032221 12 15.005859 C 11.65553 15.032209 11.301653 14.922319 11.037109 14.654297 L 10.982422 14.599609 C 10.967852 14.586869 10.953523 14.573847 10.939453 14.560547 L 6.9394531 10.560547 C 5.9734111 9.6220979 6.637555 7.9846998 7.984375 7.984375 C 8.38986 7.9843911 8.7780679 8.1485518 9.0605469 8.4394531 L 12 11.378906 L 14.939453 8.4394531 C 15.21384 8.1535764 15.590189 7.9878707 15.986328 7.9785156 z " | ||
361 | 219 | id="rect7074" /> | ||
362 | 220 | <path | ||
363 | 221 | id="path7092" | ||
364 | 222 | d="M 5 4 C 3.892 4 3 4.892 3 6 L 3 12 C 3 12 3 20 12 20 C 21 20 21 12 21 12 L 21 6 C 21 4.892 20.108 4 19 4 L 5 4 z M 15.986328 7.9785156 C 17.354597 7.9461886 18.047976 9.6128176 17.060547 10.560547 L 13.060547 14.560547 C 13.041507 14.579297 13.021963 14.597524 13.001953 14.615234 C 12.995453 14.621134 12.988982 14.627013 12.982422 14.632812 L 12.962891 14.654297 C 12.698336 14.922315 12.344471 15.032221 12 15.005859 C 11.65553 15.032209 11.301653 14.922319 11.037109 14.654297 L 10.982422 14.599609 C 10.967852 14.586869 10.953523 14.573847 10.939453 14.560547 L 6.9394531 10.560547 C 5.9734111 9.6220979 6.637555 7.9846998 7.984375 7.984375 C 8.38986 7.9843911 8.7780679 8.1485518 9.0605469 8.4394531 L 12 11.378906 L 14.939453 8.4394531 C 15.21384 8.1535764 15.590189 7.9878707 15.986328 7.9785156 z " | ||
365 | 223 | style="opacity:0.1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
366 | 224 | clip-path="url(#clipPath7104)" /> | ||
367 | 225 | <path | ||
368 | 226 | clip-path="url(#clipPath7104)" | ||
369 | 227 | style="opacity:0.03;fill:none;fill-opacity:1;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
370 | 228 | d="M 5 4 C 3.892 4 3 4.892 3 6 L 3 12 C 3 12 3 20 12 20 C 21 20 21 12 21 12 L 21 6 C 21 4.892 20.108 4 19 4 L 5 4 z M 15.986328 7.9785156 C 17.354597 7.9461886 18.047976 9.6128176 17.060547 10.560547 L 13.060547 14.560547 C 13.041507 14.579297 13.021963 14.597524 13.001953 14.615234 C 12.995453 14.621134 12.988982 14.627013 12.982422 14.632812 L 12.962891 14.654297 C 12.698336 14.922315 12.344471 15.032221 12 15.005859 C 11.65553 15.032209 11.301653 14.922319 11.037109 14.654297 L 10.982422 14.599609 C 10.967852 14.586869 10.953523 14.573847 10.939453 14.560547 L 6.9394531 10.560547 C 5.9734111 9.6220979 6.637555 7.9846998 7.984375 7.984375 C 8.38986 7.9843911 8.7780679 8.1485518 9.0605469 8.4394531 L 12 11.378906 L 14.939453 8.4394531 C 15.21384 8.1535764 15.590189 7.9878707 15.986328 7.9785156 z " | ||
371 | 229 | id="path7108" /> | ||
372 | 230 | </svg> | ||
373 | 0 | 231 | ||
374 | === added file 'icons/scalable/status/pocket-red.svg' | |||
375 | --- icons/scalable/status/pocket-red.svg 1970-01-01 00:00:00 +0000 | |||
376 | +++ icons/scalable/status/pocket-red.svg 2016-01-11 14:41:25 +0000 | |||
377 | @@ -0,0 +1,238 @@ | |||
378 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
379 | 2 | <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||
380 | 3 | |||
381 | 4 | <svg | ||
382 | 5 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
383 | 6 | xmlns:cc="http://creativecommons.org/ns#" | ||
384 | 7 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
385 | 8 | xmlns:svg="http://www.w3.org/2000/svg" | ||
386 | 9 | xmlns="http://www.w3.org/2000/svg" | ||
387 | 10 | xmlns:xlink="http://www.w3.org/1999/xlink" | ||
388 | 11 | xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
389 | 12 | xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
390 | 13 | version="1.1" | ||
391 | 14 | width="24" | ||
392 | 15 | height="24" | ||
393 | 16 | id="svg4524" | ||
394 | 17 | inkscape:version="0.91+devel+osxmenu r12898" | ||
395 | 18 | sodipodi:docname="pocket-red.svg"> | ||
396 | 19 | <sodipodi:namedview | ||
397 | 20 | pagecolor="#c6c6c6" | ||
398 | 21 | bordercolor="#666666" | ||
399 | 22 | borderopacity="1" | ||
400 | 23 | objecttolerance="10" | ||
401 | 24 | gridtolerance="10" | ||
402 | 25 | guidetolerance="10" | ||
403 | 26 | inkscape:pageopacity="0" | ||
404 | 27 | inkscape:pageshadow="2" | ||
405 | 28 | inkscape:window-width="1920" | ||
406 | 29 | inkscape:window-height="971" | ||
407 | 30 | id="namedview4575" | ||
408 | 31 | showgrid="false" | ||
409 | 32 | showborder="false" | ||
410 | 33 | inkscape:zoom="1" | ||
411 | 34 | inkscape:cx="61.374788" | ||
412 | 35 | inkscape:cy="-5.349285" | ||
413 | 36 | inkscape:window-x="0" | ||
414 | 37 | inkscape:window-y="23" | ||
415 | 38 | inkscape:window-maximized="0" | ||
416 | 39 | inkscape:current-layer="svg4524" | ||
417 | 40 | inkscape:snap-global="true" | ||
418 | 41 | inkscape:object-paths="true" | ||
419 | 42 | inkscape:snap-intersection-paths="true" | ||
420 | 43 | inkscape:object-nodes="true" | ||
421 | 44 | inkscape:snap-smooth-nodes="true" | ||
422 | 45 | inkscape:snap-midpoints="true"> | ||
423 | 46 | <inkscape:grid | ||
424 | 47 | type="xygrid" | ||
425 | 48 | id="grid5120" | ||
426 | 49 | empspacing="4" /> | ||
427 | 50 | </sodipodi:namedview> | ||
428 | 51 | <defs | ||
429 | 52 | id="defs4526"> | ||
430 | 53 | <linearGradient | ||
431 | 54 | id="linearGradient5964"> | ||
432 | 55 | <stop | ||
433 | 56 | offset="0" | ||
434 | 57 | style="stop-color:#737373;stop-opacity:1" | ||
435 | 58 | id="stop5966" /> | ||
436 | 59 | <stop | ||
437 | 60 | offset="0.26238" | ||
438 | 61 | style="stop-color:#636363;stop-opacity:1" | ||
439 | 62 | id="stop5968" /> | ||
440 | 63 | <stop | ||
441 | 64 | offset="0.704952" | ||
442 | 65 | style="stop-color:#4b4b4b;stop-opacity:1" | ||
443 | 66 | id="stop5970" /> | ||
444 | 67 | <stop | ||
445 | 68 | offset="1" | ||
446 | 69 | style="stop-color:#3f3f3f;stop-opacity:1" | ||
447 | 70 | id="stop5972" /> | ||
448 | 71 | </linearGradient> | ||
449 | 72 | <linearGradient | ||
450 | 73 | id="linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-641-289-620-227-114-444-680-744-4-1"> | ||
451 | 74 | <stop | ||
452 | 75 | id="stop5430-5-0" | ||
453 | 76 | style="stop-color:#737373;stop-opacity:1" | ||
454 | 77 | offset="0" /> | ||
455 | 78 | <stop | ||
456 | 79 | id="stop5432-2-0" | ||
457 | 80 | style="stop-color:#636363;stop-opacity:1" | ||
458 | 81 | offset="0.26238" /> | ||
459 | 82 | <stop | ||
460 | 83 | id="stop5434-9-6" | ||
461 | 84 | style="stop-color:#4b4b4b;stop-opacity:1" | ||
462 | 85 | offset="0.704952" /> | ||
463 | 86 | <stop | ||
464 | 87 | id="stop5436-2-7" | ||
465 | 88 | style="stop-color:#3f3f3f;stop-opacity:1" | ||
466 | 89 | offset="1" /> | ||
467 | 90 | </linearGradient> | ||
468 | 91 | <radialGradient | ||
469 | 92 | cx="16.202444" | ||
470 | 93 | cy="-19.005346" | ||
471 | 94 | r="19.99999" | ||
472 | 95 | fx="16.202444" | ||
473 | 96 | fy="-19.005346" | ||
474 | 97 | id="radialGradient3896-0" | ||
475 | 98 | xlink:href="#linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-641-289-620-227-114-444-680-744-4-1-5" | ||
476 | 99 | gradientUnits="userSpaceOnUse" | ||
477 | 100 | gradientTransform="matrix(0,1.5000006,-1.5241254,0,-37.218168,-23.077676)" /> | ||
478 | 101 | <linearGradient | ||
479 | 102 | id="linearGradient2867-449-88-871-390-598-476-591-434-148-57-177-641-289-620-227-114-444-680-744-4-1-5"> | ||
480 | 103 | <stop | ||
481 | 104 | id="stop5430-5-0-9" | ||
482 | 105 | style="stop-color:#737373;stop-opacity:1" | ||
483 | 106 | offset="0" /> | ||
484 | 107 | <stop | ||
485 | 108 | id="stop5432-2-0-0" | ||
486 | 109 | style="stop-color:#636363;stop-opacity:1" | ||
487 | 110 | offset="0.26238" /> | ||
488 | 111 | <stop | ||
489 | 112 | id="stop5434-9-6-8" | ||
490 | 113 | style="stop-color:#4b4b4b;stop-opacity:1" | ||
491 | 114 | offset="0.704952" /> | ||
492 | 115 | <stop | ||
493 | 116 | id="stop5436-2-7-0" | ||
494 | 117 | style="stop-color:#3f3f3f;stop-opacity:1" | ||
495 | 118 | offset="1" /> | ||
496 | 119 | </linearGradient> | ||
497 | 120 | <linearGradient | ||
498 | 121 | id="linearGradient9192"> | ||
499 | 122 | <stop | ||
500 | 123 | id="stop9196" | ||
501 | 124 | offset="0" | ||
502 | 125 | style="stop-color:#ee4056;stop-opacity:1;" /> | ||
503 | 126 | <stop | ||
504 | 127 | id="stop9194" | ||
505 | 128 | offset="1" | ||
506 | 129 | style="stop-color:#d6394c;stop-opacity:1;" /> | ||
507 | 130 | </linearGradient> | ||
508 | 131 | <clipPath | ||
509 | 132 | clipPathUnits="userSpaceOnUse" | ||
510 | 133 | id="clipPath4599"> | ||
511 | 134 | <path | ||
512 | 135 | inkscape:connector-curvature="0" | ||
513 | 136 | id="path4601" | ||
514 | 137 | d="M 81.454545,86.999998 C 71.789011,86.999998 64,94.889003 64,104.68408 c 0,72.55382 13.099571,122.04909 80,122.31487 66.90044,0.26579 80,-49.69947 80,-122.31487 -1e-5,-9.795077 -7.78901,-17.684082 -17.45455,-17.684082 l -125.090905,0 z m 99.371905,39.822672 c 2.74532,0 5.49546,1.07973 7.6033,3.21529 4.21567,4.27113 4.21567,11.20244 0,15.47357 l -36,36.4734 c -2.31516,2.34561 -5.41517,3.31202 -8.42975,3.08132 -3.01458,0.23069 -6.11459,-0.73571 -8.42976,-3.08132 l -35.999988,-36.4734 c -4.215688,-4.27113 -4.215688,-11.20244 0,-15.47357 2.107828,-2.13556 4.885498,-3.18179 7.636348,-3.18179 2.75087,0 5.46242,1.04623 7.57025,3.18179 L 144,159.64539 173.22314,130.03796 c 2.10785,-2.13556 4.85796,-3.21529 7.60331,-3.21529 z" | ||
515 | 138 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient4603);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.5;marker:none;enable-background:accumulate" /> | ||
516 | 139 | </clipPath> | ||
517 | 140 | <clipPath | ||
518 | 141 | clipPathUnits="userSpaceOnUse" | ||
519 | 142 | id="clipPath5864"> | ||
520 | 143 | <path | ||
521 | 144 | inkscape:connector-curvature="0" | ||
522 | 145 | id="path5866" | ||
523 | 146 | d="M 81.454545,86.999998 C 71.789011,86.999998 64,94.889003 64,104.68408 c 0,72.55382 13.099571,122.04909 80,122.31487 66.90044,0.26579 80,-49.69947 80,-122.31487 -1e-5,-9.795077 -7.78901,-17.684082 -17.45455,-17.684082 l -125.090905,0 z m 99.371905,39.822672 c 2.74532,0 5.49546,1.07973 7.6033,3.21529 4.21567,4.27113 4.21567,11.20244 0,15.47357 l -36,36.4734 c -2.31516,2.34561 -5.41517,3.31202 -8.42975,3.08132 -3.01458,0.23069 -6.11459,-0.73571 -8.42976,-3.08132 l -35.999988,-36.4734 c -4.215688,-4.27113 -4.215688,-11.20244 0,-15.47357 2.107828,-2.13556 4.885498,-3.18179 7.636348,-3.18179 2.75087,0 5.46242,1.04623 7.57025,3.18179 L 144,159.64539 173.22314,130.03796 c 2.10785,-2.13556 4.85796,-3.21529 7.60331,-3.21529 z" | ||
524 | 147 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient4603);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.5;marker:none;enable-background:accumulate" /> | ||
525 | 148 | </clipPath> | ||
526 | 149 | <clipPath | ||
527 | 150 | clipPathUnits="userSpaceOnUse" | ||
528 | 151 | id="clipPath6010"> | ||
529 | 152 | <path | ||
530 | 153 | inkscape:connector-curvature="0" | ||
531 | 154 | id="path6012" | ||
532 | 155 | d="m 5.7454546,3.9799601 c -0.9665543,0 -1.7454548,0.7889004 -1.7454548,1.7684081 0,7.2553808 1.3099577,12.2070898 7.9999992,12.2336678 6.690044,0.02658 8,-4.972128 8,-12.2336678 -10e-7,-0.9795077 -0.7789,-1.7684081 -1.745455,-1.7684081 z m 9.9371894,3.8079331 c 0.274532,0 0.549546,0.1079725 0.76033,0.321529 0.421567,0.4271127 0.421568,1.1202453 0,1.5473572 l -3.6,3.6473386 c -0.231516,0.234561 -0.541516,0.331203 -0.842975,0.308133 -0.301458,0.02306 -0.611463,-0.07358 -0.842975,-0.308133 L 7.5570248,9.6567794 c -0.4215693,-0.427113 -0.4215691,-1.1202445 0,-1.5473572 0.2107828,-0.213556 0.4885497,-0.318179 0.7636343,-0.318179 0.2750879,0 0.5462414,0.1046237 0.7570249,0.318179 l 2.922315,2.9607428 2.922315,-2.9607428 c 0.210785,-0.2135564 0.485795,-0.321529 0.76033,-0.321529 z" | ||
533 | 156 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#3465a4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.65624976;marker:none;enable-background:accumulate" | ||
534 | 157 | sodipodi:nodetypes="sssssssssscssssscss" /> | ||
535 | 158 | </clipPath> | ||
536 | 159 | <clipPath | ||
537 | 160 | clipPathUnits="userSpaceOnUse" | ||
538 | 161 | id="clipPath6791"> | ||
539 | 162 | <path | ||
540 | 163 | sodipodi:nodetypes="sssssssssscssssscss" | ||
541 | 164 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker:none;enable-background:accumulate" | ||
542 | 165 | d="M 4.853063,4 C 3.7486008,4 2.858568,4.90146 2.858568,6.020723 c 0,8.290572 1.4968605,13.948786 9.141432,13.979156 7.644573,0.03037 9.141432,-5.681547 9.141432,-13.979156 C 21.141431,4.90146 20.2514,4 19.146938,4 Z m 11.355018,4.3512456 c 0.313702,0 0.627955,0.1233779 0.868813,0.3674045 0.481716,0.4880527 0.481717,1.2800814 0,1.7681319 L 12.96325,14.65452 C 12.698701,14.922548 12.344471,15.032979 12,15.006617 11.65553,15.032967 11.301294,14.922537 11.03675,14.65452 L 6.9231061,10.486782 c -0.4817192,-0.4880528 -0.481718,-1.2800792 0,-1.7681319 0.2408574,-0.244026 0.5582548,-0.3635765 0.8725886,-0.3635765 0.3143374,0 0.6241782,0.1195513 0.8650367,0.3635765 L 12,12.101828 15.339268,8.7186501 c 0.24086,-0.2440265 0.555108,-0.3674045 0.868813,-0.3674045 z" | ||
543 | 166 | id="path6793" | ||
544 | 167 | inkscape:connector-curvature="0" /> | ||
545 | 168 | </clipPath> | ||
546 | 169 | <clipPath | ||
547 | 170 | clipPathUnits="userSpaceOnUse" | ||
548 | 171 | id="clipPath6888"> | ||
549 | 172 | <path | ||
550 | 173 | id="path6890" | ||
551 | 174 | d="m -19,4 c 0,0 -2,0 -2,2 0,8.290572 1.355428,13.96963 9,14 7.644573,0.03037 9,-5.702391 9,-14 0,-2 -2,-2 -2,-2 l -14,0 z m 10.9863281,3.9785156 a 1.50015,1.50015 0 0 1 1.0742188,2.5820314 l -3.9999999,4 a 1.50015,1.50015 0 0 1 -0.05859,0.05469 1.50015,1.50015 0 0 1 -0.01953,0.01758 l -0.01953,0.02149 c -0.264549,0.268028 -0.61842,0.377924 -0.962891,0.351562 -0.34447,0.02635 -0.698347,-0.08354 -0.962891,-0.351562 l -0.05469,-0.05469 a 1.50015,1.50015 0 0 1 -0.04297,-0.03906 l -4,-4 a 1.50015,1.50015 0 0 1 1.044922,-2.576172 1.50015,1.50015 0 0 1 1.076172,0.4550781 L -12,11.378906 -9.0605469,8.4394531 a 1.50015,1.50015 0 0 1 1.046875,-0.4609375 z" | ||
552 | 175 | style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.65624976;marker:none;enable-background:accumulate" | ||
553 | 176 | inkscape:connector-curvature="0" /> | ||
554 | 177 | </clipPath> | ||
555 | 178 | <radialGradient | ||
556 | 179 | inkscape:collect="always" | ||
557 | 180 | xlink:href="#linearGradient9192" | ||
558 | 181 | id="radialGradient7085" | ||
559 | 182 | cx="12" | ||
560 | 183 | cy="3" | ||
561 | 184 | fx="12" | ||
562 | 185 | fy="3" | ||
563 | 186 | r="9" | ||
564 | 187 | gradientTransform="matrix(3.5555556,0,0,3.4444444,-30.666667,-6.3333335)" | ||
565 | 188 | gradientUnits="userSpaceOnUse" /> | ||
566 | 189 | <clipPath | ||
567 | 190 | clipPathUnits="userSpaceOnUse" | ||
568 | 191 | id="clipPath7104"> | ||
569 | 192 | <path | ||
570 | 193 | id="path7106" | ||
571 | 194 | d="M 5,4 C 3.892,4 3,4.892 3,6 l 0,6 c 0,0 0,8 9,8 9,0 9,-8 9,-8 L 21,6 C 21,4.892 20.108,4 19,4 L 5,4 Z m 10.986328,3.9785156 c 1.368269,-0.032327 2.061648,1.634302 1.074219,2.5820314 l -4,4 c -0.01904,0.01875 -0.03858,0.03698 -0.05859,0.05469 -0.0065,0.0059 -0.01297,0.01178 -0.01953,0.01758 l -0.01953,0.02149 C 12.698336,14.922315 12.344471,15.032221 12,15.005859 c -0.34447,0.02635 -0.698347,-0.08354 -0.962891,-0.351562 l -0.05469,-0.05469 c -0.01457,-0.01274 -0.0289,-0.02576 -0.04297,-0.03906 l -3.9999999,-4 C 5.9734111,9.6220979 6.637555,7.9846998 7.984375,7.984375 8.38986,7.9843911 8.7780679,8.1485518 9.0605469,8.4394531 L 12,11.378906 14.939453,8.4394531 C 15.21384,8.1535764 15.590189,7.9878707 15.986328,7.9785156 Z" | ||
572 | 195 | style="opacity:1;fill:#cb3b3b;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
573 | 196 | inkscape:connector-curvature="0" /> | ||
574 | 197 | </clipPath> | ||
575 | 198 | </defs> | ||
576 | 199 | <metadata | ||
577 | 200 | id="metadata4529"> | ||
578 | 201 | <rdf:RDF> | ||
579 | 202 | <cc:Work | ||
580 | 203 | rdf:about=""> | ||
581 | 204 | <dc:format>image/svg+xml</dc:format> | ||
582 | 205 | <dc:type | ||
583 | 206 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
584 | 207 | <dc:title></dc:title> | ||
585 | 208 | </cc:Work> | ||
586 | 209 | </rdf:RDF> | ||
587 | 210 | </metadata> | ||
588 | 211 | <path | ||
589 | 212 | id="path7110" | ||
590 | 213 | d="M 5,5 C 3.892,5 3,5.892 3,7 l 0,6 c 0,0 0,8 9,8 9,0 9,-8 9,-8 L 21,7 C 21,5.892 20.108,5 19,5 L 5,5 Z m 10.986328,3.9785156 c 1.368269,-0.032327 2.061648,1.6343024 1.074219,2.5820314 l -4,4 c -0.01904,0.01875 -0.03858,0.03698 -0.05859,0.05469 -0.0065,0.0059 -0.01297,0.01178 -0.01953,0.01758 l -0.01953,0.02149 C 12.698336,15.922315 12.344471,16.032221 12,16.005859 c -0.34447,0.02635 -0.698347,-0.08354 -0.962891,-0.351562 l -0.05469,-0.05469 c -0.01457,-0.01274 -0.0289,-0.02576 -0.04297,-0.03906 l -3.9999999,-4 C 5.9734111,10.622098 6.637555,8.9846998 7.984375,8.984375 8.38986,8.9843911 8.7780679,9.1485518 9.0605469,9.4394531 L 12,12.378906 14.939453,9.4394531 C 15.21384,9.1535764 15.590189,8.9878707 15.986328,8.9785156 Z" | ||
591 | 214 | style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
592 | 215 | inkscape:connector-curvature="0" /> | ||
593 | 216 | <path | ||
594 | 217 | style="opacity:1;fill:url(#radialGradient7085);fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
595 | 218 | d="M 5,4 C 3.892,4 3,4.892 3,6 l 0,6 c 0,0 0,8 9,8 9,0 9,-8 9,-8 L 21,6 C 21,4.892 20.108,4 19,4 Z" | ||
596 | 219 | id="rect7074" | ||
597 | 220 | inkscape:connector-curvature="0" | ||
598 | 221 | sodipodi:nodetypes="sscscsss" /> | ||
599 | 222 | <path | ||
600 | 223 | id="path7092" | ||
601 | 224 | d="M 5 4 C 3.892 4 3 4.892 3 6 L 3 12 C 3 12 3 20 12 20 C 21 20 21 12 21 12 L 21 6 C 21 4.892 20.108 4 19 4 L 5 4 z M 15.986328 7.9785156 C 17.354597 7.9461886 18.047976 9.6128176 17.060547 10.560547 L 13.060547 14.560547 C 13.041507 14.579297 13.021963 14.597524 13.001953 14.615234 C 12.995453 14.621134 12.988982 14.627013 12.982422 14.632812 L 12.962891 14.654297 C 12.698336 14.922315 12.344471 15.032221 12 15.005859 C 11.65553 15.032209 11.301653 14.922319 11.037109 14.654297 L 10.982422 14.599609 C 10.967852 14.586869 10.953523 14.573847 10.939453 14.560547 L 6.9394531 10.560547 C 5.9734111 9.6220979 6.637555 7.9846998 7.984375 7.984375 C 8.38986 7.9843911 8.7780679 8.1485518 9.0605469 8.4394531 L 12 11.378906 L 14.939453 8.4394531 C 15.21384 8.1535764 15.590189 7.9878707 15.986328 7.9785156 z " | ||
602 | 225 | style="opacity:0.1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
603 | 226 | clip-path="url(#clipPath7104)" /> | ||
604 | 227 | <path | ||
605 | 228 | clip-path="url(#clipPath7104)" | ||
606 | 229 | style="opacity:0.03;fill:none;fill-opacity:1;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
607 | 230 | d="M 5 4 C 3.892 4 3 4.892 3 6 L 3 12 C 3 12 3 20 12 20 C 21 20 21 12 21 12 L 21 6 C 21 4.892 20.108 4 19 4 L 5 4 z M 15.986328 7.9785156 C 17.354597 7.9461886 18.047976 9.6128176 17.060547 10.560547 L 13.060547 14.560547 C 13.041507 14.579297 13.021963 14.597524 13.001953 14.615234 C 12.995453 14.621134 12.988982 14.627013 12.982422 14.632812 L 12.962891 14.654297 C 12.698336 14.922315 12.344471 15.032221 12 15.005859 C 11.65553 15.032209 11.301653 14.922319 11.037109 14.654297 L 10.982422 14.599609 C 10.967852 14.586869 10.953523 14.573847 10.939453 14.560547 L 6.9394531 10.560547 C 5.9734111 9.6220979 6.637555 7.9846998 7.984375 7.984375 C 8.38986 7.9843911 8.7780679 8.1485518 9.0605469 8.4394531 L 12 11.378906 L 14.939453 8.4394531 C 15.21384 8.1535764 15.590189 7.9878707 15.986328 7.9785156 z " | ||
608 | 231 | id="path7108" /> | ||
609 | 232 | <path | ||
610 | 233 | id="path7114" | ||
611 | 234 | d="m 15.986328,7.9785156 c 1.368269,-0.032327 2.061648,1.634302 1.074219,2.5820314 l -4,4 c -0.01904,0.01875 -0.03858,0.03698 -0.05859,0.05469 -0.0065,0.0059 -0.01297,0.01178 -0.01953,0.01758 l -0.01953,0.02149 C 12.698336,14.922315 12.344471,15.032221 12,15.005859 c -0.34447,0.02635 -0.698347,-0.08354 -0.962891,-0.351562 l -0.05469,-0.05469 c -0.01457,-0.01274 -0.0289,-0.02576 -0.04297,-0.03906 l -3.9999999,-4 C 5.9734111,9.6220979 6.637555,7.9846998 7.984375,7.984375 8.38986,7.9843911 8.7780679,8.1485518 9.0605469,8.4394531 L 12,11.378906 14.939453,8.4394531 C 15.21384,8.1535764 15.590189,7.9878707 15.986328,7.9785156 Z" | ||
612 | 235 | style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" | ||
613 | 236 | inkscape:connector-curvature="0" | ||
614 | 237 | sodipodi:nodetypes="cccccccccccccccc" /> | ||
615 | 238 | </svg> |
Similar comments apply as to the Instapaper extension: javascript should be run through contexts rather than setting browser URI; it would be ideal to do this natively, if possible; and we shouldn't be checking obfuscated javascript code which is likely copyrighted into the repository.
From a code style perspective, it might be better to have an active/inactive gicon value stored in the extension itself rather than creating new GLib.ThemedIcon instances with string names throughout the code.
It would also be a good idea to link the website of this service in the extension description, since many users will not be on a first-name basis with "Pocket".