[brasero] 2009-05-06 Philippe Rouquier <bonfire-app wanadoo fr>



commit 4011231fbc32f6b62ff7857cb40afd36dfc575a6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Wed May 6 13:55:52 2009 +0200

    2009-05-06  Philippe Rouquier  <bonfire-app wanadoo fr>
    
    	Remove burn-debug.h header and some debug statements when they were not
    	needed in brasero
    
    	* libbrasero-burn/brasero-sum-dialog.c:
    	* src/brasero-app.c:
    	* src/brasero-audio-disc.c (brasero_audio_disc_add_ui):
    	* src/brasero-data-disc.c (brasero_data_disc_add_ui):
    	* src/brasero-eject-dialog.c (brasero_eject_dialog_activate):
    	* src/brasero-layout.c (brasero_layout_set_side_pane_visible),
    	(brasero_layout_combo_changed_cb):
    	* src/brasero-player.c (brasero_player_range_value_changed):
    	* src/brasero-project.c:
    	* src/brasero-video-disc.c (brasero_video_disc_add_ui):
---
 ChangeLog                            |   16 ++++++++++++++++
 libbrasero-burn/brasero-sum-dialog.c |    1 -
 src/brasero-app.c                    |    2 --
 src/brasero-audio-disc.c             |    2 --
 src/brasero-data-disc.c              |    2 --
 src/brasero-eject-dialog.c           |    7 +------
 src/brasero-layout.c                 |    3 ---
 src/brasero-player.c                 |    5 +----
 src/brasero-project.c                |    2 +-
 src/brasero-video-disc.c             |    2 --
 10 files changed, 19 insertions(+), 23 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 76b9bf7..7238857 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
 2009-05-06  Philippe Rouquier  <bonfire-app wanadoo fr>
 
+	Remove burn-debug.h header and some debug statements when they were not
+	needed in brasero
+
+	* libbrasero-burn/brasero-sum-dialog.c:
+	* src/brasero-app.c:
+	* src/brasero-audio-disc.c (brasero_audio_disc_add_ui):
+	* src/brasero-data-disc.c (brasero_data_disc_add_ui):
+	* src/brasero-eject-dialog.c (brasero_eject_dialog_activate):
+	* src/brasero-layout.c (brasero_layout_set_side_pane_visible),
+	(brasero_layout_combo_changed_cb):
+	* src/brasero-player.c (brasero_player_range_value_changed):
+	* src/brasero-project.c:
+	* src/brasero-video-disc.c (brasero_video_disc_add_ui):
+
+2009-05-06  Philippe Rouquier  <bonfire-app wanadoo fr>
+
 	Implemented brasero_burn_library_get_option_group () and use it in brasero
 
 	* libbrasero-burn/burn-debug.c
diff --git a/libbrasero-burn/brasero-sum-dialog.c b/libbrasero-burn/brasero-sum-dialog.c
index 138e277..23cd3ab 100644
--- a/libbrasero-burn/brasero-sum-dialog.c
+++ b/libbrasero-burn/brasero-sum-dialog.c
@@ -57,7 +57,6 @@
 #include "brasero-volume.h"
 
 #include "burn-basics.h"
-#include "burn-debug.h"
 
 #include "brasero-tags.h"
 #include "brasero-track-disc.h"
diff --git a/src/brasero-app.c b/src/brasero-app.c
index 3b6449f..a496996 100644
--- a/src/brasero-app.c
+++ b/src/brasero-app.c
@@ -46,8 +46,6 @@
 
 #include "brasero-drive.h"
 
-#include "burn-debug.h"
-
 #include "brasero-tags.h"
 #include "brasero-burn.h"
 #include "brasero-track-disc.h"
diff --git a/src/brasero-audio-disc.c b/src/brasero-audio-disc.c
index 8522000..be34038 100644
--- a/src/brasero-audio-disc.c
+++ b/src/brasero-audio-disc.c
@@ -41,7 +41,6 @@
 
 #include "brasero-misc.h"
 #include "burn-basics.h"
-#include "burn-debug.h"
 #include "brasero-app.h"
 #include "brasero-disc.h"
 #include "brasero-audio-disc.h"
@@ -515,7 +514,6 @@ brasero_audio_disc_add_ui (BraseroDisc *disc,
 						      -1,
 						      &error);
 	if (!merge_id) {
-		BRASERO_BURN_LOG ("Adding ui elements failed: %s", error->message);
 		g_error_free (error);
 		return 0;
 	}
diff --git a/src/brasero-data-disc.c b/src/brasero-data-disc.c
index db274b6..06059b3 100644
--- a/src/brasero-data-disc.c
+++ b/src/brasero-data-disc.c
@@ -50,7 +50,6 @@
 #include "brasero-app.h"
 #include "brasero-project-manager.h"
 
-#include "burn-debug.h"
 #include "burn-basics.h"
 
 #include "brasero-tags.h"
@@ -1552,7 +1551,6 @@ brasero_data_disc_add_ui (BraseroDisc *disc,
 							      -1,
 							      &error);
 		if (!merge_id) {
-			BRASERO_BURN_LOG ("Adding ui elements failed: %s", error->message);
 			g_error_free (error);
 			return 0;
 		}
