icon-theme: Use GtkSnapshot, not GdkSnapshot
authorAlexander Larsson <alexl@redhat.com>
Thu, 30 Jan 2020 07:55:44 +0000 (08:55 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Jan 2020 09:53:43 +0000 (10:53 +0100)
gtk/gtkicontheme.c
gtk/gtkicontheme.h

index 4f8bf9cfd79d619b614bc299eb0d8b92e4aec7ad..070fb84aa123a50a071dda9ff158163379e9cf95 100644 (file)
@@ -3995,7 +3995,7 @@ gtk_icon_download_colored_texture (GtkIcon *self,
 
 static void
 icon_paintable_snapshot (GdkPaintable *paintable,
-                         GdkSnapshot  *snapshot,
+                         GtkSnapshot  *snapshot,
                          double        width,
                          double        height)
 {
@@ -4023,7 +4023,7 @@ icon_paintable_snapshot (GdkPaintable *paintable,
 
 void
 gtk_icon_snapshot_with_colors (GtkIcon *icon,
-                               GdkSnapshot  *snapshot,
+                               GtkSnapshot  *snapshot,
                                double        width,
                                double        height,
                                const GdkRGBA *foreground_color,
index c40f0867d06ad760712002370c8d24f8c734c34f..45ca6093633077165c1a814a4075e51d3d25f1d7 100644 (file)
@@ -38,7 +38,7 @@ G_BEGIN_DECLS
 #define GTK_IS_ICON_THEME(obj)     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME))
 
 typedef struct _GtkIcon         GtkIcon;
-typedef struct _GtkIconTheme        GtkIconTheme;
+typedef struct _GtkIconTheme    GtkIconTheme;
 
 /**
  * GtkIconLookupFlags:
@@ -205,8 +205,8 @@ GdkTexture *         gtk_icon_download_colored_texture (GtkIcon *self,
                                                         const GdkRGBA *error_color,
                                                         GError **error);
 GDK_AVAILABLE_IN_ALL
-void                  gtk_icon_snapshot_with_colors (GtkIcon *icon_info,
-                                                     GdkSnapshot  *snapshot,
+void                  gtk_icon_snapshot_with_colors (GtkIcon      *icon,
+                                                     GtkSnapshot  *snapshot,
                                                      double        width,
                                                      double        height,
                                                      const GdkRGBA *foreground_color,