Commit 2f95b4dd authored by Timm Bäder's avatar Timm Bäder 🤔
Browse files

Remove gtk_render_icon_surface

As part of removing all the cairo_surace_t usage. There's still
gtk_render_icon for the same purpose that takes a GdkTexture*
parent 4b02982e
......@@ -835,8 +835,6 @@ gtk_render_activity (GtkStyleContext *context,
* regardless of scaling factors, which may not be appropriate when
* drawing on displays with high pixel densities.
*
* You probably want to use gtk_render_icon_surface() instead, if you
* already have a Cairo surface.
**/
void
gtk_render_icon (GtkStyleContext *context,
......@@ -859,30 +857,3 @@ gtk_render_icon (GtkStyleContext *context,
cairo_surface_destroy (surface);
}
/**
* gtk_render_icon_surface:
* @context: a #GtkStyleContext
* @cr: a #cairo_t
* @surface: a #cairo_surface_t containing the icon to draw
* @x: X position for the @icon
* @y: Y position for the @incon
*
* Renders the icon in @surface at the specified @x and @y coordinates.
**/
void
gtk_render_icon_surface (GtkStyleContext *context,
cairo_t *cr,
cairo_surface_t *surface,
gdouble x,
gdouble y)
{
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
g_return_if_fail (cr != NULL);
gtk_css_style_render_icon_surface (gtk_style_context_lookup_style (context),
cr,
surface,
x, y);
}
......@@ -140,13 +140,6 @@ void gtk_render_icon (GtkStyleContext *context,
GdkTexture *texture,
gdouble x,
gdouble y);
GDK_AVAILABLE_IN_ALL
void gtk_render_icon_surface (GtkStyleContext *context,
cairo_t *cr,
cairo_surface_t *surface,
gdouble x,
gdouble y);
G_END_DECLS
#endif /* __GTK_RENDER_H__ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment