gdk: Remove deprecated gdk_cairo_set_source_color

This commit is contained in:
Rico Tzschichholz 2016-10-24 10:36:55 +02:00
parent e528819d00
commit 7630c86468
3 changed files with 0 additions and 29 deletions

View File

@ -597,7 +597,6 @@ gdk_window_create_similar_surface
gdk_window_create_similar_image_surface
gdk_cairo_get_clip_rectangle
gdk_cairo_get_drawing_context
gdk_cairo_set_source_color
gdk_cairo_set_source_rgba
gdk_cairo_set_source_pixbuf
gdk_cairo_set_source_window

View File

@ -79,30 +79,6 @@ gdk_cairo_get_clip_rectangle (cairo_t *cr,
return clip_exists;
}
/**
* gdk_cairo_set_source_color:
* @cr: a cairo context
* @color: a #GdkColor
*
* Sets the specified #GdkColor as the source color of @cr.
*
* Since: 2.8
*
* Deprecated: 3.4: Use gdk_cairo_set_source_rgba() instead
*/
void
gdk_cairo_set_source_color (cairo_t *cr,
const GdkColor *color)
{
g_return_if_fail (cr != NULL);
g_return_if_fail (color != NULL);
cairo_set_source_rgb (cr,
color->red / 65535.,
color->green / 65535.,
color->blue / 65535.);
}
/**
* gdk_cairo_set_source_rgba:
* @cr: a cairo context

View File

@ -61,10 +61,6 @@ cairo_region_t *
gdk_cairo_region_create_from_surface
(cairo_surface_t *surface);
GDK_DEPRECATED_IN_3_4_FOR(gdk_cairo_set_source_rgba)
void gdk_cairo_set_source_color (cairo_t *cr,
const GdkColor *color);
GDK_AVAILABLE_IN_3_10
cairo_surface_t * gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
int scale,