forked from AuroraMiddleware/gtk
Drop gtk_css_image_surface_new_for_pixbuf
It is unused private api.
This commit is contained in:
parent
8cdaaffd42
commit
2ac0df0b75
@ -112,19 +112,3 @@ gtk_css_image_surface_new (GdkTexture *texture)
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
GtkCssImage *
|
||||
gtk_css_image_surface_new_for_pixbuf (GdkPixbuf *pixbuf)
|
||||
{
|
||||
GtkCssImage *image;
|
||||
GdkTexture *texture;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
|
||||
|
||||
texture = gdk_texture_new_for_pixbuf (pixbuf);
|
||||
image = gtk_css_image_surface_new (texture);
|
||||
g_object_unref (texture);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,6 @@ struct _GtkCssImageSurfaceClass
|
||||
GType _gtk_css_image_surface_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GtkCssImage * gtk_css_image_surface_new (GdkTexture *texture);
|
||||
GtkCssImage * gtk_css_image_surface_new_for_pixbuf (GdkPixbuf *pixbuf);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user