diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-04-06 16:30:07 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-04-06 16:30:07 +0400 |
commit | dbe3369ae2a593c2dc5349783fbb3d930ba3680b (patch) | |
tree | 9ba9ec4fa9e0077fc590234f37edd8c69d5457a1 /source | |
parent | 11efce450d5e8b3dd1ce5753a10db381f602e418 (diff) |
Name unification commit for console toggling operator.
Requested by Dalai, approved by Campbell. Other requested from Dalai
changes were rejected by our Python Departament.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 4350b0505c9..2bbb6ce440c 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -1999,7 +1999,7 @@ static void WM_OT_quit_blender(wmOperatorType *ot) /* *********************** */ #if defined(WIN32) static int console= 1; -void WM_toggle_console(bContext *UNUSED(C), short show) +void WM_console_toggle(bContext *UNUSED(C), short show) { if(show) { ShowWindow(GetConsoleWindow(),SW_SHOW); @@ -2011,24 +2011,24 @@ void WM_toggle_console(bContext *UNUSED(C), short show) } } -static int wm_toggle_console_op(bContext *C, wmOperator *UNUSED(op)) +static int wm_console_toggle_op(bContext *C, wmOperator *UNUSED(op)) { if(console) { - WM_toggle_console(C, 0); + WM_console_toggle(C, 0); } else { - WM_toggle_console(C, 1); + WM_console_toggle(C, 1); } return OPERATOR_FINISHED; } -static void WM_OT_toggle_console(wmOperatorType *ot) +static void WM_OT_console_toggle(wmOperatorType *ot) { ot->name= "Toggle System Console"; - ot->idname= "WM_OT_toggle_console"; + ot->idname= "WM_OT_console_toggle"; ot->description= "Toggle System Console"; - ot->exec= wm_toggle_console_op; + ot->exec= wm_console_toggle_op; ot->poll= WM_operator_winactive; } #endif @@ -3112,7 +3112,7 @@ void wm_operatortype_init(void) WM_operatortype_append(WM_OT_search_menu); WM_operatortype_append(WM_OT_call_menu); #if defined(WIN32) - WM_operatortype_append(WM_OT_toggle_console); + WM_operatortype_append(WM_OT_console_toggle); #endif #ifdef WITH_COLLADA |