[latexila] Document: bind Document:location property to TeplFile:location
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Document: bind Document:location property to TeplFile:location
- Date: Sun, 6 Aug 2017 13:25:56 +0000 (UTC)
commit 65bb3b56f0e0647cc7c29954efea021746f4d30d
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Aug 6 15:23:29 2017 +0200
Document: bind Document:location property to TeplFile:location
It'll permit to use Tepl features that relies on TeplFile:location.
src/document.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/document.vala b/src/document.vala
index 486b09b..89ddae2 100644
--- a/src/document.vala
+++ b/src/document.vala
@@ -54,6 +54,11 @@ public class Document : Tepl.Buffer
new GLib.Settings ("org.gnome.latexila.preferences.editor");
editor_settings.bind ("scheme", this, "tepl-style-scheme-id",
SettingsBindFlags.GET);
+
+ // Longer-term it would be better of course to get rid of the
+ // Document:location property.
+ this.bind_property ("location", get_file (), "location",
+ BindingFlags.DEFAULT | BindingFlags.SYNC_CREATE);
}
public new void insert (ref TextIter iter, string text, int len)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]