summaryrefslogtreecommitdiff
path: root/src/eom-file-chooser.c
diff options
context:
space:
mode:
authorElias Aebi <[email protected]>2013-02-04 12:07:56 +0100
committerElias Aebi <[email protected]>2013-02-04 12:07:56 +0100
commite90872de53b9026e1d372a833d9778dddc53fdbf (patch)
tree9dabbf5d86cfcfcc2ecbe722d373cdeec07269c3 /src/eom-file-chooser.c
parentd9088cc4f3e2f7f6b77033b813c559bb6cf3f04f (diff)
downloadeom-e90872de53b9026e1d372a833d9778dddc53fdbf.tar.bz2
eom-e90872de53b9026e1d372a833d9778dddc53fdbf.tar.xz
fix some more deprecated code
Diffstat (limited to 'src/eom-file-chooser.c')
-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 */