aboutsummaryrefslogtreecommitdiff
path: root/image.c
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2018-09-08 01:28:21 +0530
committerDandelion <nirav@teisuu.com>2018-09-08 01:30:09 +0530
commit661756c9237a26562cae102f53b12aa0b403fde1 (patch)
treee674391fb8aa39efef9822ddaa94653c4abf9b9f /image.c
parentb4a6aa115dfd2bbef29af2439661999f8b827fba (diff)
downloadim-661756c9237a26562cae102f53b12aa0b403fde1.tar.gz
im-661756c9237a26562cae102f53b12aa0b403fde1.zip
Added dynamic file type checking
Diffstat (limited to 'image.c')
-rw-r--r--image.c22
1 files changed, 0 insertions, 22 deletions
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);
- }
-}