gegl-tool: blacklist lens-correct and hstack since they can't be used with the gegl tool.

lens-correct expect a lens correction model
hstack expect and aux buffer
This commit is contained in:
Michael Muré 2011-07-25 15:20:53 +02:00
parent 421ca4114e
commit 2ba3673359

View file

@ -157,7 +157,7 @@ gimp_gegl_tool_initialize (GimpTool *tool,
if (gimp_drawable_is_indexed (drawable)) if (gimp_drawable_is_indexed (drawable))
{ {
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED, g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("GEGL operations do not operate on indexed layers.")); _("GEGL operations do not operate on indexed layers."));
return FALSE; return FALSE;
} }
@ -256,6 +256,8 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
"gegl:contrast-curve", "gegl:contrast-curve",
"gegl:fill-path", "gegl:fill-path",
"gegl:vector-stroke", "gegl:vector-stroke",
"gegl:lens-correct",
"gegl:hstack",
"gimp-", "gimp-",
"gimp:" "gimp:"
}; };
@ -377,7 +379,7 @@ gimp_gegl_tool_dialog (GimpImageMapTool *image_map_tool)
gtk_widget_show (label); gtk_widget_show (label);
store = gtk_list_store_new (N_COLUMNS, store = gtk_list_store_new (N_COLUMNS,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
opclasses = gimp_get_geglopclasses (); opclasses = gimp_get_geglopclasses ();
@ -389,9 +391,9 @@ gimp_gegl_tool_dialog (GimpImageMapTool *image_map_tool)
if (g_str_has_prefix (opclass->name, "gegl:")) if (g_str_has_prefix (opclass->name, "gegl:"))
{ {
label = opclass->name + strlen ("gegl:"); label = opclass->name + strlen ("gegl:");
stock_id = GIMP_STOCK_GEGL; stock_id = GIMP_STOCK_GEGL;
} }
else else
{ {
label = opclass->name; label = opclass->name;
@ -400,8 +402,8 @@ gimp_gegl_tool_dialog (GimpImageMapTool *image_map_tool)
gtk_list_store_insert_with_values (store, NULL, -1, gtk_list_store_insert_with_values (store, NULL, -1,
COLUMN_NAME, opclass->name, COLUMN_NAME, opclass->name,
COLUMN_LABEL, label, COLUMN_LABEL, label,
COLUMN_STOCK_ID, stock_id, COLUMN_STOCK_ID, stock_id,
-1); -1);
} }