Commit 57ac8cfd authored by Jon Nordby's avatar Jon Nordby

bin/gegl.c: Remove obsolete GEGL_RUN_MODE_EDITOR

This was a remainder of gegl-editor which did not
do anything useful.
parent 839c2803
......@@ -28,11 +28,7 @@ static GeglOptions *opts_new (void)
{
GeglOptions *o = g_malloc0 (sizeof (GeglOptions));
#ifdef HAVE_GTK
o->mode = GEGL_RUN_MODE_EDITOR;
#else
o->mode = GEGL_RUN_MODE_HELP;
#endif
o->xml = NULL;
o->output = NULL;
o->files = NULL;
......@@ -188,11 +184,9 @@ parse_args (int argc,
GeglOptions *o;
char **curr;
#ifndef HAVE_GTK
if (argc==1) {
usage (argv[0]);
}
#endif
o = opts_new ();
curr = argv+1;
......
......@@ -24,7 +24,6 @@
typedef enum
{
GEGL_RUN_MODE_HELP,
GEGL_RUN_MODE_EDITOR,
GEGL_RUN_MODE_OUTPUT,
GEGL_RUN_MODE_XML
} GeglRunMode;
......
......@@ -214,18 +214,6 @@ main (gint argc,
switch (o->mode)
{
case GEGL_RUN_MODE_EDITOR:
{
GeglNode *output = gegl_node_new_child (gegl,
"operation", "gegl:display",
"window-title", o->file,
NULL);
gegl_node_connect_from (output, "input", gegl_node_get_output_proxy (gegl, "output"), "output");
gegl_node_process (output);
g_object_unref (output);
g_main_loop_run (g_main_loop_new (NULL, TRUE));
}
break;
case GEGL_RUN_MODE_XML:
g_printf ("%s\n", gegl_node_to_xml (gegl, path_root));
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment