diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-06-19 23:37:17 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-06-19 23:37:17 +0400 |
commit | 881dbac5d93cffd2f6a9f5c3896d1c84ebfd0ce5 (patch) | |
tree | cf604a1c693c0b4ea57eb13064786a162499e632 /source/blender/editors/space_buttons/buttons_intern.h | |
parent | d54d00ef845a7bb4f0d8e08133b2489983dbe907 (diff) |
This commit tackles the "context" buttons in Properties header, which were still using "ugly" old UI code.
It removes buttons_header.c file, adds a (small) space_properties.py one, with a PROPERTIES_HT_header class, which simply uses the RNA enum to draw the context buttons.
It also fixes that enum, btw, it always featured all contexts, which means you could (try to!) set through RNA invalid contexts...
Thanks to brecht and dingto for the reviews.
Diffstat (limited to 'source/blender/editors/space_buttons/buttons_intern.h')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_intern.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/space_buttons/buttons_intern.h b/source/blender/editors/space_buttons/buttons_intern.h index 5700d361e15..f294729ae97 100644 --- a/source/blender/editors/space_buttons/buttons_intern.h +++ b/source/blender/editors/space_buttons/buttons_intern.h @@ -97,9 +97,6 @@ typedef struct ButsContextTexture { /* internal exports only */ -/* buttons_header.c */ -void buttons_header_buttons(const struct bContext *C, struct ARegion *ar); - /* buttons_context.c */ void buttons_context_compute(const struct bContext *C, struct SpaceButs *sbuts); int buttons_context(const struct bContext *C, const char *member, struct bContextDataResult *result); |