libgimpcolor: colormanaged: Use G_DECLARE_INTERFACE()

This cuts aways a little of the GObject boilerplate.
This commit is contained in:
Niels De Graef 2019-07-18 19:14:52 +02:00 committed by Jehan
parent aefb40c82a
commit a0ba37649d
3 changed files with 5 additions and 12 deletions

View file

@ -94,7 +94,7 @@ gimp_color_managed_get_icc_profile (GimpColorManaged *managed,
*len = 0;
iface = GIMP_COLOR_MANAGED_GET_INTERFACE (managed);
iface = GIMP_COLOR_MANAGED_GET_IFACE (managed);
if (iface->get_icc_profile)
return iface->get_icc_profile (managed, len);
@ -120,7 +120,7 @@ gimp_color_managed_get_color_profile (GimpColorManaged *managed)
g_return_val_if_fail (GIMP_IS_COLOR_MANAGED (managed), NULL);
iface = GIMP_COLOR_MANAGED_GET_INTERFACE (managed);
iface = GIMP_COLOR_MANAGED_GET_IFACE (managed);
if (iface->get_color_profile)
return iface->get_color_profile (managed);