summaryrefslogtreecommitdiff
path: root/src/eom-file-chooser.c
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2013-03-23 17:25:30 -0700
committerSteve Zesch <[email protected]>2013-03-23 17:25:30 -0700
commit2ceef175c289f4d9ae920fc50b9d12d031b768b3 (patch)
tree6ba0a62a0e3bfc455233f12de448be44dfe48b62 /src/eom-file-chooser.c
parenteb78dbb97f6e21fcc5afd3e3db5abe11f1e97d44 (diff)
parentd2ccf9aec7fd655e83de51167d36b68f9d0a8bb7 (diff)
downloadeom-2ceef175c289f4d9ae920fc50b9d12d031b768b3.tar.bz2
eom-2ceef175c289f4d9ae920fc50b9d12d031b768b3.tar.xz
Merge pull request #9 from eyelash/master
Replace some 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 */