UI: Add search-create callback
[blender.git] / source / blender / editors / interface / interface_layout.c
index 4d9c1b387a19557990fad55263aef7c9b08f2db2..2daf3f7ba70c92c7501bc331f738e9b1fa0f9436 100644 (file)
@@ -1672,7 +1672,7 @@ void ui_but_add_search(uiBut *but, PointerRNA *ptr, PropertyRNA *prop, PointerRN
                        but->str[0] = 0;
                }
 
-               UI_but_func_search_set(but, rna_search_cb, but, NULL, NULL);
+               UI_but_func_search_set(but, ui_searchbox_create_generic, rna_search_cb, but, NULL, NULL);
        }
 }