aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_tv_wx.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-03-07 15:54:52 +0100
committerDan Gudmundsson <[email protected]>2014-03-28 10:11:34 +0100
commita7d0e35b834f9b0d9538c75d06dfe3d698a83ded (patch)
treefa3f0573b970e5b18f9133aa01be5beec8836332 /lib/observer/src/observer_tv_wx.erl
parente2896b5f3922b8397024aee8f541d46ba5cb0f1d (diff)
downloadotp-a7d0e35b834f9b0d9538c75d06dfe3d698a83ded.tar.gz
otp-a7d0e35b834f9b0d9538c75d06dfe3d698a83ded.tar.bz2
otp-a7d0e35b834f9b0d9538c75d06dfe3d698a83ded.zip
observer: Add simple test and add debug hooks in app
Add hooks in observer so that we can do some basic testing on it
Diffstat (limited to 'lib/observer/src/observer_tv_wx.erl')
-rw-r--r--lib/observer/src/observer_tv_wx.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/observer/src/observer_tv_wx.erl b/lib/observer/src/observer_tv_wx.erl
index b276965f83..da4cb8e041 100644
--- a/lib/observer/src/observer_tv_wx.erl
+++ b/lib/observer/src/observer_tv_wx.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2011-2012. All Rights Reserved.
+%% Copyright Ericsson AB 2011-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -132,8 +132,8 @@ handle_event(#wx{event=#wxSize{size={W,_}}}, State=#state{grid=Grid}) ->
observer_lib:set_listctrl_col_size(Grid, W),
{noreply, State};
-handle_event(#wx{obj=Grid, event=#wxList{type=command_list_item_activated,
- itemIndex=Index}},
+handle_event(#wx{event=#wxList{type=command_list_item_activated,
+ itemIndex=Index}},
State=#state{grid=Grid, node=Node, opt=#opt{type=Type}, tabs=Tabs}) ->
Table = lists:nth(Index+1, Tabs),
case Table#tab.protection of