diff options
author | nirav <nirav@teisuu.com> | 2018-09-08 01:28:21 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2018-09-08 01:30:09 +0530 |
commit | 661756c9237a26562cae102f53b12aa0b403fde1 (patch) | |
tree | e674391fb8aa39efef9822ddaa94653c4abf9b9f /image.c | |
parent | b4a6aa115dfd2bbef29af2439661999f8b827fba (diff) | |
download | im-661756c9237a26562cae102f53b12aa0b403fde1.tar.gz im-661756c9237a26562cae102f53b12aa0b403fde1.zip |
Added dynamic file type checking
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -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); - } -} |