Remove gtk_render_icon_surface
authorTimm Bäder <mail@baedert.org>
Sat, 14 Apr 2018 20:12:51 +0000 (22:12 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 15 Apr 2018 15:12:01 +0000 (17:12 +0200)
As part of removing all the cairo_surace_t usage. There's still
gtk_render_icon for the same purpose that takes a GdkTexture*

gtk/gtkrender.c
gtk/gtkrender.h

index c058f5954585e2e05d718be98a7860e1c383afef..9f6ce29750bbf44f7f3117d4d279bc269bbf69f9 100644 (file)
@@ -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);
-}
-
index a1408748fe9d8082a917c264818d6ddb66747ca8..938212f3406e96d50c15c24a43c30bf24369f87e 100644 (file)
@@ -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__ */