Commit cfc9a5a7 authored by Sébastien Wilmet's avatar Sébastien Wilmet

Document: add hack to avoid crash on app shutdown

With valac <= 0.40 the Document objects were anyway also leaked, see:

Maybe the easiest solution is to rewrite everything in C.

Fixes #57
parent 919cfcb8
......@@ -34,6 +34,11 @@ public class Document : Tepl.Buffer
public Document ()
// FIXME properly: horrible hack, keep the Document objects alive, to
// avoid a crash on application shutdown:
this.ref ();
// syntax highlighting: LaTeX by default
var lm = Gtk.SourceLanguageManager.get_default ();
set_language (lm.get_language ("latex"));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment