Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_utils.c
| Context not available. | |||||
| but = uiDefButR_prop(block, UI_BTYPE_TEXT, 0, name, x1, y1, x2, y2, ptr, prop, index, 0, 0, -1, -1, NULL); | but = uiDefButR_prop(block, UI_BTYPE_TEXT, 0, name, x1, y1, x2, y2, ptr, prop, index, 0, 0, -1, -1, NULL); | ||||
| if (RNA_property_flag(prop) & PROP_TEXTEDIT_UPDATE) { | if (RNA_property_flag(prop) & PROP_TEXTEDIT_UPDATE) { | ||||
| /* TEXTEDIT_UPDATE is usally used for search buttons. For these we also want | /* TEXTEDIT_UPDATE is usually used for search buttons. For these we also want | ||||
| * the 'x' icon to clear search string, so setting VALUE_CLEAR flag, too. */ | * the 'x' icon to clear search string, so setting VALUE_CLEAR flag, too. */ | ||||
| UI_but_flag_enable(but, UI_BUT_TEXTEDIT_UPDATE | UI_BUT_VALUE_CLEAR); | UI_but_flag_enable(but, UI_BUT_TEXTEDIT_UPDATE | UI_BUT_VALUE_CLEAR); | ||||
| } | } | ||||
| Context not available. | |||||