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



commit dcd5aba807c6e1f78dd6da44142a69902c70fac6
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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788201

 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 8e80028..c31ff9c 100644
--- a/src/photos-gegl.c
+++ b/src/photos-gegl.c
@@ -61,6 +61,7 @@ static const gchar *REQUIRED_GEGL_OPS[] =
   "gegl:nop",
   "gegl:save-pixbuf",
   "gegl:scale-ratio",
+  "gegl:shadows-highlights",
   "gegl:unsharp-mask",
 
   /* Used by gegl:load */
@@ -620,6 +621,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]