Changeset 07758c9826e90893f45857d9a7e29dd93f549d88


Ignore:
Timestamp:
27/08/10 14:47:09 (3 years ago)
Author:
Matias De la Puente <mfpuente.ar@…>
Children:
65b3a068b00724644b2090a60a69a0a11302ec48
Parents:
2031051176dc008449a1460f189835b15ea15cf4
git-committer:
Matias De la Puente <mfpuente.ar@…> (27/08/10 14:47:09)
Message:

Projects: Save profile's files before building

Location:
libi4uc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libi4uc/i4ucdocumentspresenter.vala

    r109c655 r07758c98  
    9696        } 
    9797         
     98        public void save_documents (Gee.List<string> document_uris) 
     99        { 
     100                foreach (var document_uri in document_uris) 
     101                { 
     102                        var page_presenter = get_page_presenter_from_title (document_uri); 
     103                        if (page_presenter != null) 
     104                                page_presenter.save (); 
     105                } 
     106        } 
     107         
    98108        public bool close_all () 
    99109        { 
  • libi4uc/i4ucprojectspresenter.vala

    r2031051 r07758c98  
    1919 *      Matias De la Puente <mfpuente.ar@gmail.com> 
    2020 */ 
     21using Gee; 
    2122 
    2223public class I4uc.ProjectsPresenter : DocumentOpener, GLib.Object 
     
    212213                } 
    213214                 
     215                //Save profile's files before building 
     216                var files_to_save = new ArrayList<string> (); 
     217                foreach (var file in current_profile.files) 
     218                        files_to_save.add (current_project.get_file_uri (file)); 
     219                _documents_presenter.save_documents (files_to_save); 
     220                 
    214221                _profile_builder.project = current_project; 
    215222                _profile_builder.profile = current_profile.name; 
Note: See TracChangeset for help on using the changeset viewer.