[gnome-photos/wip/rishi/shadhi: 1/3] gegl: Add gegl:shadows-highlights to the list of required operations



commit 6d87f5f11987bf0b2d5ce68a39ba67a7361687eb
Author: Umang Jain <mailumangjain gmail com>
Date:   Mon Oct 30 07:31:42 2017 +0100

    gegl: Add gegl:shadows-highlights to the list of required operations
    
    Since gegl:shadows-highlights is only available for GPLv3-licensed
    applications, set GeglConfig:application-license too.
    
    It's going to be used it in the following patches.

 src/photos-gegl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-gegl.c b/src/photos-gegl.c
index 6ccaec3..df3f5c0 100644
--- a/src/photos-gegl.c
+++ b/src/photos-gegl.c
@@ -59,6 +59,7 @@ static const gchar *REQUIRED_GEGL_OPS[] =
   "gegl:rotate-on-center",
   "gegl:save-pixbuf",
   "gegl:scale-ratio",
+  "gegl:shadows-highlights",
   "gegl:unsharp-mask",
 
   /* Used by gegl:load */
@@ -310,6 +311,7 @@ photos_gegl_init (void)
   threads = (gint) (num_processors > 1 ? num_processors / 2 : num_processors);
 
   config = gegl_config ();
+  g_object_set (config, "application-license", "GPL3", NULL);
   g_object_set (config, "threads", threads, NULL);
   g_object_set (config, "use-opencl", FALSE, NULL);
 }


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