[gnome-builder/wip/gtk4-port: 1140/1774] plugins/sysprof: disable run action when already running
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1140/1774] plugins/sysprof: disable run action when already running
- Date: Mon, 11 Jul 2022 22:31:36 +0000 (UTC)
commit 06775c60a0b283008b92e0b3a2f3ad20b5706f37
Author: Christian Hergert <chergert redhat com>
Date: Tue May 24 13:05:30 2022 -0700
plugins/sysprof: disable run action when already running
src/plugins/sysprof/gbp-sysprof-workspace-addin.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/plugins/sysprof/gbp-sysprof-workspace-addin.c
b/src/plugins/sysprof/gbp-sysprof-workspace-addin.c
index d92188087..861365bae 100644
--- a/src/plugins/sysprof/gbp-sysprof-workspace-addin.c
+++ b/src/plugins/sysprof/gbp-sysprof-workspace-addin.c
@@ -471,6 +471,12 @@ gbp_sysprof_workspace_addin_load (IdeWorkspaceAddin *addin,
G_N_ELEMENTS (entries),
self);
+ g_object_bind_property (self->run_manager,
+ "busy",
+ g_action_map_lookup_action (G_ACTION_MAP (self->actions), "run"),
+ "enabled",
+ G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN);
+
sysprof_check_supported_async (NULL,
gbp_sysprof_workspace_addin_check_supported_cb,
g_object_ref (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]