aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer
diff options
context:
space:
mode:
authorMatthew Evans <[email protected]>2012-01-26 10:43:56 +0100
committerDan Gudmundsson <[email protected]>2012-01-27 11:24:36 +0100
commitc6f48a6e0640a7d8792c4e79761c5bb942256b19 (patch)
tree2bd33bc5190f7581a0af2cd839df8e98b03ac5d4 /lib/observer
parentb082b51af99193e5424c44751e737d697fe38f48 (diff)
downloadotp-c6f48a6e0640a7d8792c4e79761c5bb942256b19.tar.gz
otp-c6f48a6e0640a7d8792c4e79761c5bb942256b19.tar.bz2
otp-c6f48a6e0640a7d8792c4e79761c5bb942256b19.zip
[observer] Fixed refresh interval for table viewer
Diffstat (limited to 'lib/observer')
-rw-r--r--lib/observer/src/observer_tv_table.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/observer/src/observer_tv_table.erl b/lib/observer/src/observer_tv_table.erl
index 0f4f8e8d43..f432173f57 100644
--- a/lib/observer/src/observer_tv_table.erl
+++ b/lib/observer/src/observer_tv_table.erl
@@ -58,7 +58,7 @@
source,
tab,
attrs,
- timer
+ timer={false, 30}
}).
-record(opt,
@@ -394,12 +394,19 @@ handle_info({no_rows, N}, State = #state{grid=Grid, status=StatusBar}) ->
wxListCtrl:setItemCount(Grid, N),
wxStatusBar:setStatusText(StatusBar, io_lib:format("Objects: ~w",[N])),
{noreply, State};
+
handle_info({new_cols, New}, State = #state{grid=Grid, columns=Cols0}) ->
Cols = add_columns(Grid, Cols0, New),
{noreply, State#state{columns=Cols}};
+
handle_info({refresh, Min, Max}, State = #state{grid=Grid}) ->
wxListCtrl:refreshItems(Grid, Min, Max),
{noreply, State};
+
+handle_info(refresh_interval, State = #state{pid=Pid}) ->
+ Pid ! refresh,
+ {noreply, State};
+
handle_info({error, Error}, State = #state{frame=Frame}) ->
ErrorStr =
try io_lib:format("~ts", [Error]), Error