[brasero] Show all image types when burning an image (not just the ones we can support according to the availa



commit 9d4cd8d0ae36ead70f4007208703ecd743634488
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon Oct 26 16:34:42 2009 +0100

    Show all image types when burning an image (not just the ones we can support according to the available plugins)

 libbrasero-burn/brasero-src-image.c |   29 ++++++-----------------------
 1 files changed, 6 insertions(+), 23 deletions(-)
---
diff --git a/libbrasero-burn/brasero-src-image.c b/libbrasero-burn/brasero-src-image.c
index f3bae49..d066f4e 100644
--- a/libbrasero-burn/brasero-src-image.c
+++ b/libbrasero-burn/brasero-src-image.c
@@ -343,35 +343,18 @@ brasero_src_image_changed (BraseroSrcImage *dialog)
 static void
 brasero_src_image_set_formats (BraseroSrcImage *dialog)
 {
-	BraseroTrackType *input = NULL;
 	BraseroSrcImagePrivate *priv;
 	BraseroImageFormat formats;
 	BraseroImageFormat format;
 
 	priv = BRASERO_SRC_IMAGE_PRIVATE (dialog);
 
-	if (!priv->format)
-		return;
-
-	/* get the available image types */
-	input = brasero_track_type_new ();
-	brasero_track_type_set_has_image (input);
-	formats = BRASERO_IMAGE_FORMAT_NONE;
-	format = BRASERO_IMAGE_FORMAT_CDRDAO;
-
-	for (; format != BRASERO_IMAGE_FORMAT_NONE; format >>= 1) {
-		BraseroBurnResult result;
-
-		brasero_track_type_set_image_format (input, format);
-		result = brasero_burn_session_input_supported (priv->session,
-							       input,
-							       FALSE);
-		if (result == BRASERO_BURN_OK)
-			formats |= format;
-	}
-
-	brasero_track_type_free (input);
-
+	/* Show all formats here even if we miss a
+	 * plugin to burn or use it */
+	formats = BRASERO_IMAGE_FORMAT_BIN|
+			 BRASERO_IMAGE_FORMAT_CUE|
+			 BRASERO_IMAGE_FORMAT_CDRDAO|
+			 BRASERO_IMAGE_FORMAT_CLONE;
 	brasero_image_type_chooser_set_formats (BRASERO_IMAGE_TYPE_CHOOSER (priv->format), formats,  TRUE, FALSE);
 
 	format = brasero_track_image_cfg_get_forced_format (priv->track);



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