diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-03 16:33:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-03 16:33:07 +0300 |
commit | a41ec761fdec42c87bfc4767e669d9394b73367c (patch) | |
tree | 73d69d0d6d0ad2a9c22270b0a605ddd5211300f3 /source/blender/makesrna/intern/rna_ui.c | |
parent | 72e8a0c5525da6d85db6547f96555d2308885677 (diff) |
rename layout.red_alert to alert, may be themeable some day.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c index e66fed2c50d..0c26741f06c 100644 --- a/source/blender/makesrna/intern/rna_ui.c +++ b/source/blender/makesrna/intern/rna_ui.c @@ -449,12 +449,12 @@ static void rna_UILayout_active_set(PointerRNA *ptr, int value) uiLayoutSetActive(ptr->data, value); } -static int rna_UILayout_red_alert_get(PointerRNA *ptr) +static int rna_UILayout_alert_get(PointerRNA *ptr) { return uiLayoutGetRedAlert(ptr->data); } -static void rna_UILayout_red_alert_set(PointerRNA *ptr, int value) +static void rna_UILayout_alert_set(PointerRNA *ptr, int value) { uiLayoutSetRedAlert(ptr->data, value); } @@ -562,8 +562,8 @@ static void rna_def_ui_layout(BlenderRNA *brna) RNA_def_property_boolean_funcs(prop, "rna_UILayout_enabled_get", "rna_UILayout_enabled_set"); RNA_def_property_ui_text(prop, "Enabled", "When false, this (sub)layout is greyed out."); - prop= RNA_def_property(srna, "red_alert", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_funcs(prop, "rna_UILayout_red_alert_get", "rna_UILayout_red_alert_set"); + prop= RNA_def_property(srna, "alert", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_funcs(prop, "rna_UILayout_alert_get", "rna_UILayout_alert_set"); prop= RNA_def_property(srna, "alignment", PROP_ENUM, PROP_NONE); RNA_def_property_enum_items(prop, alignment_items); |