[Bf-blender-cvs] [ec78478] depsgraph_refactor: Depsgraph: Updates for the cleaned UI API
Sergey Sharybin
noreply at git.blender.org
Wed Nov 12 13:56:26 CET 2014
Commit: ec784784e947dd0899fb7e92021132c22ecf73e3
Author: Sergey Sharybin
Date: Wed Nov 12 13:56:31 2014 +0100
Branches: depsgraph_refactor
https://developer.blender.org/rBec784784e947dd0899fb7e92021132c22ecf73e3
Depsgraph: Updates for the cleaned UI API
===================================================================
M source/blender/editors/space_info/info_draw.c
===================================================================
diff --git a/source/blender/editors/space_info/info_draw.c b/source/blender/editors/space_info/info_draw.c
index 1106b8c..506e294 100644
--- a/source/blender/editors/space_info/info_draw.c
+++ b/source/blender/editors/space_info/info_draw.c
@@ -303,7 +303,7 @@ void info_depsgraphview_main(const struct bContext *C, struct ARegion *ar)\
float x, y, width, em;
int xco, yco;
- block = uiBeginBlock(C, ar, __func__, UI_EMBOSS);
+ block = UI_block_begin(C, ar, __func__, UI_EMBOSS);
x = v2d->cur.xmin;
y = v2d->cur.ymax;
@@ -311,15 +311,15 @@ void info_depsgraphview_main(const struct bContext *C, struct ARegion *ar)\
em = (ar->type->prefsizex) ? 10 : 20; /* works out to 10*UI_UNIT_X or 20*UI_UNIT_X */
- layout = uiBlockLayout(block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL,
- x, y, width, em, 0, UI_GetStyle());
+ layout = UI_block_layout(block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL,
+ x, y, width, em, 0, UI_style_get());
depsgraphview_draw(C, layout);
- uiBlockLayoutResolve(block, &xco, &yco);
+ UI_block_layout_resolve(block, &xco, &yco);
- uiEndBlock(C, block);
- uiDrawBlock(C, block);
+ UI_block_end(C, block);
+ UI_block_draw(C, block);
// UI_view2d_totRect_set(v2d, 1000, 1000);
}
More information about the Bf-blender-cvs
mailing list