Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-10-13 04:32:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-13 04:32:31 +0400
commiteabf7ab3351ade8415cd38d6faf2cfba79ba7400 (patch)
treede69cec6b43dcbf8bf08529f09c8bba90c508deb /source/blender/windowmanager/intern/wm_keymap.c
parent3a63adb5ff7e52084d279d64a0afc0f8067c0499 (diff)
code cleanup: utility function for getting a bool as a string.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_keymap.c')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index 43a98a4600b..f6ba3a29344 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -50,6 +50,7 @@
#include "BKE_main.h"
#include "BKE_screen.h"
+#include "BLF_translation.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
@@ -1479,3 +1480,7 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
return km;
}
+const char *WM_bool_as_string(bool test)
+{
+ return test ? IFACE_("ON") : IFACE_("OFF");
+}