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:
authorCampbell Barton <ideasman42@gmail.com>2012-05-14 02:05:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-14 02:05:51 +0400
commit4f2c83f573472c69f7f72762a34e1158433a06b6 (patch)
treee5fe9dcd6d151adf2b906603b15ee20fb4ba9067 /source/blender/editors/space_api/spacetypes.c
parente5963aae1de14c4aaf2953b1cb91b4119415c565 (diff)
style cleanup: imbuf & icons
Diffstat (limited to 'source/blender/editors/space_api/spacetypes.c')
-rw-r--r--source/blender/editors/space_api/spacetypes.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c
index 31243184961..956aee84fd3 100644
--- a/source/blender/editors/space_api/spacetypes.c
+++ b/source/blender/editors/space_api/spacetypes.c
@@ -70,7 +70,7 @@ void ED_spacetypes_init(void)
SpaceType *type;
/* UI_UNIT_X is now a variable, is used in some spacetype inits? */
- U.widget_unit= 20;
+ U.widget_unit = 20;
/* create space types */
ED_spacetype_outliner();
@@ -117,7 +117,7 @@ void ED_spacetypes_init(void)
/* register operators */
spacetypes = BKE_spacetypes_list();
- for (type=spacetypes->first; type; type=type->next) {
+ for (type = spacetypes->first; type; type = type->next) {
if (type->operatortypes)
type->operatortypes();
}
@@ -136,7 +136,7 @@ void ED_spacetypes_init(void)
/* register dropboxes (can use macros) */
spacetypes = BKE_spacetypes_list();
- for (type=spacetypes->first; type; type=type->next) {
+ for (type = spacetypes->first; type; type = type->next) {
if (type->dropboxes)
type->dropboxes();
}
@@ -169,10 +169,10 @@ void ED_spacetypes_keymap(wmKeyConfig *keyconf)
UI_view2d_keymap(keyconf);
spacetypes = BKE_spacetypes_list();
- for (stype=spacetypes->first; stype; stype=stype->next) {
+ for (stype = spacetypes->first; stype; stype = stype->next) {
if (stype->keymap)
stype->keymap(keyconf);
- for (atype=stype->regiontypes.first; atype; atype=atype->next) {
+ for (atype = stype->regiontypes.first; atype; atype = atype->next) {
if (atype->keymap)
atype->keymap(keyconf);
}
@@ -192,15 +192,15 @@ typedef struct RegionDrawCB {
} RegionDrawCB;
void *ED_region_draw_cb_activate(ARegionType *art,
- void (*draw)(const struct bContext *, struct ARegion *, void *),
- void *customdata, int type)
+ void (*draw)(const struct bContext *, struct ARegion *, void *),
+ void *customdata, int type)
{
- RegionDrawCB *rdc= MEM_callocN(sizeof(RegionDrawCB), "RegionDrawCB");
+ RegionDrawCB *rdc = MEM_callocN(sizeof(RegionDrawCB), "RegionDrawCB");
BLI_addtail(&art->drawcalls, rdc);
- rdc->draw= draw;
- rdc->customdata= customdata;
- rdc->type= type;
+ rdc->draw = draw;
+ rdc->customdata = customdata;
+ rdc->type = type;
return rdc;
}
@@ -209,8 +209,8 @@ void ED_region_draw_cb_exit(ARegionType *art, void *handle)
{
RegionDrawCB *rdc;
- for (rdc= art->drawcalls.first; rdc; rdc= rdc->next) {
- if (rdc==(RegionDrawCB *)handle) {
+ for (rdc = art->drawcalls.first; rdc; rdc = rdc->next) {
+ if (rdc == (RegionDrawCB *)handle) {
BLI_remlink(&art->drawcalls, rdc);
MEM_freeN(rdc);
return;
@@ -227,8 +227,8 @@ void ED_region_draw_cb_draw(const bContext *C, ARegion *ar, int type)
{
RegionDrawCB *rdc;
- for (rdc= ar->type->drawcalls.first; rdc; rdc= rdc->next) {
- if (rdc->type==type)
+ for (rdc = ar->type->drawcalls.first; rdc; rdc = rdc->next) {
+ if (rdc->type == type)
rdc->draw(C, ar, rdc->customdata);
}
}
@@ -283,14 +283,14 @@ void ED_spacetype_xxx(void)
{
static SpaceType st;
- st.spaceid= SPACE_VIEW3D;
+ st.spaceid = SPACE_VIEW3D;
- st.new= xxx_new;
- st.free= xxx_free;
- st.init= xxx_init;
- st.duplicate= xxx_duplicate;
- st.operatortypes= xxx_operatortypes;
- st.keymap= xxx_keymap;
+ st.new = xxx_new;
+ st.free = xxx_free;
+ st.init = xxx_init;
+ st.duplicate = xxx_duplicate;
+ st.operatortypes = xxx_operatortypes;
+ st.keymap = xxx_keymap;
BKE_spacetype_register(&st);
}