[gnome-builder/wip/gtk4-port] libide/gui: add app.style-scheme-name action



commit 7ad202404e4bc6eabb1b84e0d13131a5bf92ce31
Author: Christian Hergert <chergert redhat com>
Date:   Thu Mar 31 14:43:56 2022 -0700

    libide/gui: add app.style-scheme-name action
    
    For setting the style scheme using GAction

 src/libide/gui/ide-application-actions.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libide/gui/ide-application-actions.c b/src/libide/gui/ide-application-actions.c
index 44703df23..3f47fdf53 100644
--- a/src/libide/gui/ide-application-actions.c
+++ b/src/libide/gui/ide-application-actions.c
@@ -361,6 +361,7 @@ void
 _ide_application_init_actions (IdeApplication *self)
 {
   g_autoptr(GAction) style_action = NULL;
+  g_autoptr(GAction) style_scheme_action = NULL;
 
   g_assert (IDE_IS_MAIN_THREAD ());
   g_assert (IDE_IS_APPLICATION (self));
@@ -372,6 +373,9 @@ _ide_application_init_actions (IdeApplication *self)
 
   style_action = g_settings_create_action (self->settings, "style-variant");
   g_action_map_add_action (G_ACTION_MAP (self), style_action);
+
+  style_scheme_action = g_settings_create_action (self->editor_settings, "style-scheme-name");
+  g_action_map_add_action (G_ACTION_MAP (self), style_scheme_action);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]