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>2011-02-19 20:18:38 +0300
committerTon Roosendaal <ton@blender.org>2011-02-19 20:18:38 +0300
commit9d81d5f7ac69d209325cc1f644c5c06a600483b1 (patch)
tree54e49c5ed901acd4dea72f4fe0e789b068162715 /source/blender/editors/interface
parente3cc8f00ccd7736227bc40c6a419495918f30759 (diff)
Todo item:
Option menus (like Mapping options in texture) now show a tooltip on the button itself, explaining the selected option.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 2144262c082..5843412940a 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -2581,8 +2581,11 @@ static uiBut *ui_def_but_rna(uiBlock *block, int type, int retval, const char *s
else
BLI_dynstr_appendf(dynstr, "|%s %%x%d", item[i].name, item[i].value);
- if(value == item[i].value)
+ if(value == item[i].value) {
icon= item[i].icon;
+ if(!tip)
+ tip= item[i].description;
+ }
}
str= BLI_dynstr_get_cstring(dynstr);
BLI_dynstr_free(dynstr);