[brasero] Fix appearance of video options in some cases in the burn options dialog
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix appearance of video options in some cases in the burn options dialog
- Date: Sat, 15 Aug 2009 13:38:57 +0000 (UTC)
commit e5c4f314b4313d646813e79747a95d581ad067bc
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Aug 15 14:15:33 2009 +0200
Fix appearance of video options in some cases in the burn options dialog
Also restore a proper presentation
libbrasero-burn/brasero-burn-options.c | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn-options.c b/libbrasero-burn/brasero-burn-options.c
index 6186027..b726bd8 100644
--- a/libbrasero-burn/brasero-burn-options.c
+++ b/libbrasero-burn/brasero-burn-options.c
@@ -664,6 +664,7 @@ brasero_burn_options_setup_audio (BraseroBurnOptions *self)
static void
brasero_burn_options_setup_video (BraseroBurnOptions *self)
{
+ gchar *title;
GtkWidget *options;
BraseroBurnOptionsPrivate *priv;
@@ -683,6 +684,14 @@ brasero_burn_options_setup_video (BraseroBurnOptions *self)
/* create the options box */
options = brasero_video_options_new (BRASERO_BURN_SESSION (priv->session));
gtk_widget_show (options);
+
+ title = g_strdup_printf ("<b>%s</b>", _("Video Options"));
+ options = brasero_utils_pack_properties (title,
+ options,
+ NULL);
+ g_free (title);
+
+ gtk_widget_show (options);
brasero_burn_options_add_options (self, options);
}
@@ -889,7 +898,7 @@ brasero_burn_options_setup (BraseroBurnOptions *self)
brasero_burn_options_setup_data (self);
}
else if (brasero_track_type_get_has_stream (type)) {
- if (brasero_track_type_get_stream_format (type) & (BRASERO_VIDEO_FORMAT_UNDEFINED|BRASERO_VIDEO_FORMAT_VCD|BRASERO_VIDEO_FORMAT_VIDEO_DVD)) {
+ if (BRASERO_STREAM_FORMAT_HAS_VIDEO (brasero_track_type_get_stream_format (type))) {
if (!priv->has_video)
brasero_burn_options_setup_video (self);
}
@@ -917,6 +926,14 @@ brasero_burn_options_track_removed (BraseroBurnSession *session,
}
static void
+brasero_burn_options_track_changed (BraseroBurnSession *session,
+ BraseroTrack *track,
+ BraseroBurnOptions *dialog)
+{
+ brasero_burn_options_setup (dialog);
+}
+
+static void
brasero_burn_options_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -943,6 +960,10 @@ brasero_burn_options_set_property (GObject *object,
"track-removed",
G_CALLBACK (brasero_burn_options_track_removed),
object);
+ g_signal_connect (priv->session,
+ "track-changed",
+ G_CALLBACK (brasero_burn_options_track_changed),
+ object);
brasero_burn_options_build_contents (BRASERO_BURN_OPTIONS (object));
brasero_burn_options_setup (BRASERO_BURN_OPTIONS (object));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]