* load the image at its original size times the
* given scale.
*/
-GdkPixbuf *
+static GdkPixbuf *
_gdk_pixbuf_new_from_stream_scaled (GInputStream *stream,
double scale,
GCancellable *cancellable,
return _gdk_pixbuf_new_from_stream_scaled (stream, 0, cancellable, error);
}
-/* Like gdk_pixbuf_new_from_resource_at_scale, but
- * load the image at its original size times the
- * given scale.
- */
-GdkPixbuf *
-_gdk_pixbuf_new_from_resource_scaled (const char *resource_path,
- double scale,
- GError **error)
-{
- GInputStream *stream;
- GdkPixbuf *pixbuf;
-
- stream = g_resources_open_stream (resource_path, 0, error);
- if (stream == NULL)
- return NULL;
-
- pixbuf = _gdk_pixbuf_new_from_stream_scaled (stream, scale, NULL, error);
- g_object_unref (stream);
-
- return pixbuf;
-}
-
-GdkPixbuf *
-_gdk_pixbuf_new_from_resource (const char *resource_path,
- GError **error)
-{
- return _gdk_pixbuf_new_from_resource_scaled (resource_path, 0, error);
-}
-
GdkPixbuf *
_gdk_pixbuf_new_from_resource_at_scale (const char *resource_path,
int width,
return pixbuf;
}
-GdkPixbuf *
+static GdkPixbuf *
gtk_make_symbolic_pixbuf_from_file (GFile *file,
int width,
int height,
height * loader_data->scale_factor);
}
-GdkPaintable *
+static GdkPaintable *
gdk_paintable_new_from_bytes_scaled (GBytes *bytes,
int scale_factor)
{
gboolean aspect,
GCancellable *cancellable,
GError **error);
-GdkPixbuf *_gdk_pixbuf_new_from_stream_scaled (GInputStream *stream,
- double scale,
- GCancellable *cancellable,
- GError **error);
-GdkPixbuf *_gdk_pixbuf_new_from_resource (const char *resource_path,
- GError **error);
GdkPixbuf *_gdk_pixbuf_new_from_resource_at_scale (const char *resource_path,
int width,
int height,
gboolean preserve_aspect,
GError **error);
-GdkPixbuf *_gdk_pixbuf_new_from_resource_scaled (const char *resource_path,
- double scale,
- GError **error);
-
GdkPixbuf *gtk_make_symbolic_pixbuf_from_data (const char *data,
gsize len,
int width,
double scale,
const char *debug_output_to,
GError **error);
-GdkPixbuf *gtk_make_symbolic_pixbuf_from_file (GFile *file,
- int width,
- int height,
- double scale,
- GError **error);
GdkPixbuf *gtk_make_symbolic_pixbuf_from_path (const char *path,
int width,
int height,
int height,
double scale,
GError **error);
-
-GdkPaintable *gdk_paintable_new_from_bytes_scaled (GBytes *bytes,
- int scale_factor);
GdkPaintable *gdk_paintable_new_from_path_scaled (const char *path,
int scale_factor);
GdkPaintable *gdk_paintable_new_from_resource_scaled (const char *path,