]> Dogcows Code - chaz/openbox/commitdiff
print a warning if more than one main widget is set
authorDana Jansens <danakj@orodu.net>
Sat, 16 Nov 2002 13:52:13 +0000 (13:52 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 16 Nov 2002 13:52:13 +0000 (13:52 +0000)
otk/application.cc

index 0a250ea36ea8fa292fd4b3f8a1cd094fa6942de9..29dc6bf4b4be70491c97b4028a2799ad9f145a2a 100644 (file)
@@ -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;
 
This page took 0.022925 seconds and 4 git commands to generate.