[brasero] Fix build of nautilus burn extension
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix build of nautilus burn extension
- Date: Wed, 3 Jun 2009 08:21:42 -0400 (EDT)
commit c39d597585878dd846c1f6a748de977909096bc2
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Jun 3 14:13:52 2009 +0200
Fix build of nautilus burn extension
Fix #584664 â?? Compile fail on nautilus extension
---
libbrasero-burn/brasero-status-dialog.c | 2 -
nautilus/nautilus-burn-extension.c | 50 +++++++++++++++++-------------
2 files changed, 28 insertions(+), 24 deletions(-)
diff --git a/libbrasero-burn/brasero-status-dialog.c b/libbrasero-burn/brasero-status-dialog.c
index d2dde01..cf76ef1 100644
--- a/libbrasero-burn/brasero-status-dialog.c
+++ b/libbrasero-burn/brasero-status-dialog.c
@@ -43,8 +43,6 @@
#include "brasero-units.h"
#include "brasero-enums.h"
-#include "brasero-track-data-cfg.h"
-#include "brasero-track-image-cfg.h"
#include "brasero-session.h"
#include "brasero-status-dialog.h"
diff --git a/nautilus/nautilus-burn-extension.c b/nautilus/nautilus-burn-extension.c
index 0d157d1..3d14f64 100644
--- a/nautilus/nautilus-burn-extension.c
+++ b/nautilus/nautilus-burn-extension.c
@@ -39,6 +39,7 @@
#include "brasero-burn-lib.h"
#include "brasero-track.h"
+#include "brasero-data-options.h"
#include "brasero-track-data-cfg.h"
#include "brasero-track-image-cfg.h"
#include "brasero-track-disc.h"
@@ -137,22 +138,6 @@ launch_brasero_on_window_session (BraseroSessionCfg *session,
gtk_widget_destroy (dialog);
}
-static void
-launch_brasero_on_window_track (BraseroTrack *track,
- GtkWidget *options,
- GtkWindow *window)
-{
- BraseroSessionCfg *session;
-
- /* create a session and add track */
- session = brasero_session_cfg_new ();
- brasero_burn_session_add_track (BRASERO_BURN_SESSION (session),
- BRASERO_TRACK (track));
-
- launch_brasero_on_window_session (session, options, window);
- g_object_unref (session);
-}
-
static gboolean
nautilus_disc_burn_is_empty (GtkWindow *toplevel)
{
@@ -214,6 +199,7 @@ static void
write_activate (GtkWindow *toplevel)
{
BraseroTrackDataCfg *track;
+ BraseroSessionCfg *session;
GtkWidget *name_options;
GtkWidget *options;
GtkWidget *box;
@@ -225,6 +211,12 @@ write_activate (GtkWindow *toplevel)
track = brasero_track_data_cfg_new ();
brasero_track_data_cfg_add (track, BURN_URI, NULL);
+ session = brasero_session_cfg_new ();
+ brasero_burn_session_add_track (BRASERO_BURN_SESSION (session),
+ BRASERO_TRACK (track));
+ g_object_unref (track);
+
+ /* Add option widget */
box = gtk_vbox_new (FALSE, 6);
gtk_widget_show (box);
@@ -242,18 +234,16 @@ write_activate (GtkWindow *toplevel)
gtk_box_pack_start (GTK_BOX (box), options, FALSE, TRUE, 0);
/* create the options box */
- options = brasero_data_options_new (BRASERO_BURN_SESSION (priv->session));
+ options = brasero_data_options_new (BRASERO_BURN_SESSION (session));
gtk_widget_show (options);
- brasero_burn_options_add_options (self, options);
gtk_box_pack_start (GTK_BOX (box), options, FALSE, TRUE, 0);
/* NOTE: set the disc we're handling */
- launch_brasero_on_window_track (BRASERO_TRACK (track),
- box,
- toplevel);
+ launch_brasero_on_window_session (session, options, toplevel);
+ g_object_unref (session);
/* cleanup */
- g_object_unref (track);
+ g_object_unref (session);
}
static void
@@ -264,6 +254,22 @@ write_activate_cb (NautilusMenuItem *item,
}
static void
+launch_brasero_on_window_track (BraseroTrack *track,
+ GtkWidget *options,
+ GtkWindow *window)
+{
+ BraseroSessionCfg *session;
+
+ /* create a session and add track */
+ session = brasero_session_cfg_new ();
+ brasero_burn_session_add_track (BRASERO_BURN_SESSION (session),
+ BRASERO_TRACK (track));
+
+ launch_brasero_on_window_session (session, options, window);
+ g_object_unref (session);
+}
+
+static void
write_iso_activate_cb (NautilusMenuItem *item,
gpointer user_data)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]