Mercurial > octave
diff libgui/src/main-window.cc @ 16541: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 | 8ea8df0747e9 |
children | cfa98328acc9 |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Thu Apr 18 10:45:14 2013 -0400 +++ b/libgui/src/main-window.cc Thu Apr 18 11:55:25 2013 -0400 @@ -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"));