[gnome-builder/wip/gtk4-port] libide/editor: bind style-scheme to application setting
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/editor: bind style-scheme to application setting
- Date: Mon, 4 Apr 2022 20:25:45 +0000 (UTC)
commit 68e816fcd69b3b7794babe2e3e39d4fcccb9354e
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 4 13:25:39 2022 -0700
libide/editor: bind style-scheme to application setting
src/libide/editor/ide-editor-page-settings.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/libide/editor/ide-editor-page-settings.c b/src/libide/editor/ide-editor-page-settings.c
index 16338e578..70531e1e8 100644
--- a/src/libide/editor/ide-editor-page-settings.c
+++ b/src/libide/editor/ide-editor-page-settings.c
@@ -76,6 +76,10 @@ _ide_editor_page_settings_init (IdeEditorPage *self)
g_return_if_fail (self->buffer_file_settings == NULL);
g_return_if_fail (self->view_file_settings == NULL);
+ g_object_bind_property (IDE_APPLICATION_DEFAULT, "style-scheme",
+ self->buffer, "style-scheme-name",
+ G_BINDING_SYNC_CREATE);
+
self->buffer_file_settings = ide_binding_group_new ();
ide_binding_group_bind (self->buffer_file_settings,
"insert-trailing-newline", self->buffer, "implicit-trailing-newline",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]