From b97d0057c471e5761fda3761c182a2b48ae676c0 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 11 Oct 2013 00:15:10 +0200 Subject: [PATCH] linux eventlog: Fix annoying flickering of the WebView Conflicts: SparkleShare/Linux/SparkleEventLog.cs --- SparkleShare/Linux/SparkleEventLog.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SparkleShare/Linux/SparkleEventLog.cs b/SparkleShare/Linux/SparkleEventLog.cs index 3040f278..40a54746 100755 --- a/SparkleShare/Linux/SparkleEventLog.cs +++ b/SparkleShare/Linux/SparkleEventLog.cs @@ -284,14 +284,17 @@ namespace SparkleShare { html = html.Replace ("", "file://" + IO.Path.Combine (icons_path, "document-moved.png")); this.spinner.Stop (); + this.scrolled_window.Remove (this.web_view); + this.web_view.Dispose (); - this.web_view.NavigationRequested -= WebViewNavigationRequested; + this.web_view = new WebView () { Editable = false }; this.web_view.LoadHtmlString (html, "file://"); this.web_view.NavigationRequested += WebViewNavigationRequested; + this.scrolled_window.Add (this.web_view); this.content_wrapper.Remove (this.content_wrapper.Child); this.content_wrapper.Add (this.scrolled_window); - this.content_wrapper.ShowAll (); + this.scrolled_window.ShowAll (); } } }