Replace resize code of image scopes by use of new GRIP button.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 2 Apr 2014 11:09:43 +0000 (13:09 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 2 Apr 2014 11:09:43 +0000 (13:09 +0200)
commit9b3bd5582be99e26b6c3651f66db516982bc8461
tree66178e37290f42cca50837ecf46c0010a675d8bc
parent4faef1e10c9d1177eae6350b4471206e91afaff8
Replace resize code of image scopes by use of new GRIP button.

This deduplicates/simplifies some code. Also cleanup up a bit scopes UI code!

Use new GRIP button for uiList grab-resize.

This allows us to greatly simplifies the code, and get rid of a few hacks in uiList event handling!

Note autosize mode of uiList is now trigered by any value of list_grip below a given threshold, rather than the fixed zero value...

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D343
source/blender/editors/interface/interface_draw.c
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_layout.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/space_clip/clip_buttons.c
source/blender/makesdna/DNA_screen_types.h