Changeset e687f56c3c458d6f62285f4c36539e9a5bf52309


Ignore:
Timestamp:
30/10/10 15:19:58 (3 years ago)
Author:
Matias De la Puente <mfpuente.ar@…>
Children:
5715dec63ee49fac853a60407b0d77a118d2929d
Parents:
6e1166cf8e4b153976a33d674e1eacce80d7fb84
git-committer:
Matias De la Puente <mfpuente.ar@…> (30/10/10 15:19:58)
Message:

Bind properties in GtkFrontend?.ProjectsPageView?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gtkfrontend/projectspageview.vala

    rdfe49c7 re687f56  
    4646        public string current_file { get { return _files_list.current_file; } } 
    4747 
    48         public bool profiles_check_list_sensitive 
    49         { 
    50                 set { _profiles_check_list.sensitive = value; } 
    51                 get { return _profiles_check_list.sensitive; } 
    52         } 
    53          
    54         public bool profiles_check_list_visible 
    55         { 
    56                 set { _profiles_expander.visible = value; } 
    57                 get { return _profiles_expander.visible; } 
    58         } 
     48        public bool profiles_check_list_sensitive { set; get; } 
     49        public bool profiles_check_list_visible { set; get; } 
    5950 
    6051        public I4uc.Core.BuildersList builders_list { get { return _builders_list; } } 
    6152         
    62         public bool builders_list_sensitive 
    63         { 
    64                 set { _builders_list.sensitive = value; } 
    65                 get { return _builders_list.sensitive; } 
    66         } 
    67  
    68         public bool builders_list_visible 
    69         { 
    70                 set { _builders_expander.visible = value; } 
    71                 get { return _builders_expander.visible; } 
    72         } 
    73          
    74         public bool profile_edit_sensitive 
    75         { 
    76                 set { _profiles_combo.button_sensitive = value; } 
    77                 get { return _profiles_combo.button_sensitive; } 
    78         } 
     53        public bool builders_list_sensitive { set; get; } 
     54        public bool builders_list_visible { set; get; } 
     55        public bool profile_edit_sensitive { set; get; } 
    7956 
    8057        public ProjectsPageView () 
     
    9572                pack_start (_builders_expander, false, false, 2); 
    9673                show_all (); 
     74                 
     75                //Bind properties 
     76                bind_property ("profiles-check-list-sensitive", _profiles_check_list, "sensitive", BindingFlags.BIDIRECTIONAL); 
     77                bind_property ("profiles-check-list-visible", _profiles_expander, "visible", BindingFlags.BIDIRECTIONAL); 
     78                bind_property ("builders-list-sensitive", _builders_list, "sensitive", BindingFlags.BIDIRECTIONAL); 
     79                bind_property ("builders-list-visible", _builders_expander, "visible", BindingFlags.BIDIRECTIONAL); 
     80                bind_property ("profile-edit-sensitive", _profiles_combo, "button-sensitive", BindingFlags.BIDIRECTIONAL); 
    9781 
    9882                //connect signals 
Note: See TracChangeset for help on using the changeset viewer.