changeset 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 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	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"));
--- a/libgui/src/main-window.h	Thu Apr 18 10:45:14 2013 -0400
+++ b/libgui/src/main-window.h	Thu Apr 18 11:55:25 2013 -0400
@@ -186,6 +186,8 @@
 
   void clear_command_window_callback (void);
 
+  void resize_command_window_callback (void);
+
   void clear_workspace_callback (void);
 
   void clear_history_callback (void);