Merge lp:~kalikiana/midori/errorpage into lp:midori
- errorpage
- Merge into trunk
Proposed by
Cris Dywan
Status: | Merged |
---|---|
Approved by: | Paweł Forysiuk |
Approved revision: | 6249 |
Merged at revision: | 6242 |
Proposed branch: | lp:~kalikiana/midori/errorpage |
Merge into: | lp:midori |
Diff against target: |
385 lines (+130/-102) 4 files modified
data/about.css (+69/-40) data/error.html (+13/-13) midori/midori-app.c (+3/-0) midori/midori-view.c (+45/-49) |
To merge this branch: | bzr merge lp:~kalikiana/midori/errorpage |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Forysiuk | Approve | ||
Review via email:
|
Commit message
Improve error page visuals, show suggestions on network errors
Description of the change
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Paweł Forysiuk (tuxator) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'data/about.css' | |||
2 | --- data/about.css 2013-03-21 17:09:08 +0000 | |||
3 | +++ data/about.css 2013-07-01 19:00:34 +0000 | |||
4 | @@ -3,48 +3,53 @@ | |||
5 | 3 | This file is licensed under the terms of the expat license, see the file EXPAT. | 3 | This file is licensed under the terms of the expat license, see the file EXPAT. |
6 | 4 | */ | 4 | */ |
7 | 5 | body { | 5 | body { |
27 | 6 | background-color: #eee; | 6 | background-color: #dedede; |
28 | 7 | margin: 0; | 7 | color: #222222; |
29 | 8 | padding: 0; | 8 | font-family: 'Open Sans', 'Droid Sans', Arial, sans-serif; |
30 | 9 | } | 9 | font-size: 14px; |
31 | 10 | 10 | font-style: normal; | |
32 | 11 | #container { | 11 | font-variant: normal; |
33 | 12 | background: #f6fff3; | 12 | font-weight: normal; |
34 | 13 | min-width: 70%; | 13 | margin-top: 100px; |
16 | 14 | max-width: 70%; | ||
17 | 15 | margin: 2em auto 1em; | ||
18 | 16 | padding: 1em; | ||
19 | 17 | border: 0.2em solid #9acb7f; | ||
20 | 18 | -webkit-border-radius: 1em; | ||
21 | 19 | } | ||
22 | 20 | |||
23 | 21 | #icon { | ||
24 | 22 | float: left; | ||
25 | 23 | padding-left: 1%; | ||
26 | 24 | padding-top: 1%; | ||
35 | 25 | } | 14 | } |
36 | 26 | 15 | ||
37 | 27 | html[dir="rtl"] #icon { | 16 | html[dir="rtl"] #icon { |
40 | 28 | float: right; | 17 | float: right; |
41 | 29 | padding-right: 1%; | 18 | padding-right: 1%; |
42 | 19 | } | ||
43 | 20 | |||
44 | 21 | .indent { | ||
45 | 22 | margin-left: 60px; | ||
46 | 30 | } | 23 | } |
47 | 31 | 24 | ||
48 | 32 | #main { | 25 | #main { |
51 | 33 | float: right; | 26 | max-width: 50%; |
52 | 34 | width: 75%; | 27 | margin-left: auto; |
53 | 28 | margin-right: auto; | ||
54 | 29 | min-width: 480px; | ||
55 | 30 | background-repeat: no-repeat; | ||
56 | 31 | background-color: #ffffff; | ||
57 | 32 | border: 1px solid rgba(0, 0, 0, .3); | ||
58 | 33 | padding: 25px; | ||
59 | 34 | -webkit-border-radius: 4px; | ||
60 | 35 | -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1); | ||
61 | 36 | background-position-x: 22px; | ||
62 | 37 | background-position-y: 54px; | ||
63 | 38 | } | ||
64 | 39 | |||
65 | 40 | #text { | ||
66 | 41 | margin-left: 80px; | ||
67 | 35 | } | 42 | } |
68 | 36 | 43 | ||
69 | 37 | h1 { | 44 | h1 { |
80 | 38 | font-size: 1.4em; | 45 | font-family: 'Open Sans', 'Droid Sans', arial, sans-serif; |
81 | 39 | font-weight: bold; | 46 | font-size: 32px; |
82 | 40 | white-space: nowrap; | 47 | font-style: normal; |
83 | 41 | overflow: hidden; | 48 | font-variant: normal; |
84 | 42 | text-overflow: ellipsis; | 49 | font-weight: 300; |
85 | 43 | } | 50 | width: 100%; |
86 | 44 | 51 | overflow: hidden; | |
87 | 45 | #logo { | 52 | text-overflow: ellipsis; |
78 | 46 | position: absolute; bottom: 15px; | ||
79 | 47 | z-index: -1; | ||
88 | 48 | } | 53 | } |
89 | 49 | 54 | ||
90 | 50 | html[dir="ltr"] #logo { | 55 | html[dir="ltr"] #logo { |
91 | @@ -61,11 +66,35 @@ | |||
92 | 61 | padding: 2px 1px; | 66 | padding: 2px 1px; |
93 | 62 | } | 67 | } |
94 | 63 | 68 | ||
102 | 64 | #message { | 69 | button { |
103 | 65 | font-size: 1.1em; | 70 | font-size: 14px; |
104 | 66 | word-wrap: break-word; | 71 | } |
105 | 67 | } | 72 | |
106 | 68 | 73 | .message { | |
107 | 69 | #description { | 74 | overflow: hidden; |
108 | 70 | font-size: 1em; | 75 | text-overflow: ellipsis; |
109 | 76 | } | ||
110 | 77 | |||
111 | 78 | .description { | ||
112 | 79 | font-size: 1em; | ||
113 | 80 | overflow: hidden; | ||
114 | 81 | text-overflow: ellipsis; | ||
115 | 82 | } | ||
116 | 83 | |||
117 | 84 | #suggestions { | ||
118 | 85 | overflow: hidden; | ||
119 | 86 | text-overflow: ellipsis; | ||
120 | 87 | } | ||
121 | 88 | |||
122 | 89 | #button { | ||
123 | 90 | text-align: right; | ||
124 | 91 | } | ||
125 | 92 | |||
126 | 93 | #logo { | ||
127 | 94 | position: absolute; bottom: 15px; | ||
128 | 95 | z-index: -1; | ||
129 | 96 | } | ||
130 | 97 | |||
131 | 98 | form { | ||
132 | 99 | margin-bottom: 0px; | ||
133 | 71 | } | 100 | } |
134 | 72 | 101 | ||
135 | === modified file 'data/error.html' | |||
136 | --- data/error.html 2013-02-25 23:51:48 +0000 | |||
137 | +++ data/error.html 2013-07-01 19:00:34 +0000 | |||
138 | @@ -9,21 +9,21 @@ | |||
139 | 9 | <link rel="stylesheet" type="text/css" href="res://about.css" /> | 9 | <link rel="stylesheet" type="text/css" href="res://about.css" /> |
140 | 10 | </head> | 10 | </head> |
141 | 11 | <body> | 11 | <body> |
152 | 12 | <div id="container"> | 12 | <img id="logo" src="res://logo-shade.png" /> |
153 | 13 | <img id="logo" src="res://logo-shade.png" /> | 13 | <div id="main" style="background-image: url({error_icon});"> |
154 | 14 | <img id="icon" src="stock://gtk-dialog-error" /> | 14 | <div id="text"> |
155 | 15 | <div id="main"> | 15 | <h1>{title}</h1> |
156 | 16 | <h1>{title}</h1> | 16 | <p class="message">{message}<br><i>{description}</i></p> |
157 | 17 | <p id="message">{message}</p> | 17 | {suggestions} |
158 | 18 | <p id="description">{description}</p> | 18 | </div> |
159 | 19 | <form method="GET" action="{uri}"> | 19 | <form method="GET" action="{uri}" id="button"> |
160 | 20 | <button type="submit" onclick="location.reload(); return false;"> | 20 | <button type="submit" onclick="location.reload(); return false;" autofocus="true" > |
151 | 21 | <img style="{hide-button-images}" src="stock://gtk-refresh"/> | ||
161 | 22 | <span>{tryagain}</span> | 21 | <span>{tryagain}</span> |
162 | 23 | </button> | 22 | </button> |
163 | 24 | </form> | 23 | </form> |
164 | 25 | </div> | 24 | </div> |
168 | 26 | <br style="clear: both;"/> | 25 | |
169 | 27 | </div> | 26 | <br style="clear: both;"/> |
170 | 28 | </body> | 27 | </div> |
171 | 28 | </body> | ||
172 | 29 | </html> | 29 | </html> |
173 | 30 | 30 | ||
174 | === modified file 'midori/midori-app.c' | |||
175 | --- midori/midori-app.c 2013-06-26 21:54:50 +0000 | |||
176 | +++ midori/midori-app.c 2013-07-01 19:00:34 +0000 | |||
177 | @@ -1320,6 +1320,7 @@ | |||
178 | 1320 | gchar** *argument_vector, | 1320 | gchar** *argument_vector, |
179 | 1321 | const GOptionEntry *entries) | 1321 | const GOptionEntry *entries) |
180 | 1322 | { | 1322 | { |
181 | 1323 | |||
182 | 1323 | GtkIconSource* icon_source; | 1324 | GtkIconSource* icon_source; |
183 | 1324 | GtkIconSet* icon_set; | 1325 | GtkIconSet* icon_set; |
184 | 1325 | GtkIconFactory* factory; | 1326 | GtkIconFactory* factory; |
185 | @@ -1329,6 +1330,8 @@ | |||
186 | 1329 | 1330 | ||
187 | 1330 | static GtkStockItem items[] = | 1331 | static GtkStockItem items[] = |
188 | 1331 | { | 1332 | { |
189 | 1333 | { "network-error" }, | ||
190 | 1334 | { "network-idle" }, | ||
191 | 1332 | { STOCK_IMAGE }, | 1335 | { STOCK_IMAGE }, |
192 | 1333 | { MIDORI_STOCK_WEB_BROWSER }, | 1336 | { MIDORI_STOCK_WEB_BROWSER }, |
193 | 1334 | { STOCK_NEWS_FEED }, | 1337 | { STOCK_NEWS_FEED }, |
194 | 1335 | 1338 | ||
195 | === modified file 'midori/midori-view.c' | |||
196 | --- midori/midori-view.c 2013-06-25 22:32:12 +0000 | |||
197 | +++ midori/midori-view.c 2013-07-01 19:00:34 +0000 | |||
198 | @@ -79,9 +79,11 @@ | |||
199 | 79 | static gboolean | 79 | static gboolean |
200 | 80 | midori_view_display_error (MidoriView* view, | 80 | midori_view_display_error (MidoriView* view, |
201 | 81 | const gchar* uri, | 81 | const gchar* uri, |
202 | 82 | const gchar* error_icon, | ||
203 | 82 | const gchar* title, | 83 | const gchar* title, |
204 | 83 | const gchar* message, | 84 | const gchar* message, |
205 | 84 | const gchar* description, | 85 | const gchar* description, |
206 | 86 | const gchar* suggestions, | ||
207 | 85 | const gchar* try_again, | 87 | const gchar* try_again, |
208 | 86 | #ifndef HAVE_WEBKIT2 | 88 | #ifndef HAVE_WEBKIT2 |
209 | 87 | WebKitWebFrame* web_frame); | 89 | WebKitWebFrame* web_frame); |
210 | @@ -667,7 +669,7 @@ | |||
211 | 667 | gchar* slots = g_strjoinv (" , ", (gchar**)gcr_pkcs11_get_trust_lookup_uris ()); | 669 | gchar* slots = g_strjoinv (" , ", (gchar**)gcr_pkcs11_get_trust_lookup_uris ()); |
212 | 668 | gchar* title = g_strdup_printf ("Error granting trust: %s", error->message); | 670 | gchar* title = g_strdup_printf ("Error granting trust: %s", error->message); |
213 | 669 | midori_tab_stop_loading (MIDORI_TAB (view)); | 671 | midori_tab_stop_loading (MIDORI_TAB (view)); |
215 | 670 | midori_view_display_error (view, NULL, NULL, title, slots, | 672 | midori_view_display_error (view, NULL, NULL, NULL, title, slots, NULL, |
216 | 671 | _("Trust this website"), NULL); | 673 | _("Trust this website"), NULL); |
217 | 672 | g_free (title); | 674 | g_free (title); |
218 | 673 | g_free (slots); | 675 | g_free (slots); |
219 | @@ -789,8 +791,8 @@ | |||
220 | 789 | { | 791 | { |
221 | 790 | midori_tab_set_security (MIDORI_TAB (view), MIDORI_SECURITY_UNKNOWN); | 792 | midori_tab_set_security (MIDORI_TAB (view), MIDORI_SECURITY_UNKNOWN); |
222 | 791 | midori_tab_stop_loading (MIDORI_TAB (view)); | 793 | midori_tab_stop_loading (MIDORI_TAB (view)); |
225 | 792 | midori_view_display_error (view, NULL, NULL, _("Security unknown"), | 794 | midori_view_display_error (view, NULL, NULL, NULL, _("Security unknown"), |
226 | 793 | midori_location_action_tls_flags_to_string (tls_flags), | 795 | midori_location_action_tls_flags_to_string (tls_flags), NULL, |
227 | 794 | _("Trust this website"), | 796 | _("Trust this website"), |
228 | 795 | NULL); | 797 | NULL); |
229 | 796 | } | 798 | } |
230 | @@ -887,8 +889,15 @@ | |||
231 | 887 | icon_size_large_dialog = gtk_icon_size_register ("large-dialog", 64, 64); | 889 | icon_size_large_dialog = gtk_icon_size_register ("large-dialog", 64, 64); |
232 | 888 | 890 | ||
233 | 889 | if (g_ascii_isalpha (icon_name[0])) | 891 | if (g_ascii_isalpha (icon_name[0])) |
236 | 890 | icon_size = strstr (icon_name, "dialog") ? | 892 | { |
237 | 891 | icon_size_large_dialog : GTK_ICON_SIZE_BUTTON; | 893 | if (g_str_has_prefix (icon_name, "dialog/")) |
238 | 894 | { | ||
239 | 895 | icon_name = &icon_name [strlen("dialog/")]; | ||
240 | 896 | icon_size = icon_size_large_dialog; | ||
241 | 897 | } | ||
242 | 898 | else | ||
243 | 899 | icon_size = GTK_ICON_SIZE_BUTTON; | ||
244 | 900 | } | ||
245 | 892 | else if (g_ascii_isdigit (icon_name[0])) | 901 | else if (g_ascii_isdigit (icon_name[0])) |
246 | 893 | { | 902 | { |
247 | 894 | guint i = 0; | 903 | guint i = 0; |
248 | @@ -905,35 +914,6 @@ | |||
249 | 905 | } | 914 | } |
250 | 906 | } | 915 | } |
251 | 907 | 916 | ||
252 | 908 | /* If available, load SVG icon as SVG markup */ | ||
253 | 909 | gtk_icon_size_lookup_for_settings ( | ||
254 | 910 | gtk_widget_get_settings (GTK_WIDGET (view)), | ||
255 | 911 | icon_size, &real_icon_size, &real_icon_size); | ||
256 | 912 | icon_info = gtk_icon_theme_lookup_icon (icon_theme, icon_name, | ||
257 | 913 | real_icon_size, GTK_ICON_LOOKUP_FORCE_SVG); | ||
258 | 914 | icon_filename = icon_info ? gtk_icon_info_get_filename (icon_info) : NULL; | ||
259 | 915 | if (icon_filename && g_str_has_suffix (icon_filename, ".svg")) | ||
260 | 916 | { | ||
261 | 917 | gchar* buffer; | ||
262 | 918 | gsize buffer_size; | ||
263 | 919 | if (g_file_get_contents (icon_filename, &buffer, &buffer_size, NULL)) | ||
264 | 920 | { | ||
265 | 921 | #ifdef HAVE_WEBKIT2 | ||
266 | 922 | GInputStream* stream = g_memory_input_stream_new_from_data (buffer, buffer_size, g_free); | ||
267 | 923 | webkit_uri_scheme_request_finish (request, stream, -1, "image/svg+xml"); | ||
268 | 924 | g_object_unref (stream); | ||
269 | 925 | #else | ||
270 | 926 | gchar* encoded = g_base64_encode ((guchar*)buffer, buffer_size); | ||
271 | 927 | gchar* data_uri = g_strconcat ("data:image/svg+xml;base64,", encoded, NULL); | ||
272 | 928 | g_free (buffer); | ||
273 | 929 | g_free (encoded); | ||
274 | 930 | webkit_network_request_set_uri (request, data_uri); | ||
275 | 931 | g_free (data_uri); | ||
276 | 932 | #endif | ||
277 | 933 | return; | ||
278 | 934 | } | ||
279 | 935 | } | ||
280 | 936 | |||
281 | 937 | /* Render icon as a PNG at the desired size */ | 917 | /* Render icon as a PNG at the desired size */ |
282 | 938 | pixbuf = gtk_widget_render_icon (GTK_WIDGET (view), icon_name, icon_size, NULL); | 918 | pixbuf = gtk_widget_render_icon (GTK_WIDGET (view), icon_name, icon_size, NULL); |
283 | 939 | if (!pixbuf) | 919 | if (!pixbuf) |
284 | @@ -1171,9 +1151,11 @@ | |||
285 | 1171 | static gboolean | 1151 | static gboolean |
286 | 1172 | midori_view_display_error (MidoriView* view, | 1152 | midori_view_display_error (MidoriView* view, |
287 | 1173 | const gchar* uri, | 1153 | const gchar* uri, |
288 | 1154 | const gchar* error_icon, | ||
289 | 1174 | const gchar* title, | 1155 | const gchar* title, |
290 | 1175 | const gchar* message, | 1156 | const gchar* message, |
291 | 1176 | const gchar* description, | 1157 | const gchar* description, |
292 | 1158 | const gchar* suggestions, | ||
293 | 1177 | const gchar* try_again, | 1159 | const gchar* try_again, |
294 | 1178 | #ifndef HAVE_WEBKIT2 | 1160 | #ifndef HAVE_WEBKIT2 |
295 | 1179 | WebKitWebFrame* web_frame) | 1161 | WebKitWebFrame* web_frame) |
296 | @@ -1210,8 +1192,10 @@ | |||
297 | 1210 | "rtl" : "ltr", | 1192 | "rtl" : "ltr", |
298 | 1211 | "{title}", title_escaped, | 1193 | "{title}", title_escaped, |
299 | 1212 | "{favicon}", katze_str_non_null (favicon), | 1194 | "{favicon}", katze_str_non_null (favicon), |
300 | 1195 | "{error_icon}", katze_str_non_null (error_icon), | ||
301 | 1213 | "{message}", message, | 1196 | "{message}", message, |
302 | 1214 | "{description}", description, | 1197 | "{description}", description, |
303 | 1198 | "{suggestions}", katze_str_non_null (suggestions), | ||
304 | 1215 | "{tryagain}", try_again, | 1199 | "{tryagain}", try_again, |
305 | 1216 | "{uri}", uri, | 1200 | "{uri}", uri, |
306 | 1217 | "{hide-button-images}", show_button_images ? "" : "display:none", | 1201 | "{hide-button-images}", show_button_images ? "" : "display:none", |
307 | @@ -1248,6 +1232,7 @@ | |||
308 | 1248 | #endif | 1232 | #endif |
309 | 1249 | gchar* title; | 1233 | gchar* title; |
310 | 1250 | gchar* message; | 1234 | gchar* message; |
311 | 1235 | GString* suggestions; | ||
312 | 1251 | gboolean result; | 1236 | gboolean result; |
313 | 1252 | 1237 | ||
314 | 1253 | /* The unholy trinity; also ignored in Webkit's default error handler */ | 1238 | /* The unholy trinity; also ignored in Webkit's default error handler */ |
315 | @@ -1262,10 +1247,18 @@ | |||
316 | 1262 | return FALSE; | 1247 | return FALSE; |
317 | 1263 | } | 1248 | } |
318 | 1264 | 1249 | ||
323 | 1265 | title = g_strdup_printf (_("Error - %s"), uri); | 1250 | title = g_strdup_printf (_("'%s' can't be found"), midori_uri_parse_hostname(uri, NULL)); |
324 | 1266 | message = g_strdup_printf (_("The page '%s' couldn't be loaded."), uri); | 1251 | message = g_strdup_printf (_("The page '%s' couldn't be loaded:"), midori_uri_parse_hostname(uri, NULL)); |
325 | 1267 | result = midori_view_display_error (view, uri, title, | 1252 | |
326 | 1268 | message, error->message, _("Try again"), web_frame); | 1253 | suggestions = g_string_new ("<ul id=\"suggestions\"><li>"); |
327 | 1254 | g_string_append_printf (suggestions, "%s</li><li>%s</li><li>%s</li></ul>", | ||
328 | 1255 | _("Check the address for typos"), | ||
329 | 1256 | _("Make sure that an ethernet cable is plugged in or the wireless card is activated"), | ||
330 | 1257 | _("Verify that your network settings are correct")); | ||
331 | 1258 | |||
332 | 1259 | result = midori_view_display_error (view, uri, "stock://dialog/network-error", title, | ||
333 | 1260 | message, error->message, g_string_free (suggestions, FALSE), | ||
334 | 1261 | _("Try Again"), web_frame); | ||
335 | 1269 | g_free (message); | 1262 | g_free (message); |
336 | 1270 | g_free (title); | 1263 | g_free (title); |
337 | 1271 | return result; | 1264 | return result; |
338 | @@ -1397,8 +1390,8 @@ | |||
339 | 1397 | const gchar* uri = webkit_web_view_get_uri (web_view); | 1390 | const gchar* uri = webkit_web_view_get_uri (web_view); |
340 | 1398 | gchar* title = g_strdup_printf (_("Oops - %s"), uri); | 1391 | gchar* title = g_strdup_printf (_("Oops - %s"), uri); |
341 | 1399 | gchar* message = g_strdup_printf (_("Something went wrong with '%s'."), uri); | 1392 | gchar* message = g_strdup_printf (_("Something went wrong with '%s'."), uri); |
344 | 1400 | midori_view_display_error (view, uri, title, | 1393 | midori_view_display_error (view, uri, NULL, title, |
345 | 1401 | message, "", _("Try again"), NULL); | 1394 | message, "", NULL, _("Try again"), NULL); |
346 | 1402 | g_free (message); | 1395 | g_free (message); |
347 | 1403 | g_free (title); | 1396 | g_free (title); |
348 | 1404 | } | 1397 | } |
349 | @@ -4093,15 +4086,16 @@ | |||
350 | 4093 | else if (!strcmp (uri, "about:private")) | 4086 | else if (!strcmp (uri, "about:private")) |
351 | 4094 | { | 4087 | { |
352 | 4095 | data = g_strdup_printf ( | 4088 | data = g_strdup_printf ( |
354 | 4096 | "<html><head><title>%s</title>" | 4089 | "<html dir=\"ltr\"><head><title>%s</title>" |
355 | 4097 | "<link rel=\"stylesheet\" type=\"text/css\" href=\"res://about.css\">" | 4090 | "<link rel=\"stylesheet\" type=\"text/css\" href=\"res://about.css\">" |
363 | 4098 | "</head><body><div id=\"container\">" | 4091 | "</head>" |
364 | 4099 | "<img id=\"logo\" src=\"res://logo-shade.png\" " | 4092 | "<body>" |
365 | 4100 | "style=\"position: absolute; right: 15px; bottom: 15px; z-index: -9;\">" | 4093 | "<img id=\"logo\" src=\"res://logo-shade.png\" />" |
366 | 4101 | "<img id=\"icon\" src=\"stock://gtk-dialog-info\">" | 4094 | "<div id=\"main\" style=\"background-image: url(stock://dialog/gtk-dialog-info);\">" |
367 | 4102 | "<div id=\"main\"><h1>%s</h1>" | 4095 | "<div id=\"text\">" |
368 | 4103 | "<p>%s</p><ul><li>%s</li><li>%s</li><li>%s</li></ul>" | 4096 | "<h1>%s</h1>" |
369 | 4104 | "<p>%s</p><ul><li>%s</li><li>%s</li><li>%s</li><li>%s</li></ul>" | 4097 | "<p class=\"message\">%s</p><ul class=\" suggestions\"><li>%s</li><li>%s</li><li>%s</li></ul>" |
370 | 4098 | "<p class=\"message\">%s</p><ul class=\" suggestions\"><li>%s</li><li>%s</li><li>%s</li><li>%s</li></ul>" | ||
371 | 4105 | "</div><br style=\"clear: both\"></div></body></html>", | 4099 | "</div><br style=\"clear: both\"></div></body></html>", |
372 | 4106 | _("Private Browsing"), _("Private Browsing"), | 4100 | _("Private Browsing"), _("Private Browsing"), |
373 | 4107 | _("Midori doesn't store any personal data:"), | 4101 | _("Midori doesn't store any personal data:"), |
374 | @@ -4204,8 +4198,10 @@ | |||
375 | 4204 | midori_tab_set_uri (MIDORI_TAB (view), uri); | 4198 | midori_tab_set_uri (MIDORI_TAB (view), uri); |
376 | 4205 | midori_tab_set_special (MIDORI_TAB (view), TRUE); | 4199 | midori_tab_set_special (MIDORI_TAB (view), TRUE); |
377 | 4206 | katze_item_set_meta_integer (view->item, "delay", MIDORI_DELAY_PENDING_UNDELAY); | 4200 | katze_item_set_meta_integer (view->item, "delay", MIDORI_DELAY_PENDING_UNDELAY); |
379 | 4207 | midori_view_display_error (view, NULL, NULL, _("Page loading delayed"), | 4201 | midori_view_display_error (view, NULL, "stock://dialog/network-idle", NULL, |
380 | 4202 | _("Page loading delayed:"), | ||
381 | 4208 | _("Loading delayed either due to a recent crash or startup preferences."), | 4203 | _("Loading delayed either due to a recent crash or startup preferences."), |
382 | 4204 | NULL, | ||
383 | 4209 | _("Load Page"), | 4205 | _("Load Page"), |
384 | 4210 | NULL); | 4206 | NULL); |
385 | 4211 | } | 4207 | } |