[brasero] Added video options to video project when output is an image
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Added video options to video project when output is an image
- Date: Sat, 15 Aug 2009 13:39:22 +0000 (UTC)
commit caaa6641401fe7a534a35638a3641d52aa2b92ed
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Aug 15 15:35:18 2009 +0200
Added video options to video project when output is an image
libbrasero-burn/brasero-image-properties.c | 11 ++++++++---
src/brasero-project.c | 21 ++++++++++++++++++++-
2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/libbrasero-burn/brasero-image-properties.c b/libbrasero-burn/brasero-image-properties.c
index 18cece3..f88757c 100644
--- a/libbrasero-burn/brasero-image-properties.c
+++ b/libbrasero-burn/brasero-image-properties.c
@@ -187,10 +187,13 @@ brasero_image_properties_set_formats (BraseroImageProperties *self,
if (!priv->format_box) {
GtkWidget *box;
GtkWidget *label;
+ GtkWidget *dialog_box;
box = gtk_hbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (box), 4);
- gtk_box_pack_end (GTK_BOX (GTK_DIALOG (self)->vbox),
+
+ dialog_box = gtk_dialog_get_content_area (GTK_DIALOG (self));
+ gtk_box_pack_start (GTK_BOX (dialog_box),
box,
FALSE,
FALSE,
@@ -469,13 +472,15 @@ static void
brasero_image_properties_init (BraseroImageProperties *object)
{
BraseroImagePropertiesPrivate *priv;
+ GtkWidget *box;
priv = BRASERO_IMAGE_PROPERTIES_PRIVATE (object);
gtk_window_set_title (GTK_WINDOW (object), _("Location for Image File"));
gtk_dialog_set_has_separator (GTK_DIALOG (object), FALSE);
- gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (object)->vbox), 12);
- gtk_container_set_border_width (GTK_CONTAINER (GTK_BOX (GTK_DIALOG (object)->vbox)), 10);
+
+ box = gtk_dialog_get_content_area (GTK_DIALOG (object));
+ gtk_container_set_border_width (GTK_CONTAINER (box), 10);
g_signal_connect (object,
"response",
diff --git a/src/brasero-project.c b/src/brasero-project.c
index 1b1495e..892f954 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -1423,6 +1423,7 @@ brasero_project_drive_properties (BraseroProject *project)
static gboolean
brasero_project_image_properties (BraseroProject *project)
{
+ BraseroTrackType *track_type;
GtkResponseType answer;
GtkWidget *button;
GtkWidget *dialog;
@@ -1451,8 +1452,26 @@ brasero_project_image_properties (BraseroProject *project)
brasero_image_properties_set_session (BRASERO_IMAGE_PROPERTIES (dialog), project->priv->session);
+ track_type = brasero_track_type_new ();
+
+ brasero_burn_session_get_input_type (BRASERO_BURN_SESSION (project->priv->session), track_type);
+ if (brasero_track_type_get_has_stream (track_type)
+ && BRASERO_STREAM_FORMAT_HAS_VIDEO (brasero_track_type_get_stream_format (track_type))) {
+ GtkWidget *box;
+ GtkWidget *options;
+
+ /* Special case for video project */
+ options = brasero_video_options_new (BRASERO_BURN_SESSION (project->priv->session));
+ gtk_widget_show (options);
+
+ box = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+ gtk_box_pack_end (GTK_BOX (box), options, FALSE, TRUE, 0);
+ }
+
+ brasero_track_type_free (track_type);
+
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
- gtk_widget_show_all (dialog);
+ gtk_widget_show (dialog);
/* launch the dialog */
answer = gtk_dialog_run (GTK_DIALOG (dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]