aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-12-08 14:29:58 +0100
committerDan Gudmundsson <[email protected]>2011-12-09 12:08:53 +0100
commit9a4f23a450541fe5ed9dc1cd35b32b8621736949 (patch)
treee57436e7e9c3789436deabca0ef96417ea4e40d3 /lib/observer/src
parent67786a7b962a4f71ae42b1db2c800f5bd414305e (diff)
downloadotp-9a4f23a450541fe5ed9dc1cd35b32b8621736949.tar.gz
otp-9a4f23a450541fe5ed9dc1cd35b32b8621736949.tar.bz2
otp-9a4f23a450541fe5ed9dc1cd35b32b8621736949.zip
[observer] Add basic documentation
Diffstat (limited to 'lib/observer/src')
-rw-r--r--lib/observer/src/observer_wx.erl12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/observer/src/observer_wx.erl b/lib/observer/src/observer_wx.erl
index 89f4afdba0..5a593abf11 100644
--- a/lib/observer/src/observer_wx.erl
+++ b/lib/observer/src/observer_wx.erl
@@ -61,7 +61,10 @@
}).
start() ->
- wx_object:start(?MODULE, [], []).
+ case wx_object:start(?MODULE, [], []) of
+ Err = {error, _} -> Err;
+ _Obj -> ok
+ end.
create_menus(Object, Menus) when is_list(Menus) ->
wx_object:call(Object, {create_menus, Menus}).
@@ -126,6 +129,10 @@ setup(#state{frame = Frame} = State) ->
%% I postpone the creation of the other tabs so they can query/use
%% the window size
+ %% App Viewer Panel
+ AppPanel = observer_app_wx:start_link(Notebook, self()),
+ wxNotebook:addPage(Notebook, AppPanel, "Applications", []),
+
%% Process Panel
ProPanel = observer_pro_wx:start_link(Notebook, self()),
wxNotebook:addPage(Notebook, ProPanel, "Processes", []),
@@ -138,9 +145,6 @@ setup(#state{frame = Frame} = State) ->
TracePanel = observer_trace_wx:start_link(Notebook, self()),
wxNotebook:addPage(Notebook, TracePanel, ?TRACE_STR, []),
- %% App Viewer Panel
- AppPanel = observer_app_wx:start_link(Notebook, self()),
- wxNotebook:addPage(Notebook, AppPanel, "Applications", []),
%% Force redraw (window needs it)
wxWindow:refresh(Panel),