[gnome-builder] workbench: disable the action if there is no workspace mapping.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: disable the action if there is no workspace mapping.
- Date: Wed, 10 Sep 2014 06:09:18 +0000 (UTC)
commit c0c6264edd139335177a0ba4858101e6bebdf952
Author: Christian Hergert <christian hergert me>
Date: Tue Sep 9 23:09:13 2014 -0700
workbench: disable the action if there is no workspace mapping.
src/workbench/gb-workbench-actions.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/workbench/gb-workbench-actions.c b/src/workbench/gb-workbench-actions.c
index e221dc0..5c93aa7 100644
--- a/src/workbench/gb-workbench-actions.c
+++ b/src/workbench/gb-workbench-actions.c
@@ -97,6 +97,8 @@ connect_bindings (GbWorkbenchActions *actions,
action, "enabled",
G_BINDING_SYNC_CREATE);
priv->bindings = g_slist_prepend (priv->bindings, binding);
+ } else {
+ g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]