aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2014-08-13 14:58:35 +0200
committerMarcus Arendt <[email protected]>2014-08-13 14:58:35 +0200
commitf019d0967498bf3550c8a0e35554f5a467edfa1f (patch)
tree8e238ddf04009db929a81752dceaaf33dc560b88 /lib/observer
parent43511c3e2b37e89ab7861f8d9963d01ca17d756d (diff)
parent9170441003f193e8b3f3a83e5ac51305e09e0f8c (diff)
downloadotp-f019d0967498bf3550c8a0e35554f5a467edfa1f.tar.gz
otp-f019d0967498bf3550c8a0e35554f5a467edfa1f.tar.bz2
otp-f019d0967498bf3550c8a0e35554f5a467edfa1f.zip
Merge branch 'maint'
Diffstat (limited to 'lib/observer')
-rw-r--r--lib/observer/src/observer_wx.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/observer/src/observer_wx.erl b/lib/observer/src/observer_wx.erl
index 03ca1bf9c1..c86f5ea916 100644
--- a/lib/observer/src/observer_wx.erl
+++ b/lib/observer/src/observer_wx.erl
@@ -112,10 +112,6 @@ setup(#state{frame = Frame} = State) ->
observer_lib:create_menus(DefMenus, MenuBar, default),
wxFrame:setMenuBar(Frame, MenuBar),
- StatusBar = wxStatusBar:new(Frame),
- wxFrame:setStatusBar(Frame, StatusBar),
- wxFrame:setTitle(Frame, atom_to_list(node())),
- wxStatusBar:setStatusText(StatusBar, atom_to_list(node())),
%% Setup panels
Panel = wxPanel:new(Frame, []),
@@ -131,6 +127,11 @@ setup(#state{frame = Frame} = State) ->
wxSizer:add(MainSizer, Notebook, [{proportion, 1}, {flag, ?wxEXPAND}]),
wxPanel:setSizer(Panel, MainSizer),
+ StatusBar = wxStatusBar:new(Frame),
+ wxFrame:setStatusBar(Frame, StatusBar),
+ wxFrame:setTitle(Frame, atom_to_list(node())),
+ wxStatusBar:setStatusText(StatusBar, atom_to_list(node())),
+
wxNotebook:connect(Notebook, command_notebook_page_changing),
wxFrame:connect(Frame, close_window, [{skip, true}]),
wxMenu:connect(Frame, command_menu_selected),