mirror of https://github.com/GNOME/gimp.git
app: don't use g_str_has_prefix() for blacklisting GEGL ops
so we don't accidentially blacklist things.
This commit is contained in:
parent
af2ad3228f
commit
d198c9d85c
|
@ -139,9 +139,7 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
|
||||||
"gegl:transform", /* in gimp */
|
"gegl:transform", /* in gimp */
|
||||||
"gegl:translate", /* pointless */
|
"gegl:translate", /* pointless */
|
||||||
"gegl:value-invert", /* in gimp */
|
"gegl:value-invert", /* in gimp */
|
||||||
"gegl:vector-stroke",
|
"gegl:vector-stroke"
|
||||||
"gimp-",
|
|
||||||
"gimp:"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gchar **categories;
|
gchar **categories;
|
||||||
|
@ -151,9 +149,12 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
|
||||||
if (! name)
|
if (! name)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
if (g_str_has_prefix (name, "gimp"))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (name_blacklist); i++)
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue