[gimp] app: don't use g_str_has_prefix() for blacklisting GEGL ops
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't use g_str_has_prefix() for blacklisting GEGL ops
- Date: Sat, 5 May 2012 18:50:02 +0000 (UTC)
commit d198c9d85cbc937a09795a47242d63f9d9c62cec
Author: Michael Natterer <mitch gimp org>
Date: Sat May 5 20:49:27 2012 +0200
app: don't use g_str_has_prefix() for blacklisting GEGL ops
so we don't accidentially blacklist things.
app/tools/gimpgegltool.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index 8fa1955..6477e78 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -139,9 +139,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:transform", /* in gimp */
"gegl:translate", /* pointless */
"gegl:value-invert", /* in gimp */
- "gegl:vector-stroke",
- "gimp-",
- "gimp:"
+ "gegl:vector-stroke"
};
gchar **categories;
@@ -151,9 +149,12 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
if (! name)
return TRUE;
+ if (g_str_has_prefix (name, "gimp"))
+ return TRUE;
+
for (i = 0; i < G_N_ELEMENTS (name_blacklist); i++)
{
- if (g_str_has_prefix (name, name_blacklist[i]))
+ if (! strcmp (name, name_blacklist[i]))
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]