[gnome-builder] command-bar: limit to enabled actions



commit 122119d89b65cfce9aa5de49a06bdc89b6653560
Author: Christian Hergert <chergert redhat com>
Date:   Thu Dec 24 01:37:25 2015 -0800

    command-bar: limit to enabled actions

 plugins/command-bar/gb-command-gaction-provider.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/command-bar/gb-command-gaction-provider.c 
b/plugins/command-bar/gb-command-gaction-provider.c
index f77184e..ff948ea 100644
--- a/plugins/command-bar/gb-command-gaction-provider.c
+++ b/plugins/command-bar/gb-command-gaction-provider.c
@@ -452,7 +452,8 @@ gb_command_gaction_provider_complete (GbCommandProvider *provider,
               continue;
             }
 
-          if (g_str_has_prefix (names [i], initial_command_text))
+          if (g_str_has_prefix (names [i], initial_command_text) &&
+              g_action_group_get_action_enabled (group, names [i]))
             g_ptr_array_add (completions, g_strdup (names [i]));
         }
 


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