[brasero/gnome-2-28] Fix #601109 - burning disks with burn:// doesn't set the disk label



commit af90327bee7f024082d504086916da6f4161c9d6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Tue Nov 10 10:29:01 2009 +0100

    Fix #601109 -  burning disks with burn:// doesn't set the disk label

 nautilus/nautilus-burn-extension.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/nautilus/nautilus-burn-extension.c b/nautilus/nautilus-burn-extension.c
index e66ed02..09e0a3e 100644
--- a/nautilus/nautilus-burn-extension.c
+++ b/nautilus/nautilus-burn-extension.c
@@ -195,6 +195,16 @@ nautilus_disc_burn_is_empty (GtkWindow *toplevel)
 }
 
 static void
+brasero_session_name_changed (BraseroProjectName *project_name,
+                              BraseroBurnSession *session)
+{
+	const gchar *label;
+
+	label = gtk_entry_get_text (GTK_ENTRY (project_name));
+	brasero_burn_session_set_label (session, label);
+}
+
+static void
 write_activate (GtkWindow *toplevel)
 {
 	BraseroTrackDataCfg	*track;
@@ -219,6 +229,10 @@ write_activate (GtkWindow *toplevel)
 	name_options = brasero_project_name_new (NULL);
 	brasero_project_name_set_session (BRASERO_PROJECT_NAME (name_options),
 					  BRASERO_BURN_SESSION (session));
+	g_signal_connect (name_options,
+	                  "name-changed",
+	                  G_CALLBACK (brasero_session_name_changed),
+	                  session);
 
 	string = g_strdup_printf ("<b>%s</b>", _("Disc name"));
 	options = brasero_utils_pack_properties (string,



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