Mercurial > hg > octave-lyh
diff libgui/src/main-window.cc @ 15365:b4c32f245da7
GUI: Settings take immediate effect on the m-editor
* main-window.cc (main_window::construct): connect settings change to file-editor
* file-editor.h (file-editor::notice_settings): new notice settings method
* file-editor.cc (file-editor::notice_settings): new notice settings method
and pass-through to all file-editor-tabs
* file-editor-tab.h (file-editor::notice_settings): new notice settings method
* file-editor-tab.c (file_editor_tab::file_editor_tab): removed all settings to
file-editor::notice_settings
(file-editor::update_lexer): fix in case settings is 0 (should never happen)
(file-editor::notice_settings): all settings moved here
author | Thorsten Liebig <thorsten.liebig@gmx.de> |
---|---|
date | Tue, 11 Sep 2012 22:19:51 +0200 |
parents | 450fedd44176 |
children | 501a9cc2c68f |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -833,6 +833,8 @@ connect (reset_windows_action, SIGNAL (triggered ()), this, SLOT (reset_windows ())); connect (this, SIGNAL (settings_changed ()), + _file_editor, SLOT (notice_settings ())); + connect (this, SIGNAL (settings_changed ()), _files_dock_widget, SLOT (notice_settings ())); connect (this, SIGNAL (settings_changed ()), this, SLOT (notice_settings ()));