Commit 400a4d52 authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Luis Medinas

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

https://bugzilla.gnome.org/show_bug.cgi?id=647102
parent 6d3a697d
......@@ -315,6 +315,17 @@ launch_brasero_on_window_track (BraseroTrack *track,
g_object_unref (session);
}
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment