diff options
author | Elias Aebi <[email protected]> | 2013-02-04 12:07:56 +0100 |
---|---|---|
committer | Elias Aebi <[email protected]> | 2013-02-04 12:07:56 +0100 |
commit | e90872de53b9026e1d372a833d9778dddc53fdbf (patch) | |
tree | 9dabbf5d86cfcfcc2ecbe722d373cdeec07269c3 | |
parent | d9088cc4f3e2f7f6b77033b813c559bb6cf3f04f (diff) | |
download | eom-e90872de53b9026e1d372a833d9778dddc53fdbf.tar.bz2 eom-e90872de53b9026e1d372a833d9778dddc53fdbf.tar.xz |
fix some more deprecated code
-rw-r--r-- | src/eom-file-chooser.c | 8 |
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 */ |