[gimp] app: don't show invisible actions in search dialog
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't show invisible actions in search dialog
- Date: Thu, 29 Mar 2018 09:26:23 +0000 (UTC)
commit c3efb1b0deca09ca3bb2337dd9d138a1b7d7964f
Author: Ell <ell_se yahoo com>
Date: Thu Mar 29 05:16:52 2018 -0400
app: don't show invisible actions in search dialog
app/dialogs/action-search-dialog.c | 5 +++--
app/widgets/gimpaction-history.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/app/dialogs/action-search-dialog.c b/app/dialogs/action-search-dialog.c
index 78b1468..b42a96b 100644
--- a/app/dialogs/action-search-dialog.c
+++ b/app/dialogs/action-search-dialog.c
@@ -129,8 +129,9 @@ action_search_history_and_actions (GimpSearchPopup *popup,
if (gimp_action_history_is_blacklisted_action (name))
continue;
- if (! gtk_action_is_sensitive (action) &&
- ! GIMP_GUI_CONFIG (gimp->config)->search_show_unavailable)
+ if (! gtk_action_is_visible (action) ||
+ (! gtk_action_is_sensitive (action) &&
+ ! GIMP_GUI_CONFIG (gimp->config)->search_show_unavailable))
continue;
if (action_search_match_keyword (action, keyword, §ion, gimp))
diff --git a/app/widgets/gimpaction-history.c b/app/widgets/gimpaction-history.c
index 65786eb..6253912 100644
--- a/app/widgets/gimpaction-history.c
+++ b/app/widgets/gimpaction-history.c
@@ -294,8 +294,9 @@ gimp_action_history_search (Gimp *gimp,
if (action == NULL)
continue;
- if (! gtk_action_is_sensitive (action) &&
- ! config->search_show_unavailable)
+ if (! gtk_action_is_visible (action) ||
+ (! gtk_action_is_sensitive (action) &&
+ ! config->search_show_unavailable))
continue;
if (match_func (action, keyword, NULL, gimp))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]