Mercurial > octave
diff libinterp/corefcn/event-manager.cc @ 29775:a64352cadda8
use interpreter events to set initial data for workspace and history widgets
* octave-qobject.cc (base_qojbect::history_widget):
Use interpreter_event to set initial history values.
(base_qojbect::workspace_widget):
Use interpreter_event to set initial workspace values.
* event-manager.h, event-manager.cc (event_manager::set_history):
New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 17 Jun 2021 16:24:37 -0400 |
parents | a5ee1fec49ba |
children | b4d2fa28d1d4 |
line wrap: on
line diff
--- a/libinterp/corefcn/event-manager.cc Thu Jun 17 15:43:08 2021 -0400 +++ b/libinterp/corefcn/event-manager.cc Thu Jun 17 16:24:37 2021 -0400 @@ -182,6 +182,12 @@ tw.get_symbol_info (), true); } } + + void event_manager::set_history (void) + { + if (enabled ()) + instance->set_history (octave::command_history::list ()); + } } // FIXME: Should the following function be __event_manager_desktop__