mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpcolor: colormanaged: Use G_DECLARE_INTERFACE()
This cuts aways a little of the GObject boilerplate.
This commit is contained in:
parent
aefb40c82a
commit
a0ba37649d
3 changed files with 5 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue