[brasero] Make sure that the size of a data project is not displayed in hh:mm:ss format after burning it
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Make sure that the size of a data project is not displayed in hh:mm:ss format after burning it
- Date: Sun, 26 Jul 2009 12:20:44 +0000 (UTC)
commit 488ca7b93fd5b5e0ea62d8e6fe25828cb2f3914d
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Jul 25 14:33:35 2009 +0200
Make sure that the size of a data project is not displayed in hh:mm:ss format after burning it
src/brasero-project.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/brasero-project.c b/src/brasero-project.c
index a9ac9e2..6f324d0 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -790,6 +790,7 @@ brasero_project_get_sectors_string (gint64 sectors,
static void
brasero_project_update_project_size (BraseroProject *project)
{
+ BraseroTrackType *session_type;
goffset sectors = 0;
GtkWidget *status;
gchar *size_str;
@@ -807,9 +808,13 @@ brasero_project_update_project_size (BraseroProject *project)
§ors,
NULL);
- string = brasero_project_get_sectors_string (sectors, !BRASERO_IS_DATA_DISC (project->priv->current));
- size_str = g_strdup_printf (_("Project estimated size: %s"), string);
+ session_type = brasero_track_type_new ();
+ brasero_burn_session_get_input_type (BRASERO_BURN_SESSION (project->priv->session), session_type);
+ string = brasero_project_get_sectors_string (sectors, !brasero_track_type_get_has_data (session_type));
+ brasero_track_type_free (session_type);
+
+ size_str = g_strdup_printf (_("Project estimated size: %s"), string);
g_free (string);
gtk_statusbar_push (GTK_STATUSBAR (status), project->priv->status_ctx, size_str);
@@ -1499,8 +1504,7 @@ brasero_project_reset (BraseroProject *project)
if (project->priv->project_status) {
gtk_widget_hide (project->priv->project_status);
- gtk_dialog_response (GTK_DIALOG (project->priv->project_status),
- GTK_RESPONSE_CANCEL);
+ gtk_dialog_response (GTK_DIALOG (project->priv->project_status), GTK_RESPONSE_CANCEL);
project->priv->project_status = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]