[brasero] Make the icon selection appear in the GtkEntry with nautilus extension



commit 4469af3e0a6a0fa45845a313ca0f9278980f51f0
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Wed Jun 24 11:22:52 2009 +0200

    Make the icon selection appear in the GtkEntry with nautilus extension

 nautilus/nautilus-burn-extension.c |    5 ++++-
 src/brasero-project-name.c         |    3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/nautilus/nautilus-burn-extension.c b/nautilus/nautilus-burn-extension.c
index 985589f..d47a464 100644
--- a/nautilus/nautilus-burn-extension.c
+++ b/nautilus/nautilus-burn-extension.c
@@ -222,7 +222,10 @@ write_activate (GtkWindow *toplevel)
 	gtk_widget_show (box);
 
 	/* add name widget here to set the label of the volume */
-	name_options = brasero_project_name_new (BRASERO_BURN_SESSION (session));
+	name_options = brasero_project_name_new (NULL);
+	brasero_project_name_set_session (BRASERO_PROJECT_NAME (name_options),
+					  BRASERO_BURN_SESSION (session));
+
 	string = g_strdup_printf ("<b>%s</b>", _("Disc name"));
 	options = brasero_utils_pack_properties (string,
 						 name_options,
diff --git a/src/brasero-project-name.c b/src/brasero-project-name.c
index 82e1baf..c05ac91 100644
--- a/src/brasero-project-name.c
+++ b/src/brasero-project-name.c
@@ -596,7 +596,6 @@ brasero_project_name_set_session (BraseroProjectName *project,
 	priv = BRASERO_PROJECT_NAME_PRIVATE (project);
 
 	brasero_project_name_unset_session (project);
-
 	if (!session)
 		return;
 
@@ -617,6 +616,8 @@ brasero_project_name_set_session (BraseroProjectName *project,
 			  "flags-changed",
 			  G_CALLBACK (brasero_project_name_flags_changed),
 			  project);
+
+	brasero_project_name_session_changed (project);
 }
 
 static void



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