linux eventlog: Fix annoying flickering of the WebView
This commit is contained in:
parent
8087c37863
commit
8f2f356ea4
|
@ -257,14 +257,17 @@ namespace SparkleShare {
|
||||||
html = html.Replace ("<!-- $document-moved-background-image -->", "file://" + new string [] {icons_path, "document-moved.png"}.Combine ());
|
html = html.Replace ("<!-- $document-moved-background-image -->", "file://" + new string [] {icons_path, "document-moved.png"}.Combine ());
|
||||||
|
|
||||||
this.spinner.Stop ();
|
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.LoadString (html, "text/html", "UTF-8", "file://");
|
this.web_view.LoadString (html, "text/html", "UTF-8", "file://");
|
||||||
this.web_view.NavigationRequested += WebViewNavigationRequested;
|
this.web_view.NavigationRequested += WebViewNavigationRequested;
|
||||||
|
this.scrolled_window.Add (this.web_view);
|
||||||
|
|
||||||
this.content_wrapper.Remove (this.content_wrapper.Child);
|
this.content_wrapper.Remove (this.content_wrapper.Child);
|
||||||
this.content_wrapper.Add (this.scrolled_window);
|
this.content_wrapper.Add (this.scrolled_window);
|
||||||
this.content_wrapper.ShowAll ();
|
this.scrolled_window.ShowAll ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue