From 1dda60792cc303ec81785d6a79926eed9a4da3d3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 18 Sep 2020 10:24:14 +1000 Subject: Cleanup: use 'UI_icon_*' prefix for icons API - UI_collection_color_icon_get -> UI_icon_color_from_collection - UI_idcode_icon_get -> UI_icon_from_idcode - UI_library_icon_get -> UI_icon_from_library - UI_mode_icon_get -> UI_icon_from_object_mode - UI_rnaptr_icon_get -> UI_icon_from_rnaptr - UI_alert_image -> UI_icon_alert_imbuf_get - UI_preview_render_size -> UI_icon_preview_to_render_size - UI_id_icon_render -> UI_icon_render_id --- source/blender/editors/space_outliner/outliner_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_outliner/outliner_draw.c') diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 0ab98a6ab66..fb6d3a74e76 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1928,7 +1928,7 @@ static void outliner_draw_mode_column_toggle(uiBlock *block, const char *tip; if (draw_active_icon && ob->mode == tvc->obact->mode) { - icon = UI_mode_icon_get(active_mode); + icon = UI_icon_from_object_mode(active_mode); tip = TIP_("Remove from the current mode"); } else { @@ -3252,7 +3252,7 @@ static void outliner_draw_tree_element(bContext *C, if (ELEM(tselem->type, 0, TSE_LAYER_COLLECTION) || ((tselem->type == TSE_RNA_STRUCT) && RNA_struct_is_ID(te->rnaptr.type))) { - const BIFIconID lib_icon = UI_library_icon_get(tselem->id); + const BIFIconID lib_icon = UI_icon_from_library(tselem->id); if (lib_icon != ICON_NONE) { UI_icon_draw_alpha( (float)startx + offsx + 2 * ufac, (float)*starty + 2 * ufac, lib_icon, alpha_fac); -- cgit v1.2.3