Commit 0f13732c authored by Cosimo Cecchi's avatar Cosimo Cecchi

all: switch to g_format_size()

Instead of the deprecated g_format_size_for_display()

https://bugzilla.gnome.org/show_bug.cgi?id=657989
parent 551199e6
......@@ -138,7 +138,7 @@ dnl ***************** LARGE FILE SUPPORT ***********************
AC_SYS_LARGEFILE
dnl ********** Required libraries **********************
GLIB_REQUIRED=2.28.0
GLIB_REQUIRED=2.29.14
GTHREAD_REQUIRED=2.6.0
GMODULE_REQUIRED=2.6.0
GMODULE_EXPORT_REQUIRED=2.6.0
......
......@@ -712,7 +712,7 @@ brasero_dest_selection_format_medium_string (BraseroMediumSelection *selection,
TRUE,
TRUE);
else
size_string = g_format_size_for_display (size_bytes - session_bytes);
size_string = g_format_size (size_bytes - session_bytes);
brasero_track_type_free (input);
......
......@@ -186,7 +186,7 @@ brasero_drive_properties_set_tmpdir_info (BraseroDriveProperties *self,
vol_size = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
g_object_unref (info);
string_size = g_format_size_for_display (vol_size);
string_size = g_format_size (vol_size);
/* Translators: the first %s is the path of the directory where brasero
* will store its temporary files; the second one is the size available */
string = g_strdup_printf (_("%s: %s free"), path, string_size);
......
......@@ -244,7 +244,7 @@ brasero_burn_progress_display_session_info (BraseroBurnProgress *obj,
gtk_widget_show_all (table);
}
text = g_format_size_for_display (written);
text = g_format_size (written);
markup = g_strconcat ("<i>", text, "</i>", NULL);
g_free (text);
......
......@@ -251,7 +251,7 @@ brasero_src_image_update (BraseroSrcImage *self)
/* Deal with size */
brasero_track_get_size (BRASERO_TRACK (priv->track), NULL, &bytes);
size_string = g_format_size_for_display (bytes);
size_string = g_format_size (bytes);
/* NOTE to translators, the first %s is the path of the image
* file and the second its size. */
......
......@@ -140,7 +140,7 @@ brasero_status_dialog_update (BraseroStatusDialog *self,
else if (brasero_track_type_get_medium_type (type) & BRASERO_MEDIUM_HAS_AUDIO)
size_str = brasero_units_get_time_string (session_bytes, TRUE, FALSE);
else
size_str = g_format_size_for_display (session_bytes);
size_str = g_format_size (session_bytes);
brasero_track_type_free (type);
......
......@@ -808,7 +808,7 @@ brasero_track_data_cfg_get_value (GtkTreeModel *model,
else {
gchar *text;
text = g_format_size_for_display (BRASERO_FILE_NODE_SECTORS (node) * 2048);
text = g_format_size (BRASERO_FILE_NODE_SECTORS (node) * 2048);
g_value_set_string (value, text);
g_free (text);
}
......
......@@ -167,7 +167,7 @@ brasero_medium_selection_get_medium_string (BraseroMediumSelection *self,
/* format the size */
if (media & BRASERO_MEDIUM_HAS_DATA) {
size_string = g_format_size_for_display (size);
size_string = g_format_size (size);
/* NOTE for translators: the first %s is the medium name, the
* second %s is the space (kio, gio) used by data on the disc.
*/
......
......@@ -250,7 +250,7 @@ brasero_project_manager_set_statusbar (BraseroProjectManager *manager,
|| manager->priv->type == BRASERO_PROJECT_TYPE_VIDEO)
size_string = brasero_units_get_time_string (files_size, TRUE, FALSE);
else if (manager->priv->type == BRASERO_PROJECT_TYPE_DATA)
size_string = g_format_size_for_display (files_size);
size_string = g_format_size (files_size);
else
return;
......@@ -272,7 +272,7 @@ brasero_project_manager_set_statusbar (BraseroProjectManager *manager,
size_string);
}
else if (manager->priv->type == BRASERO_PROJECT_TYPE_DATA) {
size_string = g_format_size_for_display (files_size);
size_string = g_format_size (files_size);
status_string = g_strdup_printf (ngettext ("%d file can be added (%s)", "%d selected files can be added (%s)", valid_num),
valid_num,
size_string);
......
......@@ -768,7 +768,7 @@ brasero_project_get_sectors_string (gint64 sectors,
}
else {
size_bytes = sectors * 2048LL;
return g_format_size_for_display (size_bytes);
return g_format_size (size_bytes);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment