[gnome-builder] tree: set initial state of 'show-icons' action
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tree: set initial state of 'show-icons' action
- Date: Sat, 11 Apr 2015 01:36:18 +0000 (UTC)
commit c457ebeb13cc35aebead1157a60c83a1e2e46dab
Author: Christian Hergert <christian hergert me>
Date: Fri Apr 10 18:16:02 2015 -0700
tree: set initial state of 'show-icons' action
src/project-tree/gb-project-tree-actions.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/project-tree/gb-project-tree-actions.c b/src/project-tree/gb-project-tree-actions.c
index 3a842d4..cecf000 100644
--- a/src/project-tree/gb-project-tree-actions.c
+++ b/src/project-tree/gb-project-tree-actions.c
@@ -386,8 +386,10 @@ void
gb_project_tree_actions_init (GbProjectTree *self)
{
g_autoptr(GSettings) settings = NULL;
+ g_autoptr(GSettings) tree_settings = NULL;
g_autoptr(GSimpleActionGroup) actions = NULL;
g_autoptr(GAction) action = NULL;
+ g_autoptr(GVariant) show_icons = NULL;
actions = g_simple_action_group_new ();
@@ -403,6 +405,12 @@ gb_project_tree_actions_init (GbProjectTree *self)
"project-tree",
G_ACTION_GROUP (actions));
+ tree_settings = g_settings_new ("org.gnome.builder.project-tree");
+ show_icons = g_settings_get_value (tree_settings, "show-icons");
+ action_set (G_ACTION_GROUP (actions), "show-icons",
+ "state", show_icons,
+ NULL);
+
gb_project_tree_actions_update (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]