~dobey/libubuntuone/fix-crits

« back to all changes in this revision

Viewing changes to libubuntuone/u1-codec-installer.c

  • Committer: Martin Pitt
  • Date: 2011-12-20 09:12:56 UTC
  • mto: This revision was merged to the branch mainline in revision 144.
  • Revision ID: martin.pitt@canonical.com-20111220091256-cak2f31x6oins4rr
provide backwards compatibility shim for glib < 2.30

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        "unless the seller has received a license by Fraunhofer IIS " \
40
40
        "and Thomson and paid the relevant royalties to them."
41
41
 
 
42
/* glib < 2.30 still uses the deprecated g_format_size_for_display(), provide
 
43
 * compatibility shim */
 
44
#if (!GLIB_CHECK_VERSION(2, 30, 0))
 
45
    #define g_format_size g_format_size_for_display
 
46
#endif
 
47
 
42
48
G_DEFINE_TYPE (U1CodecInstaller, u1_codec_installer, G_TYPE_OBJECT)
43
49
 
44
50
struct _U1CodecInstallerPrivate {