From 765e464a71a339e15454ca35621c8f4923b64869 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 12 Jan 2007 11:13:34 +0000 Subject: Bugfixes: - the "number/string button widget", or sbutton(), button() and fbutton() calls, were using button event '1' or '2' to denote events, whilst this could also be an other defined event. Bug showed as unwanted display changes in ipo window after using marker renaming for example. - slider buttons for Action Window were expecting ints, while using short. - cleanup in blender/src for warnings --- source/blender/src/drawaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/src/drawaction.c') diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 515d2378491..e0597b0db04 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -130,7 +130,7 @@ static void meshactionbuts(SpaceAction *saction, Object *ob, Key *key) if (!(G.saction->flag & SACTION_SLIDERS)) { ACTWIDTH = NAMEWIDTH; - but=uiDefIconButBitI(block, TOG, SACTION_SLIDERS, B_REDR, + but=uiDefIconButBitS(block, TOG, SACTION_SLIDERS, B_REDR, ICON_DISCLOSURE_TRI_RIGHT, NAMEWIDTH - XIC - 5, y + CHANNELHEIGHT, XIC,YIC-2, @@ -141,7 +141,7 @@ static void meshactionbuts(SpaceAction *saction, Object *ob, Key *key) } else { - but= uiDefIconButBitI(block, TOG, SACTION_SLIDERS, B_REDR, + but= uiDefIconButBitS(block, TOG, SACTION_SLIDERS, B_REDR, ICON_DISCLOSURE_TRI_DOWN, NAMEWIDTH - XIC - 5, y + CHANNELHEIGHT, XIC,YIC-2, -- cgit v1.2.3