~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to nautilus/nautilus-burn-extension.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-07-14 14:13:00 UTC
  • mfrom: (1.1.25 upstream)
  • Revision ID: james.westby@ubuntu.com-20090714141300-e08q13sp48b2xzwd
Tags: 2.27.4-0ubuntu1
* New upstream release: (LP: #399112)
  - Hal support removed, now relies on GIO only for drives/media probing
  - New layout for size reporting in data/audio/video project
  - Lot's of bug fixes
  - Fixed some memleaks
  - Bump libbrasero-media version to reflect changes (important to packagers)
  - Fix #582261 – brasero shows 0% done, while continues burning disc
  - Fix #582513 – Bogus VIDEO_TS directory error if AUDIO_TS directory present
  - Fix #573805 – "Increase compatibility with Windows systems"?
  - Fix #585190 – remove 0 from 03 % status
  - Fix #586744 – Use AS_HELP_STRING for configure switches
  - Fix #584793 – Poor language in warning dialog when attempting to burn an audio CD onto a CDRW
  - Fix #580617 – Brasero floods .xsession-errors log with "Unknown (or already deleted) monitored directory" warnings
  - Fix #563501 – Brasero burning window shouldn't try to show drive speed while is converting audio files
  - Fix #485719 – Burn dialog CD icon
  - Fix #585481 – Deep hierarchy warning
  - Fix #554070 – The need of a "replace all" and "replace non" button
  - Fix #582461 – Brasero hangs at normalizing tracks
  - Fix #587284 – nautilus hangs every time
  - Fix #574093 – Caret visible in instructions for project creation
  - Fix #581742 – port from HAL to DeviceKit-disks
  - Fix #573801 – Bad error message when burning empty burn:///
  - Fix #573486 – Various i18n and string issues for good
  - Fix #587399 – License clarification
  - Fix #587554 – Unclear meaning of text
  - Fix #582979 – brasero should not include Categories in mime handler .desktop files
  - Fix #586040 – duplicated command listed in open-with dialog
  - Fixes for #573486 – Various i18n and string issues
* debian/control.in:
  - Add in missing comma in brasero suggests

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include "brasero-burn-lib.h"
41
41
#include "brasero-track.h"
42
 
#include "brasero-data-options.h"
43
42
#include "brasero-track-data-cfg.h"
44
43
#include "brasero-track-image-cfg.h"
45
44
#include "brasero-track-disc.h"
186
185
 
187
186
                brasero_utils_message_dialog (GTK_WIDGET (toplevel),
188
187
                                              _("Please add files."),
189
 
                                              _("The project is empty"),
 
188
                                              _("There are no files to write to disc"),
190
189
                                              GTK_MESSAGE_ERROR);
191
190
                return TRUE;
192
191
        }
202
201
        BraseroSessionCfg       *session;
203
202
        GtkWidget               *name_options;
204
203
        GtkWidget               *options;
205
 
        GtkWidget               *box;
206
204
        gchar                   *string;
207
205
 
208
206
        if (nautilus_disc_burn_is_empty (toplevel))
213
211
 
214
212
        session = brasero_session_cfg_new ();
215
213
        brasero_burn_session_add_track (BRASERO_BURN_SESSION (session),
216
 
                                        BRASERO_TRACK (track));
 
214
                                        BRASERO_TRACK (track),
 
215
                                        NULL);
217
216
        g_object_unref (track);
218
217
 
219
 
        /* Add option widget */
220
 
        box = gtk_vbox_new (FALSE, 6);
221
 
        gtk_widget_show (box);
222
 
 
223
218
        /* add name widget here to set the label of the volume */
224
 
        name_options = brasero_project_name_new ();
225
 
        brasero_project_name_set_type (BRASERO_PROJECT_NAME (name_options),
226
 
                                       BRASERO_PROJECT_TYPE_DATA);
 
219
        name_options = brasero_project_name_new (NULL);
 
220
        brasero_project_name_set_session (BRASERO_PROJECT_NAME (name_options),
 
221
                                          BRASERO_BURN_SESSION (session));
227
222
 
228
223
        string = g_strdup_printf ("<b>%s</b>", _("Disc name"));
229
224
        options = brasero_utils_pack_properties (string,
231
226
                                                 NULL);
232
227
        g_free (string);
233
228
        gtk_widget_show_all (options);
234
 
        gtk_box_pack_start (GTK_BOX (box), options, FALSE, TRUE, 0);
235
 
 
236
 
        /* create the options box */
237
 
        options = brasero_data_options_new (BRASERO_BURN_SESSION (session));
238
 
        gtk_widget_show (options);
239
 
        gtk_box_pack_start (GTK_BOX (box), options, FALSE, TRUE, 0);
240
229
 
241
230
        /* NOTE: set the disc we're handling */
242
231
        launch_brasero_on_window_session (session, options, toplevel);
243
 
        g_object_unref (session);
244
232
 
245
233
        /* cleanup */
246
234
        g_object_unref (session);
263
251
        /* create a session and add track */
264
252
        session = brasero_session_cfg_new ();
265
253
        brasero_burn_session_add_track (BRASERO_BURN_SESSION (session),
266
 
                                        BRASERO_TRACK (track));
 
254
                                        BRASERO_TRACK (track),
 
255
                                        NULL);
267
256
 
268
257
        launch_brasero_on_window_session (session, options, window);
269
258
        g_object_unref (session);
945
934
        DEBUG_PRINT ("Initializing nautilus-disc-recorder\n");
946
935
 
947
936
        brasero_media_library_start ();
948
 
        brasero_burn_library_start ();
 
937
        brasero_burn_library_start (NULL, NULL);
949
938
        DEBUG_PRINT ("Libbrasero-media started\n");
950
939
 
951
940
        nautilus_disc_burn_register_type (module);