~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/brasero-project-manager.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:
748
748
 
749
749
BraseroProjectType
750
750
brasero_project_manager_open_project (BraseroProjectManager *manager,
751
 
                                      BraseroDiscTrack *track,
752
751
                                      const gchar *uri,
 
752
                                      gboolean playlist,
753
753
                                      gboolean burn)
754
754
{
755
755
        GtkAction *action;
756
756
        BraseroProjectType type;
757
757
 
758
 
        if (track->type == BRASERO_PROJECT_TYPE_INVALID) {
 
758
        type = brasero_project_open_project (BRASERO_PROJECT (manager->priv->project), uri, playlist);
 
759
        if (type == BRASERO_PROJECT_TYPE_INVALID) {
759
760
                brasero_project_manager_switch (manager, BRASERO_PROJECT_TYPE_INVALID, NULL, NULL, TRUE);
760
 
                return BRASERO_PROJECT_TYPE_INVALID;
 
761
                return type;
761
762
        }
762
763
 
763
 
        brasero_project_manager_switch (manager, track->type, NULL, NULL, FALSE);
764
 
        type = brasero_project_open_project (BRASERO_PROJECT (manager->priv->project), track, uri);
765
 
        if (type == BRASERO_PROJECT_TYPE_INVALID)
766
 
                return type;
 
764
        brasero_project_manager_switch (manager,
 
765
                                        type,
 
766
                                        NULL,
 
767
                                        NULL,
 
768
                                        FALSE);
767
769
 
768
770
        if (burn) {
769
771
                brasero_project_burn (BRASERO_PROJECT (manager->priv->project));
770
 
                return track->type;
 
772
                return type;
771
773
        }
772
774
 
773
775
        action = gtk_action_group_get_action (manager->priv->action_group, "NewChoose");
774
776
        gtk_action_set_sensitive (action, TRUE);
775
 
 
776
 
        return track->type;
 
777
        return type;
777
778
}
778
779
 
779
780
BraseroProjectType
784
785
        /* When our files/description of x-brasero mime type is not properly 
785
786
         * installed, it's returned as application/xml, so check that too. */
786
787
        if (!strcmp (mime, "application/x-brasero")
787
 
        ||  !strcmp (mime, "application/xml")) {
788
 
                BraseroDiscTrack *track = NULL;
789
 
 
790
 
                if (!brasero_project_open_project_xml (uri, &track, TRUE))
791
 
                        return BRASERO_PROJECT_TYPE_INVALID;
792
 
 
793
 
                return brasero_project_manager_open_project (manager, track, uri, FALSE);
794
 
        }
 
788
        ||  !strcmp (mime, "application/xml"))
 
789
                return brasero_project_manager_open_project (manager, uri, FALSE, FALSE);
795
790
 
796
791
#ifdef BUILD_PLAYLIST
797
792
 
798
793
        else if (!strcmp (mime, "audio/x-scpls")
799
794
             ||  !strcmp (mime, "audio/x-ms-asx")
800
795
             ||  !strcmp (mime, "audio/x-mp3-playlist")
801
 
             ||  !strcmp (mime, "audio/x-mpegurl")) {
802
 
                BraseroDiscTrack *track = NULL;
803
 
 
804
 
                if (!brasero_project_open_audio_playlist_project (uri, &track, TRUE))
805
 
                        return BRASERO_PROJECT_TYPE_INVALID;
806
 
 
807
 
                return brasero_project_manager_open_project (manager, track, uri, FALSE);
808
 
        }
 
796
             ||  !strcmp (mime, "audio/x-mpegurl"))
 
797
                return brasero_project_manager_open_project (manager, uri, TRUE, FALSE);
 
798
 
 
799
 
809
800
#endif
810
801
 
811
802
        else if (!strcmp (mime, "application/x-cd-image")