Changeset 9dc891a8419d7ed0740e8b201de4748863fbbf9a


Ignore:
Timestamp:
11/11/10 11:24:36 (3 years ago)
Author:
Matias De la Puente <mfpuente.ar@…>
Children:
b44c79e0e4fc87ca92b457910eafb10b81bf1725
Parents:
b5a6e22f617a855e58a6812eea15550c401cc03c
git-committer:
Matias De la Puente <mfpuente.ar@…> (11/11/10 11:24:36)
Message:

Projects: Rename 'extra options' to 'link options'

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • gtkfrontend/builderslist.vala

    ref124dc r9dc891a  
    2626        private ItemsCombo _device_types_combo = new ItemsCombo (_("Device type:")); 
    2727        private ItemsCombo _devices_combo = new ItemsCombo (_("Device:")); 
    28         private Entry _extra_options_entry = new Entry (); 
     28        private Entry _link_options_entry = new Entry (); 
    2929         
    3030        public string current_builder { set; get; } 
    3131        public string current_device_type { set; get; } 
    3232        public string current_device { set; get; } 
    33         public string current_extra_options { set; get; } 
     33        public string current_link_options { set; get; } 
    3434         
    3535        public BuildersList () 
     
    4040                 
    4141                var vbox = new VBox (false, 0); 
    42                 Utils.add_vbox_label (vbox, _("Extra options:"), _extra_options_entry); 
     42                Utils.add_vbox_label (vbox, _("Link options:"), _link_options_entry); 
    4343                pack_start (vbox, false, false, 4); 
    4444                 
     
    4747                bind_property ("current-device-type", _device_types_combo, "current-item", BindingFlags.BIDIRECTIONAL); 
    4848                bind_property ("current-device", _devices_combo, "current-item", BindingFlags.BIDIRECTIONAL); 
    49                 bind_property ("current-extra-options", _extra_options_entry, "text", BindingFlags.BIDIRECTIONAL); 
     49                bind_property ("current-link-options", _link_options_entry, "text", BindingFlags.BIDIRECTIONAL); 
    5050        } 
    5151 
  • libi4uccore/builderslist.vala

    ref124dc r9dc891a  
    2525        public abstract string current_device_type { set; get; } 
    2626        public abstract string current_device { set; get; } 
    27         public abstract string current_extra_options { set; get; } 
     27        public abstract string current_link_options { set; get; } 
    2828         
    2929        public abstract void add_builder (string builder); 
  • libi4uccore/profilebuilder.vala

    r234a777 r9dc891a  
    120120                command = command.replace ("%project", _project.name.replace (" ", "_")); 
    121121                command = command.replace ("%profile", _profile.name.replace (" ", "_")); 
    122                 command += " " + _profile.extra_options; 
     122                command += " " + _profile.link_options; 
    123123                 
    124124                var command_context = new CommandContext (); 
  • libi4uccore/projectprofile.vala

    rdfe49c7 r9dc891a  
    3030        public string device_type { set; get; default = ""; } 
    3131        public string device { set; get; default = ""; } 
    32         public string extra_options { set; get; default = ""; } 
     32        public string link_options { set; get; default = ""; } 
    3333        public Gee.List<string> files { get { return _files; } } 
    3434         
     
    4141                _device_type = key_file.get_string (group, "device_type"); 
    4242                _device = key_file.get_string (group, "device"); 
    43                 if (key_file.has_key (group, "extra_options")) 
    44                         _extra_options = key_file.get_string (group, "extra_options"); 
     43                if (key_file.has_key (group, "link_options")) 
     44                        _link_options = key_file.get_string (group, "link_options"); 
    4545                 
    4646                var files = key_file.get_string_list (group, "files"); 
     
    5757                key_file.set_string (group, "device_type", _device_type); 
    5858                key_file.set_string (group, "device", _device); 
    59                 key_file.set_string (group, "extra_options", _extra_options); 
     59                key_file.set_string (group, "link_options", _link_options); 
    6060                key_file.set_string_list (group, "files", _files.to_array ()); 
    6161        } 
  • libi4uccore/projectspagelogic.vala

    ref124dc r9dc891a  
    6161                _view.builders_list.notify["current-device-type"].connect (on_device_type_changed); 
    6262                _view.builders_list.notify["current-device"].connect (on_device_changed); 
    63                 _view.builders_list.notify["current-extra-options"].connect (on_extra_options_changed); 
     63                _view.builders_list.notify["current-link-options"].connect (on_link_options_changed); 
    6464        } 
    6565 
     
    142142                        new_profile.device_type = profile.device_type; 
    143143                        new_profile.device = profile.device; 
    144                         new_profile.extra_options = profile.extra_options; 
     144                        new_profile.link_options = profile.link_options; 
    145145                        new_profile.files.add_all (dialog_view.activated_files); 
    146146                        _current_project.profiles[new_profile.name] = new_profile; 
     
    199199                _view.builders_list.current_device_type = profile.device_type; 
    200200                _view.builders_list.current_device = profile.device; 
    201                 _view.builders_list.current_extra_options = profile.extra_options; 
     201                _view.builders_list.current_link_options = profile.link_options; 
    202202                 
    203203                _view.builders_list_sensitive = true; 
     
    297297        } 
    298298         
    299         private void on_extra_options_changed () 
     299        private void on_link_options_changed () 
    300300        { 
    301301                if (!_view.builders_list_sensitive) 
     
    305305                        return; 
    306306                 
    307                 var current_extra_options = _view.builders_list.current_extra_options; 
    308                 _current_project.profiles[_current_profile].extra_options = current_extra_options ?? ""; 
     307                var current_link_options = _view.builders_list.current_link_options; 
     308                _current_project.profiles[_current_profile].link_options = current_link_options ?? ""; 
    309309                _current_project.save (); 
    310310        } 
Note: See TracChangeset for help on using the changeset viewer.