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:
authorTon Roosendaal <ton@blender.org>2009-05-20 18:47:48 +0400
committerTon Roosendaal <ton@blender.org>2009-05-20 18:47:48 +0400
commitd6f71875bdc26b88231540eb5c5ac8108b60ed54 (patch)
treeb72376d621194c9bfc7486620d38d19539600b40 /source/blender/editors/interface
parent0a13c162b14065fcc93b74befee397d080d6d630 (diff)
2.5
Undid fix from matt to prevent tog button alignment, this is not working that way... made UI look very bad (like layer buttons) The new code has 'toggle' and 'option' button types, with the latter being the new style, and first for icon rows, layers, etc. Purpose is that RNA or py api would allow to distinguish.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 8184e2e1fa9..b4c2969c955 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1987,7 +1987,7 @@ void uiBlockEndAlign(uiBlock *block)
int ui_but_can_align(uiBut *but)
{
- return !ELEM3(but->type, LABEL, ROUNDBOX, TOG);
+ return !ELEM(but->type, LABEL, ROUNDBOX);
}
static void ui_block_do_align_but(uiBlock *block, uiBut *first, int nr)