Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_template_search_menu.c
| Show First 20 Lines • Show All 984 Lines • ▼ Show 20 Lines | if (item->wm_context != NULL) { | ||||
| CTX_wm_area_set(C, area_prev); | CTX_wm_area_set(C, area_prev); | ||||
| CTX_wm_region_set(C, region_prev); | CTX_wm_region_set(C, region_prev); | ||||
| } | } | ||||
| } | } | ||||
| static void menu_search_update_fn(const bContext *UNUSED(C), | static void menu_search_update_fn(const bContext *UNUSED(C), | ||||
| void *arg, | void *arg, | ||||
| const char *str, | const char *str, | ||||
| uiSearchItems *items) | uiSearchItems *items, | ||||
| const bool UNUSED(is_first)) | |||||
| { | { | ||||
| struct MenuSearch_Data *data = arg; | struct MenuSearch_Data *data = arg; | ||||
| StringSearch *search = BLI_string_search_new(); | StringSearch *search = BLI_string_search_new(); | ||||
| LISTBASE_FOREACH (struct MenuSearch_Item *, item, &data->items) { | LISTBASE_FOREACH (struct MenuSearch_Item *, item, &data->items) { | ||||
| BLI_string_search_add(search, item->drawwstr_full, item); | BLI_string_search_add(search, item->drawwstr_full, item); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines | |||||