diff options
author | David Robillard <d@drobilla.net> | 2008-08-19 01:41:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-19 01:41:42 +0000 |
commit | 1b8f06504a155e75a9419dfa5c9bf9df1866e01d (patch) | |
tree | 8e9ce0ddaee84c76af66b2fa58cd41f73d8434eb /src/libs/gui/App.hpp | |
parent | a7e39b85d7c35ec44c613e593c57ff27de0d06bc (diff) | |
download | ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.gz ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.bz2 ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.zip |
Factor out destroy (and object_destroyed) to common interface.
git-svn-id: http://svn.drobilla.net/lad/ingen@1443 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/App.hpp')
-rw-r--r-- | src/libs/gui/App.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/gui/App.hpp b/src/libs/gui/App.hpp index 04666285..d4caef21 100644 --- a/src/libs/gui/App.hpp +++ b/src/libs/gui/App.hpp @@ -95,8 +95,8 @@ public: void port_activity(Port* port); bool signal() const { return _enable_signal; } - void enable_signals() { _enable_signal = true; } - void disable_signals() { _enable_signal = false; } + bool disable_signals() { bool old = _enable_signal; _enable_signal = false; return old; } + void enable_signals(bool b) { _enable_signal = b; } ConnectWindow* connect_window() const { return _connect_window; } MessagesWindow* messages_dialog() const { return _messages_window; } |