[gimp] app: exclude generated submenu actions for plug-ins from the search



commit 87df804f8a23574615d22728bf1c1a082135d0a8
Author: Michael Natterer <mitch gimp org>
Date:   Wed Feb 19 01:24:27 2014 +0100

    app: exclude generated submenu actions for plug-ins from the search

 app/widgets/gimpaction-history.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpaction-history.c b/app/widgets/gimpaction-history.c
index 2418ac7..d74f7f1 100644
--- a/app/widgets/gimpaction-history.c
+++ b/app/widgets/gimpaction-history.c
@@ -161,7 +161,8 @@ gimp_action_history_exit (GimpGuiConfig *config)
 gboolean
 gimp_action_history_excluded_action (const gchar *action_name)
 {
-  return (g_str_has_suffix (action_name, "-menu")           ||
+  return (action_name[0] == '<'                             ||
+          g_str_has_suffix (action_name, "-menu")           ||
           g_str_has_suffix (action_name, "-popup")          ||
           g_str_has_suffix (action_name, "-set")            ||
           g_str_has_suffix (action_name, "-accel")          ||


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