[gimp] app: minor fixes in the shadows-highlights code



commit 57993525275f577980ea2b154473656498376a0c
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jan 5 12:23:36 2018 +0100

    app: minor fixes in the shadows-highlights code

 app/propgui/gimppropgui-shadows-highlights.c |   21 ++++++++++-----------
 app/propgui/gimppropgui-shadows-highlights.h |   14 +++++++-------
 app/sanity.c                                 |    1 +
 3 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/app/propgui/gimppropgui-shadows-highlights.c b/app/propgui/gimppropgui-shadows-highlights.c
index 48a13f7..da0f6d1 100644
--- a/app/propgui/gimppropgui-shadows-highlights.c
+++ b/app/propgui/gimppropgui-shadows-highlights.c
@@ -38,18 +38,17 @@
 
 GtkWidget *
 _gimp_prop_gui_new_shadows_highlights (GObject                  *config,
-                                      GParamSpec              **param_specs,
-                                      guint                     n_param_specs,
-                                      GeglRectangle            *area,
-                                      GimpContext              *context,
-                                      GimpCreatePickerFunc      create_picker_func,
-                                      GimpCreateControllerFunc  create_controller_func,
-                                      gpointer                  creator)
+                                       GParamSpec              **param_specs,
+                                       guint                     n_param_specs,
+                                       GeglRectangle            *area,
+                                       GimpContext              *context,
+                                       GimpCreatePickerFunc      create_picker_func,
+                                       GimpCreateControllerFunc  create_controller_func,
+                                       gpointer                  creator)
 {
   GtkWidget   *main_vbox;
   GtkWidget   *frame;
   GtkWidget   *vbox;
-  GtkWidget   *checkbox;
   GtkWidget   *scale;
   const gchar *label;
 
@@ -58,7 +57,7 @@ _gimp_prop_gui_new_shadows_highlights (GObject                  *config,
   g_return_val_if_fail (n_param_specs > 0, NULL);
   g_return_val_if_fail (GIMP_IS_CONTEXT (context), NULL);
 
-  main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
+  main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
 
   frame = gimp_frame_new (_("Shadows"));
   gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0);
@@ -73,7 +72,7 @@ _gimp_prop_gui_new_shadows_highlights (GObject                  *config,
   gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
 
-  scale = gimp_prop_widget_new (config, "shadows_ccorrect",
+  scale = gimp_prop_widget_new (config, "shadows-ccorrect",
                                 area, context, NULL, NULL, NULL, &label);
   gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
@@ -91,7 +90,7 @@ _gimp_prop_gui_new_shadows_highlights (GObject                  *config,
   gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
 
-  scale = gimp_prop_widget_new (config, "highlights_ccorrect",
+  scale = gimp_prop_widget_new (config, "highlights-ccorrect",
                                 area, context, NULL, NULL, NULL, &label);
   gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
   gtk_widget_show (scale);
diff --git a/app/propgui/gimppropgui-shadows-highlights.h b/app/propgui/gimppropgui-shadows-highlights.h
index e9da17c..d4fa60d 100644
--- a/app/propgui/gimppropgui-shadows-highlights.h
+++ b/app/propgui/gimppropgui-shadows-highlights.h
@@ -23,13 +23,13 @@
 
 GtkWidget *
 _gimp_prop_gui_new_shadows_highlights (GObject                  *config,
-                                      GParamSpec              **param_specs,
-                                      guint                     n_param_specs,
-                                      GeglRectangle            *area,
-                                      GimpContext              *context,
-                                      GimpCreatePickerFunc      create_picker_func,
-                                      GimpCreateControllerFunc  create_controller_func,
-                                      gpointer                  creator);
+                                       GParamSpec              **param_specs,
+                                       guint                     n_param_specs,
+                                       GeglRectangle            *area,
+                                       GimpContext              *context,
+                                       GimpCreatePickerFunc      create_picker_func,
+                                       GimpCreateControllerFunc  create_controller_func,
+                                       gpointer                  creator);
 
 
 #endif /* __GIMP_PROP_GUI_SHADOWS_HIGHLIGHTS_H__ */
diff --git a/app/sanity.c b/app/sanity.c
index 23b3d50..364e519 100644
--- a/app/sanity.c
+++ b/app/sanity.c
@@ -689,6 +689,7 @@ sanity_check_gegl_ops (void)
     "gegl:scale-ratio",
     "gegl:seamless-clone",
     "gegl:sepia",
+    "gegl:shadows-highlights",
     "gegl:shift",
     "gegl:simplex-noise",
     "gegl:shift",


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