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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-10-16 21:42:24 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-10-22 11:47:27 +0300
commit56598fd342aa888bf36f24034c5e369a7c2acd90 (patch)
treedfc6be01623ebd44362fca007f3aac5350f19388 /source/blender/editors/space_buttons
parent6d33cc1d548a22ace6a2206d3336458fdf5ea62b (diff)
Some UI access to multi-frames icons...
Not so happy to have to change whole UI API like that, but... can't really see another solution, since layout API does not return any handler to button(s) it creates. :/
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c4
-rw-r--r--source/blender/editors/space_buttons/buttons_texture.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index da3364d872d..01c024e0f24 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -1114,7 +1114,7 @@ void buttons_context_draw(const bContext *C, uiLayout *layout)
ptr = &path->ptr[a];
if (a != 0)
- uiItemL(row, "", VICO_SMALL_TRI_RIGHT_VEC);
+ uiItemL(row, "", VICO_SMALL_TRI_RIGHT_VEC, 0);
if (ptr->data) {
icon = RNA_struct_ui_icon(ptr->type);
@@ -1130,7 +1130,7 @@ void buttons_context_draw(const bContext *C, uiLayout *layout)
MEM_freeN(name);
}
else
- uiItemL(row, "", icon);
+ uiItemL(row, "", icon, 0);
}
}
}
diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c
index 58c538c4ee5..967b4c188b6 100644
--- a/source/blender/editors/space_buttons/buttons_texture.c
+++ b/source/blender/editors/space_buttons/buttons_texture.c
@@ -563,7 +563,7 @@ static void template_texture_user_menu(bContext *C, uiLayout *layout, void *UNUS
/* add label per category */
if (!last_category || !STREQ(last_category, user->category)) {
- uiItemL(layout, IFACE_(user->category), ICON_NONE);
+ uiItemL(layout, IFACE_(user->category), ICON_NONE, 0);
but = block->buttons.last;
but->drawflag = UI_BUT_TEXT_LEFT;
}
@@ -608,7 +608,7 @@ void uiTemplateTextureUser(uiLayout *layout, bContext *C)
user = ct->user;
if (!user) {
- uiItemL(layout, IFACE_("No textures in context"), ICON_NONE);
+ uiItemL(layout, IFACE_("No textures in context"), ICON_NONE, 0);
return;
}