Mercurial > hg > octave-nkf
changeset 17617:9abb1422d60b
correct indication of news-windows visibility in the window menu
* main-window.cc(connect_visibility_changed): use dock_widget_list to ensure
the visibility changed signal is connected for all dsock widgets
(construct_window_menu): connect the news-windows active changed signal to
the checked property of the related entry in the window menu
author | Torsten <ttl@justmail.de> |
---|---|
date | Wed, 09 Oct 2013 17:33:50 +0200 |
parents | 8cc19352fd74 |
children | 77eff9c6fb09 |
files | libgui/src/main-window.cc |
diffstat | 1 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -680,14 +680,8 @@ void main_window::connect_visibility_changed (void) { - command_window->connect_visibility_changed (); - history_window->connect_visibility_changed (); - file_browser_window->connect_visibility_changed (); - doc_browser_window->connect_visibility_changed (); -#ifdef HAVE_QSCINTILLA - editor_window->connect_visibility_changed (); -#endif - workspace_window->connect_visibility_changed (); + foreach (octave_dock_widget *widget, dock_widget_list ()) + widget->connect_visibility_changed (); } void @@ -1362,6 +1356,9 @@ connect (show_news_action, SIGNAL (toggled (bool)), news_window, SLOT (setVisible (bool))); + connect (news_window, SIGNAL (active_changed (bool)), + show_news_action, SLOT (setChecked (bool))); + connect (show_documentation_action, SIGNAL (toggled (bool)), doc_browser_window, SLOT (setVisible (bool)));