summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eom-file-chooser.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eom-file-chooser.c b/src/eom-file-chooser.c
index c73d268..b1ee955 100644
--- a/src/eom-file-chooser.c
+++ b/src/eom-file-chooser.c
@@ -271,10 +271,18 @@ set_preview_pixbuf (EomFileChooser *chooser, GdkPixbuf *pixbuf, goffset size)
bytes_str = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::Size");
if (bytes_str != NULL) {
bytes = atoi (bytes_str);
+#if GLIB_CHECK_VERSION (2, 30, 0)
+ size_str = g_format_size (bytes);
+#else
size_str = g_format_size_for_display (bytes);
+#endif
}
else {
+#if GLIB_CHECK_VERSION (2, 30, 0)
+ size_str = g_format_size (size);
+#else
size_str = g_format_size_for_display (size);
+#endif
}
/* try to read image dimensions */