better msgs

This commit is contained in:
Dana Jansens 2002-11-16 13:53:03 +00:00
parent 34a9f87ed2
commit 3bc1f37469

View file

@ -56,8 +56,9 @@ void OtkApplication::loadStyle(void)
void OtkApplication::exec(void) void OtkApplication::exec(void)
{ {
if (!_main_widget) { if (!_main_widget) {
std::cerr << "No main widget set. You must create a main OtkWidget for " << std::cerr << "ERROR: No main widget set. You must create a main " <<
"the OtkApplication before calling OtkApplication::exec().\n"; "OtkWidget for the OtkApplication before calling " <<
"OtkApplication::exec().\n";
::exit(1); ::exit(1);
} }
while (1) { while (1) {
@ -70,8 +71,8 @@ bool OtkApplication::setMainWidget(const OtkWidget *main_widget)
{ {
// ignore it if it has already been set // ignore it if it has already been set
if (_main_widget) { if (_main_widget) {
std::cerr << "More than one main OtkWidget being created for the " << std::cerr << "WARNING: More than one main OtkWidget being created for " <<
"OtkApplication!\n"; "the OtkApplication!\n";
return false; return false;
} }