[gegl] bin/gegl.c: Remove obsolete GEGL_RUN_MODE_EDITOR



commit 57ac8cfd3262978d19680f69c6b9ce7311fd1085
Author: Jon Nordby <jononor gmail com>
Date:   Wed Jun 22 22:16:08 2011 +0200

    bin/gegl.c: Remove obsolete GEGL_RUN_MODE_EDITOR
    
    This was a remainder of gegl-editor which did not
    do anything useful.

 bin/gegl-options.c |    6 ------
 bin/gegl-options.h |    1 -
 bin/gegl.c         |   12 ------------
 3 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/bin/gegl-options.c b/bin/gegl-options.c
index 1f0ae01..494bc39 100644
--- a/bin/gegl-options.c
+++ b/bin/gegl-options.c
@@ -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;
diff --git a/bin/gegl-options.h b/bin/gegl-options.h
index 684ddae..8989fc6 100644
--- a/bin/gegl-options.h
+++ b/bin/gegl-options.h
@@ -24,7 +24,6 @@
 typedef enum
 {
   GEGL_RUN_MODE_HELP,
-  GEGL_RUN_MODE_EDITOR,
   GEGL_RUN_MODE_OUTPUT,
   GEGL_RUN_MODE_XML
 } GeglRunMode;
diff --git a/bin/gegl.c b/bin/gegl.c
index 661377d..f08b6d2 100644
--- a/bin/gegl.c
+++ b/bin/gegl.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]