modules: small cleanup in display-filter-clip-warning.c
Remove debug g_printerr(), and rearrange class_init() to match the other display filters.
This commit is contained in:
@ -151,10 +151,6 @@ cdisplay_clip_warning_class_init (CdisplayClipWarningClass *klass)
|
|||||||
object_class->get_property = cdisplay_clip_warning_get_property;
|
object_class->get_property = cdisplay_clip_warning_get_property;
|
||||||
object_class->set_property = cdisplay_clip_warning_set_property;
|
object_class->set_property = cdisplay_clip_warning_set_property;
|
||||||
|
|
||||||
display_class->name = _("Clip Warning");
|
|
||||||
display_class->help_id = "gimp-colordisplay-clip-warning";
|
|
||||||
display_class->icon_name = "gimp-warning";
|
|
||||||
|
|
||||||
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SHADOWS,
|
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SHADOWS,
|
||||||
"show-shadows",
|
"show-shadows",
|
||||||
_("Show shadows"),
|
_("Show shadows"),
|
||||||
@ -229,6 +225,10 @@ cdisplay_clip_warning_class_init (CdisplayClipWarningClass *klass)
|
|||||||
TRUE,
|
TRUE,
|
||||||
GIMP_PARAM_STATIC_STRINGS);
|
GIMP_PARAM_STATIC_STRINGS);
|
||||||
|
|
||||||
|
display_class->name = _("Clip Warning");
|
||||||
|
display_class->help_id = "gimp-colordisplay-clip-warning";
|
||||||
|
display_class->icon_name = "gimp-warning";
|
||||||
|
|
||||||
display_class->convert_buffer = cdisplay_clip_warning_convert_buffer;
|
display_class->convert_buffer = cdisplay_clip_warning_convert_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -350,7 +350,6 @@ cdisplay_clip_warning_convert_buffer (GimpColorDisplay *display,
|
|||||||
CdisplayClipWarning *clip_warning = CDISPLAY_CLIP_WARNING (display);
|
CdisplayClipWarning *clip_warning = CDISPLAY_CLIP_WARNING (display);
|
||||||
GeglBufferIterator *iter;
|
GeglBufferIterator *iter;
|
||||||
|
|
||||||
g_printerr ("%d x %d\n", area->width, area->height);
|
|
||||||
iter = gegl_buffer_iterator_new (buffer, area, 0,
|
iter = gegl_buffer_iterator_new (buffer, area, 0,
|
||||||
babl_format ("R'G'B'A float"),
|
babl_format ("R'G'B'A float"),
|
||||||
GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE);
|
GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE);
|
||||||
|
Reference in New Issue
Block a user