diff options
Diffstat (limited to 'tests/test-common.c')
-rw-r--r-- | tests/test-common.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-common.c b/tests/test-common.c index 2f4f3a411..8ce15dd08 100644 --- a/tests/test-common.c +++ b/tests/test-common.c @@ -85,7 +85,7 @@ make_rg (int width, int height) } gboolean -format_supported (const gchar *filename) +find_format (const gchar *filename, gchar **found_format) { GSList *formats, *l; gboolean retval; @@ -102,6 +102,8 @@ format_supported (const gchar *filename) { if (g_str_has_suffix (filename, extensions[i])) { + if (found_format != NULL) + *found_format = gdk_pixbuf_format_get_name (format); retval = TRUE; break; } @@ -117,6 +119,12 @@ format_supported (const gchar *filename) } gboolean +format_supported (const gchar *filename) +{ + return find_format(filename, NULL); +} + +gboolean file_supported (GFile *file) { char *uri; |