[Bf-blender-cvs] [61afbf55f1b] master: Cleanup: Use enum for UI block emboss type
Hans Goudey
noreply at git.blender.org
Mon Jul 5 21:52:28 CEST 2021
Commit: 61afbf55f1b12bf0b173175eb0fa097d6a8d33cd
Author: Hans Goudey
Date: Mon Jul 5 14:52:21 2021 -0500
Branches: master
https://developer.blender.org/rB61afbf55f1b12bf0b173175eb0fa097d6a8d33cd
Cleanup: Use enum for UI block emboss type
===================================================================
M source/blender/editors/include/UI_interface.h
M source/blender/editors/interface/interface.c
===================================================================
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 7a8c14d0a35..61daaa7d375 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -663,7 +663,7 @@ enum {
UI_BLOCK_THEME_STYLE_POPUP = 1,
};
void UI_block_theme_style_set(uiBlock *block, char theme_style);
-char UI_block_emboss_get(uiBlock *block);
+eUIEmbossType UI_block_emboss_get(uiBlock *block);
void UI_block_emboss_set(uiBlock *block, eUIEmbossType emboss);
bool UI_block_is_search_only(const uiBlock *block);
void UI_block_set_search_only(uiBlock *block, bool search_only);
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index e9784a59d70..d3b74c91e86 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -3542,7 +3542,7 @@ uiBlock *UI_block_begin(const bContext *C, ARegion *region, const char *name, eU
return block;
}
-char UI_block_emboss_get(uiBlock *block)
+eUIEmbossType UI_block_emboss_get(uiBlock *block)
{
return block->emboss;
}
More information about the Bf-blender-cvs
mailing list