Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_layout.c
| Show First 20 Lines • Show All 2,109 Lines • ▼ Show 20 Lines | if (searchprop) { | ||||
| if (RNA_property_type(prop) == PROP_ENUM) { | if (RNA_property_type(prop) == PROP_ENUM) { | ||||
| /* XXX, this will have a menu string, | /* XXX, this will have a menu string, | ||||
| * but in this case we just want the text */ | * but in this case we just want the text */ | ||||
| but->str[0] = 0; | but->str[0] = 0; | ||||
| } | } | ||||
| UI_but_func_search_set( | UI_but_func_search_set( | ||||
| but, ui_searchbox_create_generic, ui_rna_collection_search_cb, | but, ui_searchbox_create_generic, ui_rna_collection_search_cb, | ||||
| coll_search, NULL, NULL); | coll_search, true, NULL, NULL); | ||||
| but->free_search_arg = true; | |||||
| } | } | ||||
| else if (but->type == UI_BTYPE_SEARCH_MENU) { | else if (but->type == UI_BTYPE_SEARCH_MENU) { | ||||
| /* In case we fail to find proper searchprop, | /* In case we fail to find proper searchprop, | ||||
| * so other code might have already set but->type to search menu... */ | * so other code might have already set but->type to search menu... */ | ||||
| but->flag |= UI_BUT_DISABLED; | but->flag |= UI_BUT_DISABLED; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,484 Lines • Show Last 20 Lines | |||||