[gnome-builder/wip/gtk4-port: 359/1774] libide/editor: bind style-scheme to application setting




commit 4fd6c107ed896e2b600203d2cf19e81fb53d6d0c
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]