diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-10 20:58:18 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-10 20:58:18 +0300 |
commit | 64f9c67ca85a56fbc0a59b5c3a72c7f68c968445 (patch) | |
tree | 509765f38a3a785609f82b500a22c3af20c47ab8 /source/blender/editors/util | |
parent | acce05c7e40785d3b89aa69a61b4b4a91dedc0b4 (diff) |
2.5
- Brought back (most of) buttons in TimeLine window.
They don't work yet though! Waiting for Brecht to commit callbacks
for menus and ui-blocks
- Area headers hilite again when mouse is inside.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/ed_util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index fc485b8df7b..78cc5495864 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -32,11 +32,13 @@ #include "MEM_guardedalloc.h" #include "DNA_scene_types.h" +#include "DNA_userdef_types.h" #include "BLI_blenlib.h" #include "BKE_global.h" +#include "UI_text.h" /* ********* general editor util funcs, not BKE stuff please! ********* */ /* ***** XXX: functions are using old blender names, cleanup later ***** */ @@ -66,3 +68,13 @@ void apply_keyb_grid(float *val, float fac1, float fac2, float fac3, int invert) } } + +int GetButStringLength(char *str) +{ + int rt; + + rt= UI_GetStringWidth(G.font, str, (U.transopts & USER_TR_BUTTONS)); + + return rt + 15; +} + |