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:
authorMatt Ebb <matt@mke3.net>2010-01-12 11:18:15 +0300
committerMatt Ebb <matt@mke3.net>2010-01-12 11:18:15 +0300
commit9900d07a011deb2a58f77d9d7d9c49d360d151ab (patch)
tree7712b74068ef59b154beeea451b10f2a320cdaef /source/blender/editors
parent926cdffaf30e0c7a2f61269a610de6c2f0ec44da (diff)
Fix [#19920] long list in outliner+renaming
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_outliner/outliner.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c
index 79a16a50544..be125725e4e 100644
--- a/source/blender/editors/space_outliner/outliner.c
+++ b/source/blender/editors/space_outliner/outliner.c
@@ -4838,6 +4838,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname)
break;
}
}
+ tselem->flag &= ~TSE_TEXTBUT;
}
}
@@ -5278,8 +5279,9 @@ static void outliner_buttons(const bContext *C, uiBlock *block, ARegion *ar, Spa
else if(tselem->id && GS(tselem->id->name)==ID_LI) len = sizeof(((Library*) 0)->name);
else len= sizeof(((ID*) 0)->name)-2;
+
dx= (int)UI_GetStringWidth(te->name);
- if(dx<50) dx= 50;
+ if(dx<100) dx= 100;
bt= uiDefBut(block, TEX, OL_NAMEBUTTON, "", (short)te->xs+2*OL_X-4, (short)te->ys, dx+10, OL_H-1, te->name, 1.0, (float)len-1, 0, 0, "");
uiButSetRenameFunc(bt, namebutton_cb, tselem);