2.5: Remove OOPS code from the outliner space, as discussed
[blender-staging.git] / source / blender / makesrna / intern / rna_space.c
index 0f78846684df8041f66560f40f2ec46c02f49c12..5184e904927ca0102c7e68f8396c11b931229a19 100644 (file)
@@ -49,7 +49,7 @@ static StructRNA* rna_Space_refine(struct PointerRNA *ptr)
                        return &RNA_SpaceView3D;
                case SPACE_IPO:
                        return &RNA_SpaceGraphEditor;
-               case SPACE_OOPS:
+               case SPACE_OUTLINER:
                        return &RNA_SpaceOutliner;
                case SPACE_BUTS:
                        return &RNA_SpaceButtonsWindow;
@@ -122,7 +122,7 @@ static void rna_def_space(BlenderRNA *brna)
                {SPACE_EMPTY, "EMPTY", "Empty", ""},
                {SPACE_VIEW3D, "VIEW_3D", "3D View", ""},
                {SPACE_IPO, "GRAPH_EDITOR", "Graph Editor", ""},
-               {SPACE_OOPS, "OUTLINER", "Outliner", ""},
+               {SPACE_OUTLINER, "OUTLINER", "Outliner", ""},
                {SPACE_BUTS, "BUTTONS_WINDOW", "Buttons Window", ""},
                {SPACE_FILE, "FILE_BROWSER", "File Browser", ""},
                {SPACE_IMAGE, "IMAGE_EDITOR", "Image Editor", ""},
@@ -146,7 +146,7 @@ static void rna_def_space(BlenderRNA *brna)
        prop= RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_sdna(prop, NULL, "spacetype");
        RNA_def_property_enum_items(prop, type_items);
-       RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
+       RNA_def_property_clear_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Type", "Space data type.");
 }
 
@@ -338,6 +338,7 @@ static void rna_def_space_text(BlenderRNA *brna)
 
        /* text */
        prop= RNA_def_property(srna, "text", PROP_POINTER, PROP_NONE);
+       RNA_def_property_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Text", "Text displayed and edited in this space.");
        RNA_def_property_pointer_funcs(prop, NULL, "rna_SpaceTextEditor_text_set");
        RNA_def_property_update(prop, NC_TEXT|ND_CURSOR, NULL);