[recipes] Add an api to get the cached path to an image
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Add an api to get the cached path to an image
- Date: Tue, 11 Apr 2017 03:50:08 +0000 (UTC)
commit 4ff0d024319ee4cb8fa143012221382de1860d2f
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 10 23:46:25 2017 -0400
Add an api to get the cached path to an image
This will be needed in the exporter code.
src/gr-image.c | 6 ++++++
src/gr-image.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-image.c b/src/gr-image.c
index ba759c6..5ef9caf 100644
--- a/src/gr-image.c
+++ b/src/gr-image.c
@@ -192,6 +192,12 @@ get_image_cache_path (GrImage *ri)
return filename;
}
+char *
+gr_image_get_cache_path (GrImage *image)
+{
+ return get_image_cache_path (image);
+}
+
static char *
get_thumbnail_cache_path (GrImage *ri)
{
diff --git a/src/gr-image.h b/src/gr-image.h
index 23fdb00..222d25b 100644
--- a/src/gr-image.h
+++ b/src/gr-image.h
@@ -37,6 +37,7 @@ void gr_image_set_id (GrImage *image,
void gr_image_set_path (GrImage *image,
const char *path);
const char *gr_image_get_path (GrImage *image);
+char *gr_image_get_cache_path (GrImage *image);
GdkPixbuf *gr_image_load_sync (GrImage *image,
int width,
int height,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]