Skip to content

Commit 7905a7c

Browse files
author
Martin Nordholts
committed
Adapt to new babl API, s/babl_format/babl_format_from_name/
* app/gegl/gimp-gegl-utils.c * app/gegl/gimpoperationpointlayermode.c * app/gegl/gimpoperationtilesource.c svn path=/trunk/; revision=27911
1 parent b279420 commit 7905a7c

4 files changed

+18
-10
lines changed

ChangeLog

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2009-01-17 Martin Nordholts <[email protected]>
2+
3+
Adapt to new babl API, s/babl_format/babl_format_from_name/
4+
5+
* app/gegl/gimp-gegl-utils.c
6+
* app/gegl/gimpoperationpointlayermode.c
7+
* app/gegl/gimpoperationtilesource.c
8+
19
2009-01-17 Sven Neumann <[email protected]>
210

311
Bug 568021 – Unused code in unsharp-mask.c

app/gegl/gimp-gegl-utils.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,27 @@ gimp_bpp_to_babl_format (guint bpp,
4949
switch (bpp)
5050
{
5151
case 1:
52-
return babl_format ("Y u8");
52+
return babl_format_from_name ("Y u8");
5353
case 2:
54-
return babl_format ("YA u8");
54+
return babl_format_from_name ("YA u8");
5555
case 3:
56-
return babl_format ("RGB u8");
56+
return babl_format_from_name ("RGB u8");
5757
case 4:
58-
return babl_format ("RGBA u8");
58+
return babl_format_from_name ("RGBA u8");
5959
}
6060
}
6161
else
6262
{
6363
switch (bpp)
6464
{
6565
case 1:
66-
return babl_format ("Y' u8");
66+
return babl_format_from_name ("Y' u8");
6767
case 2:
68-
return babl_format ("Y'A u8");
68+
return babl_format_from_name ("Y'A u8");
6969
case 3:
70-
return babl_format ("R'G'B' u8");
70+
return babl_format_from_name ("R'G'B' u8");
7171
case 4:
72-
return babl_format ("R'G'B'A u8");
72+
return babl_format_from_name ("R'G'B'A u8");
7373
}
7474
}
7575

app/gegl/gimpoperationpointlayermode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ gimp_operation_point_layer_mode_get_property (GObject *object,
187187
static void
188188
gimp_operation_point_layer_mode_prepare (GeglOperation *operation)
189189
{
190-
Babl *format = babl_format ("RaGaBaA float");
190+
Babl *format = babl_format_from_name ("RaGaBaA float");
191191

192192
gegl_operation_set_format (operation, "input", format);
193193
gegl_operation_set_format (operation, "output", format);

app/gegl/gimpoperationtilesource.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ gimp_operation_tile_source_prepare (GeglOperation *operation)
186186
if (self->tile_manager)
187187
{
188188

189-
gegl_operation_set_format (operation, "output", babl_format("RaGaBaA float"));
189+
gegl_operation_set_format (operation, "output", babl_format_from_name("RaGaBaA float"));
190190
}
191191
}
192192

0 commit comments

Comments
 (0)