From 661756c9237a26562cae102f53b12aa0b403fde1 Mon Sep 17 00:00:00 2001 From: nirav Date: Sat, 8 Sep 2018 01:28:21 +0530 Subject: Added dynamic file type checking --- image.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index 1e8874b..d4765fd 100644 --- a/image.c +++ b/image.c @@ -95,25 +95,3 @@ void zoom(int type) update_pixbuf(); } - -void print_supported_formats() -{ - GSList *list, *it; - GdkPixbufFormat *format; - gchar **extensions; - gchar *ex; - - list = gdk_pixbuf_get_formats(); - if (list != NULL) { - for (it = list; it->next != NULL; it = it->next) { - format = (GdkPixbufFormat *)it->data; - printf("%s:", gdk_pixbuf_format_get_description(format)); - extensions = gdk_pixbuf_format_get_extensions(format); - for (ex = *extensions; *ex; ex++) { - printf(" %s", ex); - } - printf("\n"); - } - g_slist_free(list); - } -} -- cgit v1.2.3