diff --git a/src/brasero-eject-dialog.c b/src/brasero-eject-dialog.c
index 2139c07..2ccce7b 100644
--- a/src/brasero-eject-dialog.c
+++ b/src/brasero-eject-dialog.c
@@ -40,7 +40,6 @@
 #include "brasero-medium.h"
 #include "brasero-drive.h"
 #include "brasero-volume.h"
-#include "burn-debug.h"
 #include "brasero-utils.h"
 #include "brasero-burn.h"
 
@@ -73,8 +72,6 @@ brasero_eject_dialog_activate (BraseroToolDialog *dialog,
 	 * command. The problem is brasero may need to be privileged then as
 	 * cdrecord/cdrdao seem to be. */
 	drive = brasero_medium_get_drive (medium);
-	BRASERO_BURN_LOG ("Asynchronous ejection of %s", brasero_drive_get_device (drive));
-
 	brasero_drive_unlock (drive);
 
 	/*if (brasero_volume_is_mounted (BRASERO_VOLUME (medium))
@@ -83,10 +80,8 @@ brasero_eject_dialog_activate (BraseroToolDialog *dialog,
 		return TRUE;
 	}*/
 
-	if (!brasero_drive_eject (drive, TRUE, &error)) {
-		BRASERO_BURN_LOG ("Error ejecting medium: %s", error?error->message:"Unknown error");
+	if (!brasero_drive_eject (drive, TRUE, &error))
 		return TRUE;
-	}
 
 	/* we'd need also to check what are the results of our operations namely
 	 * if we succeded to eject. To do that, the problem is the same as above
diff --git a/src/brasero-layout.c b/src/brasero-layout.c
index 0a441a4..8f85e1a 100644
--- a/src/brasero-layout.c
+++ b/src/brasero-layout.c
@@ -37,7 +37,6 @@
 
 #include <gconf/gconf-client.h>
 
-#include "burn-debug.h"
 #include "brasero-layout.h"
 #include "brasero-preview.h"
 #include "brasero-project.h"
@@ -498,7 +497,6 @@ brasero_layout_set_side_pane_visible (BraseroLayout *layout,
 		/* Now tell the project which source it gets URIs from */
 		source = brasero_layout_item_get_object (layout->priv->active_item);
 		if (!BRASERO_IS_URI_CONTAINER (source)) {
-			BRASERO_BURN_LOG ("Item is not an URI container");
 			brasero_project_set_source (BRASERO_PROJECT (layout->priv->project),
 						    NULL);
 		}
@@ -791,7 +789,6 @@ brasero_layout_combo_changed_cb (GtkComboBox *combo,
 	brasero_layout_object_set_context (source, layout->priv->ctx_type);
 
 	if (!BRASERO_IS_URI_CONTAINER (source)) {
-		BRASERO_BURN_LOG ("Item is not an URI container");
 		brasero_project_set_source (BRASERO_PROJECT (layout->priv->project), NULL);
 	}
 	else if (!is_visible) {
diff --git a/src/brasero-player.c b/src/brasero-player.c
index 199144d..c5ac485 100644
--- a/src/brasero-player.c
+++ b/src/brasero-player.c
@@ -39,8 +39,6 @@
 
 #include "brasero-misc.h"
 
-#include "burn-debug.h"
-
 #include "brasero-player.h"
 #include "brasero-player-bacon.h"
 #include "brasero-utils.h"
@@ -285,8 +283,7 @@ brasero_player_range_value_changed (GtkRange *range,
 
 		/* user changed the value tell the player/pipeline */
 		pos = gtk_range_get_value (GTK_RANGE (player->priv->progress));
-		if(!brasero_player_bacon_set_pos (BRASERO_PLAYER_BACON (player->priv->bacon), (gint64) pos + player->priv->start))
-			BRASERO_BURN_LOG ("position in stream cannot be set");
+		brasero_player_bacon_set_pos (BRASERO_PLAYER_BACON (player->priv->bacon), (gint64) pos + player->priv->start);
 	}
 
 	brasero_player_update_position (player);
diff --git a/src/brasero-project.c b/src/brasero-project.c
index 5601d89..8512741 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -55,7 +55,6 @@
 #include "brasero-misc.h"
 #include "brasero-jacket-edit.h"
 
-#include "burn-debug.h"
 #include "brasero-tags.h"
 #include "brasero-session.h"
 
@@ -63,6 +62,7 @@
 #include "brasero-player.h"
 #endif
 
+#include "brasero-track-data.h"
 #include "brasero-session-cfg.h"
 #include "brasero-burn-options.h"
 #include "brasero-cover.h"
diff --git a/src/brasero-video-disc.c b/src/brasero-video-disc.c
index cf48fba..d675475 100644
--- a/src/brasero-video-disc.c
+++ b/src/brasero-video-disc.c
@@ -35,7 +35,6 @@
 #include "brasero-tags.h"
 
 #include "brasero-misc.h"
-#include "burn-debug.h"
 #include "brasero-app.h"
 #include "brasero-disc.h"
 #include "brasero-io.h"
@@ -950,7 +949,6 @@ brasero_video_disc_add_ui (BraseroDisc *disc,
 						      -1,
 						      &error);
 	if (!merge_id) {
-		BRASERO_BURN_LOG ("Adding ui elements failed: %s", error->message);
 		g_error_free (error);
 		return 0;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]