aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/src/dbg_ui_edit_win.erl
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-11-10 11:46:38 +0100
committerHenrik Nord <[email protected]>2011-11-10 11:46:40 +0100
commit49d53261a5372a1d8c0b9954fae4e2c0d6100fd4 (patch)
tree366f658aeb5409007df1bd725b19c2ba178a7ea6 /lib/debugger/src/dbg_ui_edit_win.erl
parent9f9e948af31f6f313702bf83c31ec636ca7ca4fc (diff)
parent84d0304579064239282d2bb57a7c2b5ce5dc9868 (diff)
downloadotp-49d53261a5372a1d8c0b9954fae4e2c0d6100fd4.tar.gz
otp-49d53261a5372a1d8c0b9954fae4e2c0d6100fd4.tar.bz2
otp-49d53261a5372a1d8c0b9954fae4e2c0d6100fd4.zip
Merge branch 'rj/fix-debugger-msgs'
* rj/fix-debugger-msgs: Fix "OK" spelling in debugger messages and variables Fix debugger message with wx OTP-9699
Diffstat (limited to 'lib/debugger/src/dbg_ui_edit_win.erl')
-rw-r--r--lib/debugger/src/dbg_ui_edit_win.erl8
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,