projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e1982
)
print a warning if more than one main widget is set
author
Dana Jansens
<danakj@orodu.net>
Sat, 16 Nov 2002 13:52:13 +0000
(13:52 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 16 Nov 2002 13:52:13 +0000
(13:52 +0000)
otk/application.cc
patch
|
blob
|
history
diff --git
a/otk/application.cc
b/otk/application.cc
index 0a250ea36ea8fa292fd4b3f8a1cd094fa6942de9..29dc6bf4b4be70491c97b4028a2799ad9f145a2a 100644
(file)
--- 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;