[gnome-builder] workbench: disable save-all action until context is loaded
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: disable save-all action until context is loaded
- Date: Wed, 26 Sep 2018 05:52:37 +0000 (UTC)
commit b1977b480d7c5cb85181187f4587c6f015f56a87
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 25 22:52:25 2018 -0700
workbench: disable save-all action until context is loaded
src/libide/workbench/ide-workbench-actions.c | 3 +++
src/libide/workbench/ide-workbench.c | 3 +++
2 files changed, 6 insertions(+)
---
diff --git a/src/libide/workbench/ide-workbench-actions.c b/src/libide/workbench/ide-workbench-actions.c
index 1c1ec0b9d..b5ba777af 100644
--- a/src/libide/workbench/ide-workbench-actions.c
+++ b/src/libide/workbench/ide-workbench-actions.c
@@ -336,6 +336,9 @@ ide_workbench_actions_init (IdeWorkbench *self)
dzl_gtk_widget_action_set (GTK_WIDGET (self), "win", "close-project",
"enabled", FALSE,
NULL);
+ dzl_gtk_widget_action_set (GTK_WIDGET (self), "win", "save-all",
+ "enabled", FALSE,
+ NULL);
action = g_property_action_new ("perspective", self, "visible-perspective-name");
g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
diff --git a/src/libide/workbench/ide-workbench.c b/src/libide/workbench/ide-workbench.c
index 8e6ebb516..47ce865a4 100644
--- a/src/libide/workbench/ide-workbench.c
+++ b/src/libide/workbench/ide-workbench.c
@@ -694,6 +694,9 @@ ide_workbench_set_context (IdeWorkbench *self,
dzl_gtk_widget_action_set (GTK_WIDGET (self), "win", "close-project",
"enabled", TRUE,
NULL);
+ dzl_gtk_widget_action_set (GTK_WIDGET (self), "win", "save-all",
+ "enabled", TRUE,
+ NULL);
project = ide_context_get_project (context);
g_object_bind_property_full (project, "name",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]