Mercurial > octave
diff libgui/src/m-editor/file-editor-tab.h @ 27397:8132797b4a6a
use signal/slot connection in file-editor-tab for thread safety
* file-editor-tab.h, file-editor-tab.cc
(file_editor_tab::maybe_remove_next): New signal.
(file_editor_tab::handle_remove_next): New slot.
(file_editor_tab::file_editor_tab): Connect them.
(file_editor_tab::add_breakpoint_event): Use new signal to change
m_breakpoint_info across threads.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 12 Sep 2019 11:13:46 -0400 |
parents | 6d0585c8ee11 |
children | db22b63b9c59 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h Wed Sep 11 18:01:40 2019 -0400 +++ b/libgui/src/m-editor/file-editor-tab.h Thu Sep 12 11:13:46 2019 -0400 @@ -192,6 +192,8 @@ void interpreter_event (const fcn_callback& fcn); void interpreter_event (const meth_callback& meth); + void maybe_remove_next (int remove_line); + // FIXME: The following is similar to "process_octave_code" // signal. However, currently that signal is connected to // something that simply focuses a window and not actually @@ -241,6 +243,8 @@ void handle_double_click (int p, int l, int modifier); void handle_lines_changed (void); + void handle_remove_next (int remove_line); + private: struct bp_info