mirror of https://github.com/GNOME/gimp.git
app: remove gimp_context_[get|set]_[foreground|background]_pixel()
Artifacts from early GEGL posting.
This commit is contained in:
parent
ef78897c67
commit
0f98eda5a5
|
@ -2385,18 +2385,6 @@ gimp_context_get_foreground (GimpContext *context,
|
|||
*color = context->foreground;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_get_foreground_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gpointer pixel)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_CONTEXT (context));
|
||||
g_return_if_fail (pixel_format != NULL);
|
||||
g_return_if_fail (pixel != NULL);
|
||||
|
||||
gimp_rgba_get_pixel (&context->foreground, pixel_format, pixel);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_set_foreground (GimpContext *context,
|
||||
const GimpRGB *color)
|
||||
|
@ -2408,22 +2396,6 @@ gimp_context_set_foreground (GimpContext *context,
|
|||
gimp_context_real_set_foreground (context, color);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_set_foreground_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gconstpointer pixel)
|
||||
{
|
||||
GimpRGB color;
|
||||
|
||||
g_return_if_fail (GIMP_IS_CONTEXT (context));
|
||||
g_return_if_fail (pixel_format != NULL);
|
||||
g_return_if_fail (pixel != NULL);
|
||||
|
||||
gimp_rgba_set_pixel (&color, pixel_format, pixel);
|
||||
|
||||
gimp_context_set_foreground (context, &color);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_foreground_changed (GimpContext *context)
|
||||
{
|
||||
|
@ -2463,18 +2435,6 @@ gimp_context_get_background (GimpContext *context,
|
|||
*color = context->background;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_get_background_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gpointer pixel)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_CONTEXT (context));
|
||||
g_return_if_fail (pixel_format != NULL);
|
||||
g_return_if_fail (pixel != NULL);
|
||||
|
||||
gimp_rgba_get_pixel (&context->background, pixel_format, pixel);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_set_background (GimpContext *context,
|
||||
const GimpRGB *color)
|
||||
|
@ -2486,22 +2446,6 @@ gimp_context_set_background (GimpContext *context,
|
|||
gimp_context_real_set_background (context, color);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_set_background_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gconstpointer pixel)
|
||||
{
|
||||
GimpRGB color;
|
||||
|
||||
g_return_if_fail (GIMP_IS_CONTEXT (context));
|
||||
g_return_if_fail (pixel_format != NULL);
|
||||
g_return_if_fail (pixel != NULL);
|
||||
|
||||
gimp_rgba_set_pixel (&color, pixel_format, pixel);
|
||||
|
||||
gimp_context_set_background (context, &color);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_context_background_changed (GimpContext *context)
|
||||
{
|
||||
|
|
|
@ -245,28 +245,16 @@ void gimp_context_paint_info_changed (GimpContext *context);
|
|||
/* foreground color */
|
||||
void gimp_context_get_foreground (GimpContext *context,
|
||||
GimpRGB *color);
|
||||
void gimp_context_get_foreground_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gpointer pixel);
|
||||
void gimp_context_set_foreground (GimpContext *context,
|
||||
const GimpRGB *color);
|
||||
void gimp_context_set_foreground_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gconstpointer pixel);
|
||||
void gimp_context_foreground_changed (GimpContext *context);
|
||||
|
||||
|
||||
/* background color */
|
||||
void gimp_context_get_background (GimpContext *context,
|
||||
GimpRGB *color);
|
||||
void gimp_context_get_background_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gpointer pixel);
|
||||
void gimp_context_set_background (GimpContext *context,
|
||||
const GimpRGB *color);
|
||||
void gimp_context_set_background_pixel (GimpContext *context,
|
||||
const Babl *pixel_format,
|
||||
gconstpointer pixel);
|
||||
void gimp_context_background_changed (GimpContext *context);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue