diff options
author | Ricardo Catalinas Jiménez <[email protected]> | 2011-09-25 01:21:39 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-11-09 14:49:14 +0100 |
commit | 84d0304579064239282d2bb57a7c2b5ce5dc9868 (patch) | |
tree | 00e32896bd0f614d3c74057f37766a85b5b2ca25 /lib/debugger/src/dbg_ui_edit_win.erl | |
parent | d90ccb6a63f7ae63e1d4c89d686694a06e56c025 (diff) | |
download | otp-84d0304579064239282d2bb57a7c2b5ce5dc9868.tar.gz otp-84d0304579064239282d2bb57a7c2b5ce5dc9868.tar.bz2 otp-84d0304579064239282d2bb57a7c2b5ce5dc9868.zip |
Fix "OK" spelling in debugger messages and variables
Simple code refactor in the debugger: renames all the occurrences of
"Ok" to "OK" in the code, variable names and strings. This improves the
consistency of the code and follows the GTK UI where "OK" is always
used.
Diffstat (limited to 'lib/debugger/src/dbg_ui_edit_win.erl')
-rw-r--r-- | lib/debugger/src/dbg_ui_edit_win.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/debugger/src/dbg_ui_edit_win.erl b/lib/debugger/src/dbg_ui_edit_win.erl index badaf4bef4..82f784aa83 100644 --- a/lib/debugger/src/dbg_ui_edit_win.erl +++ b/lib/debugger/src/dbg_ui_edit_win.erl @@ -64,13 +64,13 @@ create_win(GS, {X, Y}, Title, Prompt, {Type, Value}) -> {text, Value}, {keypress, true}]), - %% Ok and Cancel buttons + %% OK and Cancel buttons W = Pad + Wlbl + Went + Pad, {Wbtn, Hbtn} = dbg_ui_win:min_size(["Cancel"], 70, 30), Ybtn = Pad + Hlbl + Pad, Btn = gs:button(Win, [{x, Pad}, {y, Ybtn}, {width, Wbtn}, {height, Hbtn}, - {label, {text,"Ok"}}, {font, Font}]), + {label, {text,"OK"}}, {font, Font}]), gs:button(Win, [{x, W-Pad-Wbtn}, {y, Ybtn}, {width, Wbtn}, {height, Hbtn}, {label, {text,"Cancel"}}, {font, Font}]), @@ -100,8 +100,8 @@ handle_event({gs, _Id, destroy, _Data, _Arg}, _WinInfo) -> stopped; handle_event({gs, Id, keypress, Data, ['Return'|_]}, WinInfo) -> gs:config(WinInfo#winInfo.button, flash), - handle_event({gs, Id, click, Data, ["Ok"]}, WinInfo); -handle_event({gs, _Id, click, _Data, ["Ok"|_]}, WinInfo) -> + handle_event({gs, Id, click, Data, ["OK"]}, WinInfo); +handle_event({gs, _Id, click, _Data, ["OK"|_]}, WinInfo) -> Ent = WinInfo#winInfo.entry, Str = gs:read(Ent, text), Type = WinInfo#winInfo.type, |