diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-08 05:01:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-08 05:36:35 +0300 |
commit | eefa82a0228916585522b7dcb2382d07da659125 (patch) | |
tree | 20eba4e13baac3c9f6cfe49788a5ca95303b65cf /source/blender/editors/interface/interface_layout.c | |
parent | c6cda3c09cd09a283502d953f45631b9a4ca1d88 (diff) |
Cleanup: callback naming for search button & update doc-strings
Callback naming didn't always make it clear which function updated
the search contents and the function used to execute the action.
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 2ed6a87840b..9c59901083c 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2645,7 +2645,7 @@ static void search_id_collection(StructRNA *ptype, PointerRNA *r_ptr, PropertyRN RNA_STRUCT_END; } -static void ui_rna_collection_search_free_cb(void *ptr) +static void ui_rna_collection_search_arg_free_fn(void *ptr) { uiRNACollectionSearch *coll_search = ptr; UI_butstore_free(coll_search->butstore_block, coll_search->butstore); @@ -2699,7 +2699,7 @@ void ui_but_add_search( ui_searchbox_create_generic, ui_rna_collection_search_update_fn, coll_search, - ui_rna_collection_search_free_cb, + ui_rna_collection_search_arg_free_fn, NULL, NULL); } |