From a41ec761fdec42c87bfc4767e669d9394b73367c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 3 Jan 2011 13:33:07 +0000 Subject: [PATCH] rename layout.red_alert to alert, may be themeable some day. --- release/scripts/ui/properties_object_constraint.py | 2 +- release/scripts/ui/properties_particle.py | 6 +++--- source/blender/makesrna/intern/rna_ui.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py index 4c3544fa48a..130b9f52567 100644 --- a/release/scripts/ui/properties_object_constraint.py +++ b/release/scripts/ui/properties_object_constraint.py @@ -722,7 +722,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel): if ob.mode == 'POSE': box = layout.box() - box.red_alert = True; + box.alert = True; box.label(icon='INFO', text="See Bone Constraints tab to Add Constraints to active bone") else: layout.operator_menu_enum("object.constraint_add", "type") diff --git a/release/scripts/ui/properties_particle.py b/release/scripts/ui/properties_particle.py index e8bfdf913f1..ebc24df225b 100644 --- a/release/scripts/ui/properties_particle.py +++ b/release/scripts/ui/properties_particle.py @@ -546,7 +546,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel): if part.physics_type == 'KEYED': col = row.column() #doesn't work yet - #col.red_alert = key.valid + #col.alert = key.valid col.prop(key, "object", text="") col.prop(key, "system", text="System") col = row.column() @@ -556,7 +556,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel): elif part.physics_type == 'BOIDS': sub = row.row() #doesn't work yet - #sub.red_alert = key.valid + #sub.alert = key.valid sub.prop(key, "object", text="") sub.prop(key, "system", text="System") @@ -564,7 +564,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel): elif part.physics_type == 'FLUID': sub = row.row() #doesn't work yet - #sub.red_alert = key.valid + #sub.alert = key.valid sub.prop(key, "object", text="") sub.prop(key, "system", text="System") 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);