[gnome-builder/wip/gtk4-port: 283/1774] libide/gui: add app.style-scheme-name action
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 283/1774] libide/gui: add app.style-scheme-name action
- Date: Mon, 11 Jul 2022 22:31:05 +0000 (UTC)
commit df4354853d75b6a8551ceb509c7efe9d9dc714fb
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]