[gnome-builder/editor-layout] ensure file property is sync'd during init
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/editor-layout] ensure file property is sync'd during init
- Date: Sun, 30 Nov 2014 13:21:54 +0000 (UTC)
commit e196d1e8364df7cedffcaeb0da8db9468bd5e6a9
Author: Christian Hergert <christian hergert me>
Date: Sun Nov 30 05:17:09 2014 -0800
ensure file property is sync'd during init
src/editor/gb-editor-document.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-document.c b/src/editor/gb-editor-document.c
index b7d871a..f548345 100644
--- a/src/editor/gb-editor-document.c
+++ b/src/editor/gb-editor-document.c
@@ -669,6 +669,10 @@ gb_editor_document_init (GbEditorDocument *document)
document->priv->change_monitor = gb_source_change_monitor_new (GTK_TEXT_BUFFER (document));
document->priv->code_assistant = gb_source_code_assistant_new (GTK_TEXT_BUFFER (document));
+ g_object_bind_property (document->priv->file, "location",
+ document->priv->change_monitor, "file",
+ G_BINDING_SYNC_CREATE);
+
g_signal_connect_object (document->priv->code_assistant,
"changed",
G_CALLBACK (gb_editor_document_code_assistant_changed),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]