Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-28 20:33:02 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-28 20:33:02 +0400
commit74e4ad20c9e8d19f85aaa2995652e3f65bdfc0c9 (patch)
tree7f20ead7facacb69f02ab9384bcd855598878133 /source/blender/editors/space_action
parentf4f3a9b08b04077e6e9272e4fdd4cd550b47be02 (diff)
2.5: code cleanup, added CTX_wm_space_* for each space type,
instead of casting everywhere.
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r--source/blender/editors/space_action/action_header.c6
-rw-r--r--source/blender/editors/space_action/space_action.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_action/action_header.c b/source/blender/editors/space_action/action_header.c
index 7820b231212..43e91ea6bb5 100644
--- a/source/blender/editors/space_action/action_header.c
+++ b/source/blender/editors/space_action/action_header.c
@@ -77,7 +77,7 @@ static void act_viewmenu(bContext *C, uiLayout *layout, void *arg_unused)
{
bScreen *sc= CTX_wm_screen(C);
ScrArea *sa= CTX_wm_area(C);
- SpaceAction *sact= (SpaceAction*)CTX_wm_space_data(C);
+ SpaceAction *sact= CTX_wm_space_action(C);
PointerRNA spaceptr;
/* retrieve state */
@@ -248,7 +248,7 @@ static void do_action_buttons(bContext *C, void *arg, int event)
static void saction_idpoin_handle(bContext *C, ID *id, int event)
{
- SpaceAction *saction= (SpaceAction*)CTX_wm_space_data(C);
+ SpaceAction *saction= CTX_wm_space_action(C);
Object *obact= CTX_data_active_object(C);
printf("actedit do id: \n");
@@ -296,7 +296,7 @@ static void saction_idpoin_handle(bContext *C, ID *id, int event)
void action_header_buttons(const bContext *C, ARegion *ar)
{
ScrArea *sa= CTX_wm_area(C);
- SpaceAction *saction= (SpaceAction *)CTX_wm_space_data(C);
+ SpaceAction *saction= CTX_wm_space_action(C);
bAnimContext ac;
uiBlock *block;
int xco, yco= 3, xmax;
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 0b06499693c..55e035cfced 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -165,7 +165,7 @@ static void action_main_area_init(wmWindowManager *wm, ARegion *ar)
static void action_main_area_draw(const bContext *C, ARegion *ar)
{
/* draw entirely, view changes should be handled here */
- SpaceAction *saction= (SpaceAction*)CTX_wm_space_data(C);
+ SpaceAction *saction= CTX_wm_space_action(C);
bAnimContext ac;
View2D *v2d= &ar->v2d;
View2DGrid *grid;
@@ -228,7 +228,7 @@ static void action_channel_area_init(wmWindowManager *wm, ARegion *ar)
static void action_channel_area_draw(const bContext *C, ARegion *ar)
{
/* draw entirely, view changes should be handled here */
- SpaceAction *saction= (SpaceAction*)CTX_wm_space_data(C);
+ SpaceAction *saction= CTX_wm_space_action(C);
bAnimContext ac;
View2D *v2d= &ar->v2d;
View2DScrollers *scrollers;