diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-22 16:28:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-22 16:28:45 +0100 |
| commit | 88137d90778dec51f18f3330fde0b83b5859bc4c (patch) | |
| tree | 7301cee27376008c7e5985160d0d55edc2eba61f /src | |
| parent | 45eb286ab51444352f2e0fef0fe1d5e5663c8c6c (diff) | |
Check for existance of g_format_size()
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtk/dvd_title_dialog.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gtk/dvd_title_dialog.cc b/src/gtk/dvd_title_dialog.cc index 60e4e5845..e9606d396 100644 --- a/src/gtk/dvd_title_dialog.cc +++ b/src/gtk/dvd_title_dialog.cc @@ -45,7 +45,11 @@ DVDTitleDialog::DVDTitleDialog () for (list<DVDTitle>::const_iterator i = t.begin(); i != t.end(); ++i) { Gtk::RadioButton* b = manage (new Gtk::RadioButton); stringstream s; +#if HAVE_G_FORMAT_SIZE s << "Title " << i->number << ": " << g_format_size (i->size); +#else + s << "Title " << i->number << ": " << g_format_size_for_display (i->size); +#endif b->set_label (s.str ()); if (i == t.begin ()) { b->set_active (); |
