app: minor fixes in the shadows-highlights code

This commit is contained in:
Michael Natterer 2018-01-05 12:23:36 +01:00
parent 4b7e01f60b
commit 5799352527
3 changed files with 18 additions and 18 deletions

View File

@ -38,18 +38,17 @@
GtkWidget * GtkWidget *
_gimp_prop_gui_new_shadows_highlights (GObject *config, _gimp_prop_gui_new_shadows_highlights (GObject *config,
GParamSpec **param_specs, GParamSpec **param_specs,
guint n_param_specs, guint n_param_specs,
GeglRectangle *area, GeglRectangle *area,
GimpContext *context, GimpContext *context,
GimpCreatePickerFunc create_picker_func, GimpCreatePickerFunc create_picker_func,
GimpCreateControllerFunc create_controller_func, GimpCreateControllerFunc create_controller_func,
gpointer creator) gpointer creator)
{ {
GtkWidget *main_vbox; GtkWidget *main_vbox;
GtkWidget *frame; GtkWidget *frame;
GtkWidget *vbox; GtkWidget *vbox;
GtkWidget *checkbox;
GtkWidget *scale; GtkWidget *scale;
const gchar *label; 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 (n_param_specs > 0, NULL);
g_return_val_if_fail (GIMP_IS_CONTEXT (context), 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")); frame = gimp_frame_new (_("Shadows"));
gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0); 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_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
gtk_widget_show (scale); 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); area, context, NULL, NULL, NULL, &label);
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
gtk_widget_show (scale); 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_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
gtk_widget_show (scale); 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); area, context, NULL, NULL, NULL, &label);
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
gtk_widget_show (scale); gtk_widget_show (scale);

View File

@ -23,13 +23,13 @@
GtkWidget * GtkWidget *
_gimp_prop_gui_new_shadows_highlights (GObject *config, _gimp_prop_gui_new_shadows_highlights (GObject *config,
GParamSpec **param_specs, GParamSpec **param_specs,
guint n_param_specs, guint n_param_specs,
GeglRectangle *area, GeglRectangle *area,
GimpContext *context, GimpContext *context,
GimpCreatePickerFunc create_picker_func, GimpCreatePickerFunc create_picker_func,
GimpCreateControllerFunc create_controller_func, GimpCreateControllerFunc create_controller_func,
gpointer creator); gpointer creator);
#endif /* __GIMP_PROP_GUI_SHADOWS_HIGHLIGHTS_H__ */ #endif /* __GIMP_PROP_GUI_SHADOWS_HIGHLIGHTS_H__ */

View File

@ -689,6 +689,7 @@ sanity_check_gegl_ops (void)
"gegl:scale-ratio", "gegl:scale-ratio",
"gegl:seamless-clone", "gegl:seamless-clone",
"gegl:sepia", "gegl:sepia",
"gegl:shadows-highlights",
"gegl:shift", "gegl:shift",
"gegl:simplex-noise", "gegl:simplex-noise",
"gegl:shift", "gegl:shift",