[gimp/tito: 6/15] app: plug-in-recent-*/repeat/reshow filtered from action search.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/tito: 6/15] app: plug-in-recent-*/repeat/reshow filtered from action search.
- Date: Sun, 1 Dec 2013 22:39:59 +0000 (UTC)
commit 07f9b0ac320fcf3720a8d902dc8c33416e44676e
Author: Jehan <jehan girinstud io>
Date: Wed Oct 23 22:22:42 2013 +1300
app: plug-in-recent-*/repeat/reshow filtered from action search.
plug-in-recent-* should not be historized nor shown, in particular since
they show the same label as the action they repeat and looks like
duplicated actions.
plug-in-repeat/reshow are not historized but are still shown in the list
because they have a different label and are still an interesting search.
app/dialogs/action-search-dialog.c | 2 +-
app/widgets/gimpaction-history.c | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/app/dialogs/action-search-dialog.c b/app/dialogs/action-search-dialog.c
index 4a412b8..e20dde5 100644
--- a/app/dialogs/action-search-dialog.c
+++ b/app/dialogs/action-search-dialog.c
@@ -519,7 +519,7 @@ action_search_history_and_actions (const gchar *keyword,
if (g_str_has_suffix (name, "-menu") ||
g_str_has_suffix (name, "-popup") ||
g_str_has_prefix (name, "context-") ||
- name[0] == '<')
+ g_str_has_prefix (name, "plug-in-recent-"))
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 6ea660d..38af76f 100644
--- a/app/widgets/gimpaction-history.c
+++ b/app/widgets/gimpaction-history.c
@@ -132,9 +132,12 @@ gimp_action_history_activate_callback (GtkAction *action,
action_name = gtk_action_get_name (action);
/* Some specific actions are of no log interest. */
- if (g_str_has_suffix (action_name, "-menu") ||
- g_str_has_suffix (action_name, "-popup") ||
- g_str_has_prefix (action_name, "context-"))
+ if (g_str_has_suffix (action_name, "-menu") ||
+ g_str_has_suffix (action_name, "-popup") ||
+ 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)
return;
for (actions = history; actions; actions = g_list_next (actions))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]