diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-16 13:52:13 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-16 13:52:13 +0000 |
| commit | 34a9f87ed27b44d5f0337477605fc22306802eac (patch) | |
| tree | 232fab29f20a8bbbf3d0931c0847a4b07408e517 /otk/application.cc | |
| parent | 81e1982744e1d692fbe54cc840e93099cbe974af (diff) | |
print a warning if more than one main widget is set
Diffstat (limited to 'otk/application.cc')
| -rw-r--r-- | otk/application.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/otk/application.cc b/otk/application.cc index 0a250ea3..29dc6bf4 100644 --- a/otk/application.cc +++ b/otk/application.cc @@ -69,7 +69,11 @@ void OtkApplication::exec(void) bool OtkApplication::setMainWidget(const OtkWidget *main_widget) { // ignore it if it has already been set - if (_main_widget) return false; + if (_main_widget) { + std::cerr << "More than one main OtkWidget being created for the " << + "OtkApplication!\n"; + return false; + } _main_widget = main_widget; |
