[gimp/tito: 11/15] app: action search does not display its own action, and it is not logged either.



commit 292bed4193ed380006d101c99fd3c0672cc34bdb
Author: Jehan <jehan girinstud io>
Date:   Sat Nov 30 15:41:23 2013 +1300

    app: action search does not display its own action, and it is not logged either.

 app/dialogs/action-search-dialog.c |    9 +++++----
 app/widgets/gimpaction-history.c   |    3 ++-
 2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/app/dialogs/action-search-dialog.c b/app/dialogs/action-search-dialog.c
index 956f861..eee5fe2 100644
--- a/app/dialogs/action-search-dialog.c
+++ b/app/dialogs/action-search-dialog.c
@@ -537,10 +537,11 @@ action_search_history_and_actions (const gchar  *keyword,
 
           name = gtk_action_get_name (action);
 
-          if (g_str_has_suffix (name, "-menu")    ||
-              g_str_has_suffix (name, "-popup")   ||
-              g_str_has_prefix (name, "context-") ||
-              g_str_has_prefix (name, "plug-in-recent-"))
+          if (g_str_has_suffix (name, "-menu")           ||
+              g_str_has_suffix (name, "-popup")          ||
+              g_str_has_prefix (name, "context-")        ||
+              g_str_has_prefix (name, "plug-in-recent-") ||
+              g_strcmp0 (name, "dialogs-action-search") == 0)
             continue;
 
           if (! gtk_action_get_sensitive (action) && ! private->config->search_show_unavailable)
diff --git a/app/widgets/gimpaction-history.c b/app/widgets/gimpaction-history.c
index 38af76f..04a8c70 100644
--- a/app/widgets/gimpaction-history.c
+++ b/app/widgets/gimpaction-history.c
@@ -137,7 +137,8 @@ gimp_action_history_activate_callback (GtkAction *action,
       g_str_has_prefix (action_name, "context-")        ||
       g_str_has_prefix (action_name, "plug-in-recent-") ||
       g_strcmp0 (action_name, "plug-in-repeat") == 0    ||
-      g_strcmp0 (action_name, "plug-in-reshow") == 0)
+      g_strcmp0 (action_name, "plug-in-reshow") == 0    ||
+      g_strcmp0 (action_name, "dialogs-action-search") == 0)
     return;
 
   for (actions = history; actions; actions = g_list_next (actions))


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