From 0ca3754d683b862762695d1be891c98410f439ac Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 2 Apr 2006 13:16:35 +0000 Subject: removed green background --- src/RootTheme.cc | 47 +---------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/src/RootTheme.cc b/src/RootTheme.cc index c171c85..96f13d5 100644 --- a/src/RootTheme.cc +++ b/src/RootTheme.cc @@ -157,60 +157,15 @@ void RootTheme::reconfigTheme() { FbRootWindow rootwin(screenNum()); // if the background theme item was not loaded - // then generate an image with a text that - // notifies the user about it if (!m_background_loaded) { - - // get the pixmap, force update of pixmap (needed if this is the first time) - FbTk::FbPixmap root(FbTk::FbPixmap::getRootPixmap(screenNum(), true)); - - // render text - static const char *warning_msg = + const char *warning_msg = _FBTEXT(Common, BackgroundWarning, "There is no background option specified in this style." " Please consult the manual or read the FAQ.", "Background missing warning"); - // if there is no root background pixmap...do nothing - if (root.drawable() == None) { - FbCommands::ExecuteCmd cmd("fbsetroot -solid darkgreen", screenNum()); - // wait for command to finish - waitpid(cmd.run(), NULL, 0); - // pixmap setting done. Force update of pixmaps - root = FbTk::FbPixmap::getRootPixmap(screenNum(), true); - - // The command could fail and not set the background... - // so if the drawable is still none then just dont do anything more - // but we still output warning msg to the console/log - if (root.drawable() == None) { - cerr<<"Fluxbox: "<