Clone in a terminal:
Commit 393c18c
Johan Mattsson - 2012-10-21T14:13:33+00:00
393c18ce416870068b0cacc78569d1c7d1df1f1bjohan.mattsson.m@gmail.com

reload preview

Changed files (2)

Diff

diff --git a/NEWS b/NEWSindex b8f8be6..4bdde43 100644--- a/NEWS+++ b/NEWS@@ -4,6 +4,7 @@ birdfont (0.5) stable;   * Draw path from both ends   * New edit commands   * Man pages+  -- Johan Mattsson <johan.mattsson.m@gmail.com>  Sat Oct 20 19:52:27 CEST 2012  birdfont (0.4.1) stable;diff --git a/src/GtkWindow.vala b/src/GtkWindow.valaindex ce1b22e..f127a5a 100644--- a/src/GtkWindow.vala+++ b/src/GtkWindow.vala@@ -94,7 +94,7 @@ public class GtkWindow : Gtk.Window, NativeWindow { 					// this hack forces webkit to reload the font and ignore cached data 					// it's only required on windows platform and in wine 					//-					// webkit will crash if the loaded file is updated with export_all+					// webkit will crash if the loaded font file is updated with export_all 					// 					if (Supplement.win32) { 						html_canvas.load_uri (uri);@@ -102,6 +102,8 @@ public class GtkWindow : Gtk.Window, NativeWindow { 						TimeoutSource loadscreen = new TimeoutSource(300); 						loadscreen.set_callback(() => { 							html_canvas.load_html_string ("<html>Loading ...</html>", "file:///");+							html_canvas.reload_bypass_cache ();+							 							html_box.set_visible (n); 							glyph_canvas_area.set_visible (!n); 							@@ -116,6 +118,7 @@ public class GtkWindow : Gtk.Window, NativeWindow { 						TimeoutSource update = new TimeoutSource(2000);						 						update.set_callback(() => { 							html_canvas.load_uri (uri);+							html_canvas.reload_bypass_cache (); 							return false; 						}); 						update.attach(null);

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112