[gtk+] Drop gtk_snapshot_render_icon



commit 7b032a98628531656575b206f650dd3061b39dd3
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 29 18:34:45 2017 -0500

    Drop gtk_snapshot_render_icon
    
    Its not used, and we are working towards removing
    GdkPixbuf in the API.

 gtk/gtksnapshot.c |   35 -----------------------------------
 gtk/gtksnapshot.h |    6 ------
 2 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index 8885806..e97efb9 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -1480,38 +1480,3 @@ gtk_snapshot_render_layout (GtkSnapshot     *snapshot,
 
   gtk_snapshot_offset (snapshot, -x, -y);
 }
-
-/**
- * gtk_snapshot_render_icon:
- * @snapshot: a #GtkSnapshot
- * @context: the #GtkStyleContext to use
- * @pixbuf: the #GdkPixbuf to render
- * @x: X origin of the rectangle
- * @y: Y origin of the rectangle
- *
- * Creates a render node for rendering @pixbuf according to the style
- * information in @context, and appends it to the current node of @snapshot,
- * without changing the current node.
- *
- * Since: 3.90
- */
-void
-gtk_snapshot_render_icon (GtkSnapshot     *snapshot,
-                          GtkStyleContext *context,
-                          GdkPixbuf       *pixbuf,
-                          gdouble          x,
-                          gdouble          y)
-{
-  GdkTexture *texture;
-
-  texture = gdk_texture_new_for_pixbuf (pixbuf);
-  gtk_snapshot_offset (snapshot, x, y);
-  gtk_css_style_snapshot_icon_texture (gtk_style_context_lookup_style (context),
-                                       snapshot,
-                                       texture,
-                                       1,
-                                       FALSE);
-  gtk_snapshot_offset (snapshot, -x, -y);
-  g_object_unref (texture);
-}
-
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h
index 551bec7..e1a1e2a 100644
--- a/gtk/gtksnapshot.h
+++ b/gtk/gtksnapshot.h
@@ -166,12 +166,6 @@ void            gtk_snapshot_render_insertion_cursor    (GtkSnapshot
                                                          PangoLayout            *layout,
                                                          int                     index,
                                                          PangoDirection          direction);
-GDK_AVAILABLE_IN_3_90
-void            gtk_snapshot_render_icon                (GtkSnapshot            *snapshot,
-                                                         GtkStyleContext        *context,
-                                                         GdkPixbuf              *pixbuf,
-                                                         gdouble                 x,
-                                                         gdouble                 y);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]