[gnome-builder/wip/gtk4-port: 1655/1774] plugins/buildui: remove unused action




commit 9d187a8465efe7e1f9ba4599161c4b15825a22c9
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jun 24 14:54:28 2022 -0700

    plugins/buildui: remove unused action
    
    We dropped this as part of the revamp for run commands.

 src/plugins/buildui/gbp-buildui-tree-addin.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-tree-addin.c b/src/plugins/buildui/gbp-buildui-tree-addin.c
index f075eff80..92edc4691 100644
--- a/src/plugins/buildui/gbp-buildui-tree-addin.c
+++ b/src/plugins/buildui/gbp-buildui-tree-addin.c
@@ -326,7 +326,6 @@ gbp_buildui_tree_addin_selection_changed (IdeTreeAddin *addin,
                                           IdeTreeNode  *node)
 {
   GbpBuilduiTreeAddin *self = (GbpBuilduiTreeAddin *)addin;
-  IdeBuildTarget *target;
   IdeContext *context;
   GAction *action;
 
@@ -346,14 +345,6 @@ gbp_buildui_tree_addin_selection_changed (IdeTreeAddin *addin,
   action = g_action_map_lookup_action (G_ACTION_MAP (self->group), "rebuild");
   g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
                                node && ide_tree_node_holds (node, IDE_TYPE_BUILD_TARGET));
-
-  action = g_action_map_lookup_action (G_ACTION_MAP (self->group), "run-with-handler");
-  g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
-                               node &&
-                               ide_tree_node_holds (node, IDE_TYPE_BUILD_TARGET) &&
-                               (target = ide_tree_node_get_item (node)) &&
-                               ide_build_target_get_install (target) &&
-                               ide_build_target_get_kind (target) == IDE_ARTIFACT_KIND_EXECUTABLE);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]