summaryrefslogtreecommitdiff
path: root/src/eom-thumb-view.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-thumb-view.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-thumb-view.c')
-rw-r--r--src/eom-thumb-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eom-thumb-view.c b/src/eom-thumb-view.c
index 3375332..9c1a30e 100644
--- a/src/eom-thumb-view.c
+++ b/src/eom-thumb-view.c
@@ -345,7 +345,11 @@ thumbview_get_tooltip_string (EomImage *image)
ExifData *exif_data;
#endif
+#if GLIB_CHECK_VERSION (2, 30, 0)
+ bytes = g_format_size (eom_image_get_bytes (image));
+#else
bytes = g_format_size_for_display (eom_image_get_bytes (image));
+#endif
eom_image_get_size (image, &width, &height);