[brasero] nautilus: wait for the track to load file info before adding to session



commit 400a4d521496f367e1db035daedcf9c96c2eeca3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Apr 7 17:09:35 2011 -0400

    nautilus: wait for the track to load file info before adding to session
    
    https://bugzilla.gnome.org/show_bug.cgi?id=647102

 nautilus/nautilus-burn-extension.c |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/nautilus/nautilus-burn-extension.c b/nautilus/nautilus-burn-extension.c
index 5aa9747..1056b5f 100644
--- a/nautilus/nautilus-burn-extension.c
+++ b/nautilus/nautilus-burn-extension.c
@@ -316,6 +316,17 @@ launch_brasero_on_window_track (BraseroTrack	*track,
 }
 
 static void
+brasero_nautilus_track_changed_cb (BraseroTrack *track,
+				   gpointer user_data)
+{
+	launch_brasero_on_window_track (track,
+	                                _("Write to Disc"),
+	                                NULL,
+	                                GTK_WINDOW (user_data));
+	g_object_unref (track);
+}
+
+static void
 write_iso_activate_cb (NautilusMenuItem *item,
                        gpointer          user_data)
 {
@@ -331,11 +342,8 @@ write_iso_activate_cb (NautilusMenuItem *item,
 	track = brasero_track_image_cfg_new ();
 	brasero_track_image_cfg_set_source (track, uri);
 
-	launch_brasero_on_window_track (BRASERO_TRACK (track),
-	                                _("Write to Disc"),
-	                                NULL,
-	                                GTK_WINDOW (user_data));
-	g_object_unref (track);
+	g_signal_connect (track, "changed",
+			  G_CALLBACK (brasero_nautilus_track_changed_cb), user_data);
 }
 
 static void



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