all repos — openbox @ 34a9f87ed27b44d5f0337477605fc22306802eac

openbox fork - make it a bit more like ryudo

print a warning if more than one main widget is set
Dana Jansens danakj@orodu.net
commit

34a9f87ed27b44d5f0337477605fc22306802eac

parent

81e1982744e1d692fbe54cc840e93099cbe974af

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M otk/application.ccotk/application.cc

@@ -69,7 +69,11 @@

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;