diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-11-24 18:31:42 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-11-24 18:31:42 +0100 |
| commit | 54788cdc0d17f98bf2eddd44f9ff57ac139836f6 (patch) | |
| tree | d84d7fd4463ae125fc8500387ccec298754bd7e8 /tests | |
| parent | 914b2423ba7655fd9fd1495b562fc6fbf87716b1 (diff) | |
MockApplicationWindow: add SetMonitor method
(bzr r4036.11.9)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mock-application.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/mock-application.h b/tests/mock-application.h index 312168854..db0789847 100644 --- a/tests/mock-application.h +++ b/tests/mock-application.h @@ -91,7 +91,7 @@ struct MockApplicationWindow : unity::ApplicationWindow return; title_ = new_title; - title.changed(title_); + title.changed.emit(title_); } void SetIcon(std::string const& new_icon) @@ -100,7 +100,16 @@ struct MockApplicationWindow : unity::ApplicationWindow return; icon_ = new_icon; - icon.changed(icon_); + icon.changed.emit(icon_); + } + + void SetMonitor(int new_monitor) + { + if (monitor_ == new_monitor) + return; + + monitor_ = new_monitor; + monitor.changed.emit(monitor_); } }; |
