Mercurial > hg > octave-avbm
changeset 16543:6afb29359968
set size of command window terminal at GUI startup
* main-window.h, main-window.cc
(main_window::resize_command_window_callback): New function.
(main_window::construct): Post event to call it.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 18 Apr 2013 11:55:25 -0400 |
parents | 63b144e6a3d0 |
children | 016073c0cb94 |
files | libgui/src/main-window.cc libgui/src/main-window.h |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -719,6 +719,8 @@ QDir curr_dir; set_current_working_directory (curr_dir.absolutePath ()); + + octave_link::post_event (this, &main_window::resize_command_window_callback); } void @@ -1360,6 +1362,12 @@ } void +main_window::resize_command_window_callback (void) +{ + command_editor::resize_terminal (); +} + +void main_window::clear_history_callback (void) { Fhistory (ovl ("-c"));